Package com.adaptris.filesystem
Class MoveFileService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.filesystem.MoveFileService
-
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator,Service,StateManagedComponent
@ComponentProfile(summary="Will move a files and/or directories to \"new-path\"", tag="FS, FileSystem") public class MoveFileService extends ServiceImpMove files and / or directories to "new-path"In the adapter configuration file this class is aliased as move-file-service which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description MoveFileService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseService()voiddoService(AdaptrisMessage message)java.lang.BooleangetMoveDirectory()java.lang.StringgetNewPath()java.lang.StringgetOriginalPath()protected voidinitService()booleanmoveDirectory()voidprepare()voidsetMoveDirectory(java.lang.Boolean moveDirectory)voidsetNewPath(java.lang.String newPath)voidsetOriginalPath(java.lang.String originalPath)MoveFileServicewithMoveDirectory(java.lang.Boolean moveDirectory)MoveFileServicewithNewPath(java.lang.String newPath)MoveFileServicewithOriginalPath(java.lang.String originalPath)-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
-
-
-
Method Detail
-
doService
public void doService(AdaptrisMessage message) throws ServiceException
- Throws:
ServiceException
-
prepare
public void prepare() throws CoreException- Throws:
CoreException
-
initService
protected void initService() throws CoreException- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()
- Specified by:
closeServicein classServiceImp
-
getOriginalPath
public java.lang.String getOriginalPath()
-
setOriginalPath
public void setOriginalPath(java.lang.String originalPath)
-
withOriginalPath
public MoveFileService withOriginalPath(java.lang.String originalPath)
-
getNewPath
public java.lang.String getNewPath()
-
setNewPath
public void setNewPath(java.lang.String newPath)
-
withNewPath
public MoveFileService withNewPath(java.lang.String newPath)
-
getMoveDirectory
public java.lang.Boolean getMoveDirectory()
-
setMoveDirectory
public void setMoveDirectory(java.lang.Boolean moveDirectory)
-
withMoveDirectory
public MoveFileService withMoveDirectory(java.lang.Boolean moveDirectory)
-
moveDirectory
public boolean moveDirectory()
-
-