Ontimize Document Management 0.032EN

com.ontimize.dms.warehouse.local.copy
Class CopyService

java.lang.Object
  extended by java.lang.Thread
      extended by com.ontimize.dms.warehouse.local.copy.CopyService
All Implemented Interfaces:
ICopyService, java.lang.Runnable

public class CopyService
extends java.lang.Thread
implements ICopyService


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.util.Vector current
           
protected  java.util.List eventListener
           
static int LOCAL_COPY_BAR_SET_OF_VALUES
           
protected  java.util.Vector queued
           
protected  CopyUtil util
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Fields inherited from interface com.ontimize.dms.warehouse.local.copy.ICopyService
MILISECONSD_TO_SLEEP
 
Constructor Summary
CopyService()
           
 
Method Summary
 boolean addCopy(CopyInfo info)
           
 void addStatusListener(CopyServiceStatusListener icf)
           
 boolean contains(Document document)
           
protected  java.util.List create(java.util.Vector vector, TransferStep step, boolean attachFile)
           
 void doCopy(CopyInfo copy)
           
protected  void fireStatusChanged(CopyStatus status)
           
 TransferStatus getStatus()
           
 boolean isEmpty()
           
 void removeStatusListener(CopyServiceStatusListener l)
           
 void run()
           
 int size()
           
 
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

LOCAL_COPY_BAR_SET_OF_VALUES

public static int LOCAL_COPY_BAR_SET_OF_VALUES

util

protected CopyUtil util

queued

protected java.util.Vector queued

current

protected java.util.Vector current

eventListener

protected java.util.List eventListener
Constructor Detail

CopyService

public CopyService()
Method Detail

contains

public boolean contains(Document document)
Specified by:
contains in interface ICopyService

addCopy

public boolean addCopy(CopyInfo info)
Specified by:
addCopy in interface ICopyService

size

public int size()
Specified by:
size in interface ICopyService

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ICopyService

doCopy

public void doCopy(CopyInfo copy)
            throws java.io.IOException
Specified by:
doCopy in interface ICopyService
Throws:
java.io.IOException

run

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

addStatusListener

public void addStatusListener(CopyServiceStatusListener icf)
Specified by:
addStatusListener in interface ICopyService

removeStatusListener

public void removeStatusListener(CopyServiceStatusListener l)
Specified by:
removeStatusListener in interface ICopyService

fireStatusChanged

protected void fireStatusChanged(CopyStatus status)

getStatus

public TransferStatus getStatus()
Specified by:
getStatus in interface ICopyService

create

protected java.util.List create(java.util.Vector vector,
                                TransferStep step,
                                boolean attachFile)

Ontimize Document Management