public abstract class DNASynchronizer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
STATE_BROKEN |
static int |
STATE_RUNNING |
static int |
STATE_STOPPED |
Constructor and Description |
---|
DNASynchronizer()
Copy all digital objects listed in the sourceList from the given source
to the destination.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(SynchronizerStatusListener l)
Add a listener that will be notified of changes in the status of the
synchronizer.
|
java.lang.String |
getMessage() |
float |
getProgress() |
int |
getState() |
boolean |
hasBeenKilled()
Return whether or not this synchronizer has been killed.
|
boolean |
isRunning()
Return whether or not the worker thread has actually completed
|
void |
kill()
Tell the worker flag that it is time to finish up
|
void |
removeListener(SynchronizerStatusListener l)
Remove a listener so that it will no longer be notified of changes in the
status of the synchronizer.
|
void |
setThreadName(java.lang.String threadName)
Set the name of the thread
|
void |
start() |
void |
stop() |
java.lang.String |
toString() |
public static final int STATE_STOPPED
public static final int STATE_RUNNING
public static final int STATE_BROKEN
public DNASynchronizer()
public int getState()
public float getProgress()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Object
public void setThreadName(java.lang.String threadName)
public void start()
public void stop()
public void kill()
public boolean hasBeenKilled()
public boolean isRunning()
public void addListener(SynchronizerStatusListener l)
public void removeListener(SynchronizerStatusListener l)