Class ActionFileHandler

  • public class ActionFileHandler
    extends java.lang.Object
    The action handler manages the ActionRemoteFiles written during an Operation.

    In particular, it uploads an initial action file when the operation is started, deletes it when it is finished/terminated, and renews the operation's action file in a given interval.

    The renewal is necessary to show other clients that the operation is still running. To ensure action file renewal, the start() method starts a timer that uploads a new ActionRemoteFile every ACTION_RENEWAL_INTERVAL milliseconds. The finish() method stops this timer.

    See Also:
    • Field Summary

      Modifier and Type Field Description
      Defines the time that the action files updated while an operation is running.
    • Constructor Summary

      Constructor Description
      ActionFileHandler​(TransferManager transferManager, java.lang.String operationName, java.lang.String machineName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()  
      void start()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait