Class TransferScheduler.DestinationThread

All Implemented Interfaces:
MBeanService, MonitorCallback, Closeable, AutoCloseable, Runnable
Enclosing class:
TransferScheduler

public final class TransferScheduler.DestinationThread extends MBeanRepository<DataTransfer>
The Class DestinationThread.
  • Method Details

    • getKey

      public String getKey(DataTransfer transfer)
      Gets the key.
      Overrides:
      getKey in class MBeanRepository<DataTransfer>
      Parameters:
      transfer - the transfer
      Returns:
      the key
    • getLastTransfer

      public DataTransfer getLastTransfer()
      Gets the last transfer.
      Returns:
      the last transfer
    • getNextTransfer

      public DataTransfer getNextTransfer()
      Gets the next transfer.
      Returns:
      the next transfer
    • getLastFailedTransfer

      public DataTransfer getLastFailedTransfer()
      Gets the last failed transfer.
      Returns:
      the last failed transfer
    • getStatus

      public String getStatus(DataTransfer transfer)
      Gets the status.
      Overrides:
      getStatus in class MBeanRepository<DataTransfer>
      Parameters:
      transfer - the transfer
      Returns:
      the status
    • shutdown

      public void shutdown()
      Shutdown.
      Overrides:
      shutdown in class MBeanScheduler
    • shutdown

      public void shutdown(long timeout, boolean reset, String comment)
      Shutdown.
      Parameters:
      timeout - the timeout
      reset - the reset
      comment - the comment
    • getActivity

      public String getActivity()
      Gets the activity.
      Overrides:
      getActivity in class ECaccessScheduler
      Returns:
      the activity
    • getDestinationStep

      public int getDestinationStep()
      Gets the destination step.
      Returns:
      the destination step
    • toBeReseted

      public boolean toBeReseted()
      Signal is should be reset.
      Returns:
      true, if successful
    • reset

      public void reset()
      Reset.
    • loadPendingDataTransfers

      public void loadPendingDataTransfers()
      Load pending data transfers.
    • initialize

      public void initialize()
      Initialize.
      Overrides:
      initialize in class ECaccessScheduler
    • nextStep

      public int nextStep()
      Next step.
      Specified by:
      nextStep in class ECaccessScheduler
      Returns:
      the int
    • getPerformed

      public int getPerformed()
      Gets the performed.
      Returns:
      the performed
    • getSelected

      public int getSelected()
      Gets the selected.
      Returns:
      the selected
    • getMBeanInfo

      public MBeanInfo getMBeanInfo()
      Gets the MBean info.
      Specified by:
      getMBeanInfo in interface MBeanService
      Overrides:
      getMBeanInfo in class MBeanRepository<DataTransfer>
      Returns:
      the MBean info
    • getAttribute

      public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException
      Gets the attribute.
      Specified by:
      getAttribute in interface MBeanService
      Overrides:
      getAttribute in class MBeanRepository<DataTransfer>
      Parameters:
      attributeName - the attribute name
      Returns:
      the attribute
      Throws:
      AttributeNotFoundException - the attribute not found exception
      MBeanException - the MBean exception