dist1.acb.ACBpoint.transport
Class DownloadFile

java.lang.Object
  extended byjava.lang.Thread
      extended bydist1.acb.common.transport.AbstractClientSocket
          extended bydist1.acb.ACBpoint.transport.DownloadFile
All Implemented Interfaces:
java.lang.Runnable

public class DownloadFile
extends AbstractClientSocket

Separate thread that cares of downloading the file. Created on demand

Version:
$Revision: 1.42 $
Author:
Lazar Adzigogov

Nested Class Summary
 
Nested classes inherited from class dist1.acb.common.transport.AbstractClientSocket
AbstractClientSocket.SocketAndStreams
 
Field Summary
 
Fields inherited from class dist1.acb.common.transport.AbstractClientSocket
isShutdowned, log, objectStreamFactory, socket
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DownloadFile(java.net.InetSocketAddress peerAddress, java.lang.String fileName, int rowFile, long fileSize, long startSegmentId, java.lang.Integer fileId)
          Creates a new DownloadFile object.
 
Method Summary
protected  void handleConnectionEstablished()
           
protected  boolean handleConnectionLost()
           
protected  void handleUnrecoverableError(java.lang.Throwable e)
           
 void run()
          Thread the downloads the file
 
Methods inherited from class dist1.acb.common.transport.AbstractClientSocket
connect, connect, connect, getResponse, getServerAddr, getServersAddresses, handleResponseToNoRequest, isConnected, receiveResponse, request, request, scheduleRequest, setServersAddresses, start
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DownloadFile

public DownloadFile(java.net.InetSocketAddress peerAddress,
                    java.lang.String fileName,
                    int rowFile,
                    long fileSize,
                    long startSegmentId,
                    java.lang.Integer fileId)
Creates a new DownloadFile object.

Parameters:
peerAddress - DOCUMENT ME!
fileName - DOCUMENT ME!
rowFile - DOCUMENT ME!
fileSize - DOCUMENT ME!
startSegmentId - DOCUMENT ME!
fileId - DOCUMENT ME!
Method Detail

run

public void run()
Thread the downloads the file

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class AbstractClientSocket
Throws:
java.lang.RuntimeException - DOCUMENT ME!

handleConnectionEstablished

protected void handleConnectionEstablished()
Specified by:
handleConnectionEstablished in class AbstractClientSocket

handleConnectionLost

protected boolean handleConnectionLost()
Specified by:
handleConnectionLost in class AbstractClientSocket

handleUnrecoverableError

protected void handleUnrecoverableError(java.lang.Throwable e)
Specified by:
handleUnrecoverableError in class AbstractClientSocket


Copyright © 2004 Phoenix Team (CMU/AIT). All Rights Reserved.