java.lang.Object
java.lang.Thread
com.flexstor.remote.resourcefork.ntfs.NtfsForkServerThread
- All Implemented Interfaces:
- java.lang.Runnable
- public class NtfsForkServerThread
- extends java.lang.Thread
Server side implementation for requesting resource fork operations to files residing in a NTFS system.
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
IDENTIFIER
static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
ENCODE
private static final int ENCODE
- See Also:
- Constant Field Values
DECODE
private static final int DECODE
- See Also:
- Constant Field Values
COPY
private static final int COPY
- See Also:
- Constant Field Values
MOVE
private static final int MOVE
- See Also:
- Constant Field Values
DELETE
private static final int DELETE
- See Also:
- Constant Field Values
nAction
private int nAction
bResult
private boolean bResult
sInFile
private java.lang.String sInFile
sDestination
private java.lang.String sDestination
exception
private java.lang.Exception exception
NtfsForkServerThread
public NtfsForkServerThread()
run
public void run()
- Description copied from class:
java.lang.Thread
- The method of Thread that will be run if there is no Runnable object
associated with the Thread. Thread's implementation does nothing at all.
encodeMacBinary
public boolean encodeMacBinary(java.lang.String sInFile,
java.lang.String sDestination)
throws java.lang.Exception
- Creates a MacBinary file in the remote server
encode
private boolean encode()
throws java.io.IOException
decodeMacBinary
public boolean decodeMacBinary(java.lang.String sInFile,
java.lang.String sDestination)
throws java.lang.Exception
- Splits a MacBinary file in the remote server
decode
private boolean decode()
throws java.io.IOException
copyFile
public boolean copyFile(java.lang.String sInFile,
java.lang.String sDestination)
throws java.lang.Exception
- Copies a file from one location to another, both location in the remote server
copy
private boolean copy()
throws java.io.IOException
moveFile
public boolean moveFile(java.lang.String sInFile,
java.lang.String sDestination)
throws java.lang.Exception
- Moves a file from one location to another, both location in the remote server
move
private boolean move()
throws java.io.IOException
deleteFile
public boolean deleteFile(java.lang.String sInFile)
throws java.lang.Exception
- Deletes a file in the remote server
delete
private boolean delete()
throws java.io.IOException
executeExternal
private boolean executeExternal(java.lang.String sCommand)
throws java.io.IOException
getUNCPath
private java.lang.String getUNCPath(java.lang.String sPath)
getLocalHost
private java.lang.String getLocalHost()