Ontimize Document Management 0.032EN

com.ontimize.dms.warehouse.local
Class DownloadClient

java.lang.Object
  extended by java.lang.Thread
      extended by com.ontimize.dms.warehouse.local.TransferThread
          extended by com.ontimize.dms.warehouse.local.DownloadClient
All Implemented Interfaces:
IDownload, ITraceable, IFinishListener, java.lang.Runnable

public class DownloadClient
extends TransferThread
implements IDownload


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class com.ontimize.dms.warehouse.local.TransferThread
cancelled, DEFAULT_OPEN_MAX, finished, lfinishedListener, list, modelAdapter, openMax, queue, transferListener, transferStatusPanel
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DownloadClient(IRemoteTransfer irs, java.lang.String basePath, java.lang.String tempPath, int sessionId)
           
 
Method Summary
 int download(Document document, int action, java.lang.Number version, java.io.File destFile)
           
 TransferStatus getStatus()
           
 void run()
           
 int size()
           
 
Methods inherited from class com.ontimize.dms.warehouse.local.TransferThread
addFinishedListener, addModelListener, addTransferListener, clearFinishedListener, create, create, fireFinishedListeners, fireModelEvent, fireTransferListener, getBasePath, getStatus, getTempPath, haveToUpdate, removeFinishedListener, removeModelListener, setOpenMax, setTransferTrace, start
 
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
 

Constructor Detail

DownloadClient

public DownloadClient(IRemoteTransfer irs,
                      java.lang.String basePath,
                      java.lang.String tempPath,
                      int sessionId)
Method Detail

download

public int download(Document document,
                    int action,
                    java.lang.Number version,
                    java.io.File destFile)
             throws java.lang.Exception
Specified by:
download in interface IDownload
Throws:
java.lang.Exception

run

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

size

public int size()

getStatus

public TransferStatus getStatus()
Specified by:
getStatus in class TransferThread

Ontimize Document Management