|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opensync.engine.server.Task
The task represents a synchronisation to do
| Field Summary | |
protected Agenda |
agenda
The agenda of the task |
protected long |
delay
The delay olf the task |
protected boolean |
finish
|
protected java.lang.String |
name
The name of the task |
protected Task |
parentTask
The parent task |
protected java.lang.String |
status
|
protected java.util.ArrayList |
subTasks
All the subtasks |
protected Synchronization |
synchronization
The synchronization to do |
protected java.util.ArrayList |
tasksListener
All tasks listeners |
protected java.util.ArrayList |
waittingSubTasks
The tasks not yet done |
| Constructor Summary | |
Task()
Construct a task object |
|
| Method Summary | |
void |
addSubTask(Task task)
Add a sub task |
void |
addTaskListener(TaskListener taskListener)
Regsiter a task listener |
void |
fail(java.lang.Exception exception)
The task failed |
Agenda |
getAgenda()
Get the agenda |
boolean |
getFinish()
|
java.lang.String |
getName()
Get the name of the task |
Task |
getParentTask()
Get the parent task |
java.lang.String |
getStatus()
|
java.util.Collection |
getSubTasks()
Get the sub tasks |
Synchronization |
getSynchronization()
Get the synchronization to do |
java.util.ArrayList |
getWaittingSubTasks()
Get all the not yet done |
void |
initDepends()
initialize the tak dependance |
void |
removeTaskListener(TaskListener taskListener)
Remove a task listener |
void |
run()
Run the task |
void |
setAgenda(Agenda agenda)
Set the agenda |
void |
setFinish(boolean finish)
|
void |
setName(java.lang.String name)
Set the name of the task |
void |
setParentTask(Task parentTask)
Set the parent taks |
void |
setStatus(java.lang.String status)
|
void |
setSynchronization(Synchronization synchronization)
Set the synchronization to do |
protected void |
start()
Start the taks |
protected void |
stop()
Stop the task |
void |
taskFail(TaskEvent event)
Implements the TaskListenr interface |
void |
taskStart(TaskEvent event)
Implements the TaskListenr interface |
void |
taskStop(TaskEvent event)
Implements the TaskListenr interface |
java.lang.String |
toString()
Use for debug only |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean finish
protected java.lang.String status
protected java.lang.String name
protected Agenda agenda
protected Synchronization synchronization
protected Task parentTask
protected java.util.ArrayList subTasks
protected java.util.ArrayList waittingSubTasks
protected java.util.ArrayList tasksListener
protected long delay
| Constructor Detail |
public Task()
| Method Detail |
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public boolean getFinish()
public void setFinish(boolean finish)
public void setSynchronization(Synchronization synchronization)
synchronization - the synchronization to dopublic Synchronization getSynchronization()
public java.util.Collection getSubTasks()
public void addSubTask(Task task)
task - public void addTaskListener(TaskListener taskListener)
taskListener - the task listener to registerpublic void removeTaskListener(TaskListener taskListener)
taskListener - the task listener to removpublic void setParentTask(Task parentTask)
parentTask - public Task getParentTask()
public void setName(java.lang.String name)
name - public java.lang.String getName()
public void setAgenda(Agenda agenda)
agenda - public Agenda getAgenda()
public void initDepends()
public void run()
run in interface java.lang.Runnableprotected void start()
protected void stop()
public void fail(java.lang.Exception exception)
exception - public void taskStart(TaskEvent event)
taskStart in interface TaskListenerevent - the task eventpublic void taskStop(TaskEvent event)
taskStop in interface TaskListenerevent - the task eventpublic void taskFail(TaskEvent event)
taskFail in interface TaskListenerevent - the task eventpublic java.lang.String toString()
public java.util.ArrayList getWaittingSubTasks()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||