Class MoveFileCommand

  • All Implemented Interfaces:

    public class MoveFileCommand
    extends java.lang.Object
    Does a move if the destination is an existing directory, a rename otherwise.
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      protected static org.apache.log4j.Logger operationLog  
    • Constructor Summary

      Constructor Description
      MoveFileCommand​(java.lang.String srcParentDirAbsolutePath, java.lang.String srcFileName, java.lang.String dstParentDirAbsolutePath, java.lang.String dstFileName)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Provisionally execute the actions requested by this step.
      static org.apache.log4j.Logger getOperationLog()  
      void rollback()
      Rollback any side-effects of the execute.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • operationLog

        protected static final org.apache.log4j.Logger operationLog
    • Constructor Detail

      • MoveFileCommand

        public MoveFileCommand​(java.lang.String srcParentDirAbsolutePath,
                               java.lang.String srcFileName,
                               java.lang.String dstParentDirAbsolutePath,
                               java.lang.String dstFileName)
    • Method Detail

      • execute

        public void execute()
        Description copied from interface: ITransactionalCommand
        Provisionally execute the actions requested by this step.
      • rollback

        public void rollback()
        Description copied from interface: ITransactionalCommand
        Rollback any side-effects of the execute. Rollback is assumed to be idempotent -- multiple invocations are allowed. If there is nothing to rollback, just ignore.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • getOperationLog

        public static org.apache.log4j.Logger getOperationLog()