|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.TimerTask
org.eclipse.smila.taskmanager.persistence.zk.TaskWatcher
public class TaskWatcher
Runnable class that checks if tasks that are in progress have timed out.
| Constructor Summary | |
|---|---|
TaskWatcher()
|
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
initialize TaskManager internally on service start. |
boolean |
cancel()
Stop execution of the TaskWatcher. |
protected void |
deactivate(ComponentContext context)
OSGi deactivate bundle. |
void |
run()
|
void |
setTaskManager(TaskManager taskManager)
|
void |
setTaskStorage(TaskStorage taskStorage)
|
void |
setZooKeeperService(ZooKeeperService zooKeeperService)
|
void |
unsetTaskManager(TaskManager taskManager)
|
void |
unsetTaskStorage(TaskStorage taskStorage)
|
void |
unsetZooKeeperService(ZooKeeperService zooKeeperService)
|
| Methods inherited from class java.util.TimerTask |
|---|
scheduledExecutionTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskWatcher()
| Method Detail |
|---|
protected void activate(ComponentContext context)
context - OSGi service context.protected void deactivate(ComponentContext context)
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskpublic boolean cancel()
cancel in class java.util.TimerTaskpublic void setTaskStorage(TaskStorage taskStorage)
taskStorage - the new task storagepublic void unsetTaskStorage(TaskStorage taskStorage)
taskStorage - the task storagepublic void setTaskManager(TaskManager taskManager)
taskManager - the new task managerpublic void unsetTaskManager(TaskManager taskManager)
taskManager - the task managerpublic void setZooKeeperService(ZooKeeperService zooKeeperService)
zooKeeperService - referenced servicepublic void unsetZooKeeperService(ZooKeeperService zooKeeperService)
zooKeeperService - referenced service
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||