Class DefaultCallback
java.lang.Object
ecmwf.common.ectrans.DefaultCallback
- All Implemented Interfaces:
ECtransCallback
- Direct Known Subclasses:
MoverServer.ECproxyCallback
The Class DefaultCallback.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCallback(ECtransSetup setup) Instantiates a new default callback.DefaultCallback(RemoteProvider provider, MSUser msuser) Instantiates a new default callback. -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleted(TransferModule module) Completed.voidfailed(TransferModule module, String comment) Failed.Gets the ectrans setup.Gets the unique name.booleanWhether transfer stream boundaries should report byte increments to this callback.voidRetry.voidsetByteCounter(LongConsumer counter) voidSets the MS user.voidtransferredBytes(long bytes) Reports newly observed bytes, not cumulative progress or resume offsets.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ECtransCallback
connected
-
Constructor Details
-
DefaultCallback
Instantiates a new default callback.- Parameters:
setup- the setup
-
DefaultCallback
Instantiates a new default callback.- Parameters:
provider- the providermsuser- the msuser
-
-
Method Details
-
setByteCounter
-
isByteAccountingEnabled
public boolean isByteAccountingEnabled()Description copied from interface:ECtransCallbackWhether transfer stream boundaries should report byte increments to this callback.- Specified by:
isByteAccountingEnabledin interfaceECtransCallback
-
transferredBytes
public void transferredBytes(long bytes) Description copied from interface:ECtransCallbackReports newly observed bytes, not cumulative progress or resume offsets.- Specified by:
transferredBytesin interfaceECtransCallback
-
getUniqueName
Gets the unique name. Gets the unique name.- Specified by:
getUniqueNamein interfaceECtransCallback- Returns:
- the unique name
-
getECtransSetup
Gets the ectrans setup. Gets the ectrans setup.- Specified by:
getECtransSetupin interfaceECtransCallback- Returns:
- the ectrans setup
-
setMSUser
Sets the MS user. Sets the MS user.- Specified by:
setMSUserin interfaceECtransCallback- Parameters:
msuser- the new MS user
-
retry
Retry. Retry.- Specified by:
retryin interfaceECtransCallback- Parameters:
comment- the comment
-
completed
Completed. Completed.- Specified by:
completedin interfaceECtransCallback- Parameters:
module- the module
-
failed
Failed. Failed.- Specified by:
failedin interfaceECtransCallback- Parameters:
module- the modulecomment- the comment
-