Class DefaultCallback

java.lang.Object
ecmwf.common.ectrans.DefaultCallback
All Implemented Interfaces:
ECtransCallback
Direct Known Subclasses:
MoverServer.ECproxyCallback

public class DefaultCallback extends Object implements ECtransCallback
The Class DefaultCallback.
  • Constructor Details

    • DefaultCallback

      public DefaultCallback(ECtransSetup setup)
      Instantiates a new default callback.
      Parameters:
      setup - the setup
    • DefaultCallback

      public DefaultCallback(RemoteProvider provider, MSUser msuser)
      Instantiates a new default callback.
      Parameters:
      provider - the provider
      msuser - the msuser
  • Method Details

    • setByteCounter

      public void setByteCounter(LongConsumer counter)
    • isByteAccountingEnabled

      public boolean isByteAccountingEnabled()
      Description copied from interface: ECtransCallback
      Whether transfer stream boundaries should report byte increments to this callback.
      Specified by:
      isByteAccountingEnabled in interface ECtransCallback
    • transferredBytes

      public void transferredBytes(long bytes)
      Description copied from interface: ECtransCallback
      Reports newly observed bytes, not cumulative progress or resume offsets.
      Specified by:
      transferredBytes in interface ECtransCallback
    • getUniqueName

      public String getUniqueName()
      Gets the unique name. Gets the unique name.
      Specified by:
      getUniqueName in interface ECtransCallback
      Returns:
      the unique name
    • getECtransSetup

      public ECtransSetup getECtransSetup()
      Gets the ectrans setup. Gets the ectrans setup.
      Specified by:
      getECtransSetup in interface ECtransCallback
      Returns:
      the ectrans setup
    • setMSUser

      public void setMSUser(MSUser msuser)
      Sets the MS user. Sets the MS user.
      Specified by:
      setMSUser in interface ECtransCallback
      Parameters:
      msuser - the new MS user
    • retry

      public void retry(String comment)
      Retry. Retry.
      Specified by:
      retry in interface ECtransCallback
      Parameters:
      comment - the comment
    • completed

      public void completed(TransferModule module)
      Completed. Completed.
      Specified by:
      completed in interface ECtransCallback
      Parameters:
      module - the module
    • failed

      public void failed(TransferModule module, String comment)
      Failed. Failed.
      Specified by:
      failed in interface ECtransCallback
      Parameters:
      module - the module
      comment - the comment