Package ca.phon.worker
Class PhonTask
java.lang.Object
ca.phon.worker.PhonTask
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AbstractPluginEntryPoint
,AutoValidateTask
,PhonTalkTask
,ProjectArchiveTask
,QueryTask
,SessionMerger
,VLCMediaExporter
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected Exception
If an exception was caught during the run method, it's stored herestatic final String
Task progress property Float Percentage done [0.0-1.0] or invalid input: '<' 0 if inderterminateprotected ConcurrentHashMap<String,
Object> Propsstatic final String
Task status property. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
firePropertyChange
(String prop, Object oldValue, Object newValue) protected void
fireStatusChange
(PhonTask.TaskStatus oldStatus, PhonTask.TaskStatus newStatus) getName()
getProperty
(String prop) long
long
boolean
abstract void
The abstract run method.void
void
run()
void
protected void
setProperty
(String prop, Object val) protected void
void
shutdown()
-
Field Details
-
PROGRESS_PROP
Task progress property Float Percentage done [0.0-1.0] or invalid input: '<' 0 if inderterminate- See Also:
-
STATUS_PROP
Task status property. Holds current status test (optional)- See Also:
-
err
If an exception was caught during the run method, it's stored here -
props
Props
-
-
Constructor Details
-
PhonTask
public PhonTask() -
PhonTask
-
-
Method Details
-
getStartTime
public long getStartTime() -
getRunTime
public long getRunTime() -
run
public void run() -
performTask
public abstract void performTask()The abstract run method. This method must be implemented by all subclasses. -
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
setStatus
-
getStatus
-
getName
-
setName
-
getException
-
getProperty
-
setProperty
-
addTaskListener
-
removeTaskListener
-
firePropertyChange
-
fireStatusChange
-