org.globus.ftp.dc
Class TransferSourceThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.globus.ftp.dc.TransferThread
          extended by org.globus.ftp.dc.TransferSourceThread
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
GridFTPTransferSourceThread

public class TransferSourceThread
extends TransferThread

Implements outgoing transfer. While the transfer is in progress, replies are sent to the local control channel. Also any failure messages go there in the form of a negative reply.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  TransferContext context
           
protected  BasicServerControlChannel localControlChannel
           
protected static org.apache.commons.logging.Log logger
           
protected  SocketBox socketBox
           
protected  DataSource source
           
protected  DataChannelWriter writer
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TransferSourceThread(AbstractDataChannel dataChannel, SocketBox socketBox, DataSource source, BasicServerControlChannel localControlChannel, TransferContext context)
           
 
Method Summary
 void run()
           
protected  Object shutdown()
           
protected  void startup()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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

logger

protected static org.apache.commons.logging.Log logger

writer

protected DataChannelWriter writer

source

protected DataSource source

localControlChannel

protected BasicServerControlChannel localControlChannel

context

protected TransferContext context

socketBox

protected SocketBox socketBox
Constructor Detail

TransferSourceThread

public TransferSourceThread(AbstractDataChannel dataChannel,
                            SocketBox socketBox,
                            DataSource source,
                            BasicServerControlChannel localControlChannel,
                            TransferContext context)
                     throws Exception
Throws:
Exception
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

startup

protected void startup()

shutdown

protected Object shutdown()
                   throws IOException
Throws:
IOException