Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.remote.resourcefork.ntfs
Class NtfsForkServerThread  view NtfsForkServerThread download NtfsForkServerThread.java

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.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 Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  boolean bResult
           
private static int COPY
           
private static int DECODE
           
private static int DELETE
           
private static int ENCODE
           
private  java.lang.Exception exception
           
(package private) static java.lang.String IDENTIFIER
           
private static int MOVE
           
private  int nAction
           
private  java.lang.String sDestination
           
private  java.lang.String sInFile
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NtfsForkServerThread()
           
 
Method Summary
private  boolean copy()
           
 boolean copyFile(java.lang.String sInFile, java.lang.String sDestination)
          Copies a file from one location to another, both location in the remote server
private  boolean decode()
           
 boolean decodeMacBinary(java.lang.String sInFile, java.lang.String sDestination)
          Splits a MacBinary file in the remote server
private  boolean delete()
           
 boolean deleteFile(java.lang.String sInFile)
          Deletes a file in the remote server
private  boolean encode()
           
 boolean encodeMacBinary(java.lang.String sInFile, java.lang.String sDestination)
          Creates a MacBinary file in the remote server
private  boolean executeExternal(java.lang.String sCommand)
           
private  java.lang.String getLocalHost()
           
private  java.lang.String getUNCPath(java.lang.String sPath)
           
private  boolean move()
           
 boolean moveFile(java.lang.String sInFile, java.lang.String sDestination)
          Moves a file from one location to another, both location in the remote server
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

NtfsForkServerThread

public NtfsForkServerThread()
Method Detail

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()