java.lang.Object
com.flexstor.common.io.xfile.unc.UncCopy
com.flexstor.common.io.xfile.unc.UncMove
- All Implemented Interfaces:
- com.flexstor.common.io.xfile.XFileAccessorI, com.flexstor.common.io.xfile.XFileCopyI, com.flexstor.common.io.xfile.XFileMoveI
- public class UncMove
- extends UncCopy
- implements com.flexstor.common.io.xfile.XFileMoveI
UncMove copy files from the local file system; then it
deletes the original file.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sThisService
private java.lang.String sThisService
UncMove
public UncMove()
connect
public boolean connect(java.lang.String sHost,
java.lang.String sUser,
java.lang.String sPassword)
- Connects to host using the credentials specified.
Returns true if connection was sucessful; false otherwise.
- Specified by:
connect in interface com.flexstor.common.io.xfile.XFileAccessorI- Overrides:
connect in class UncCopy
disconnect
public void disconnect()
- Disconnects from host.
- Specified by:
disconnect in interface com.flexstor.common.io.xfile.XFileAccessorI- Overrides:
disconnect in class UncCopy
move
public boolean move(java.lang.String sSourceFile,
java.lang.String sTargetFile)
- Description copied from interface:
com.flexstor.common.io.xfile.XFileMoveI
- Moves the source file to the destination file specified.
- Specified by:
move in interface com.flexstor.common.io.xfile.XFileMoveI
moveToDir
public boolean moveToDir(java.lang.String sSourceFile,
java.lang.String sTargetDir)
- Description copied from interface:
com.flexstor.common.io.xfile.XFileMoveI
- Moves the source file to the destination directory specified.
- Specified by:
moveToDir in interface com.flexstor.common.io.xfile.XFileMoveI