|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.util.tasks.Task
ome.util.tasks.SimpleTask
public class SimpleTask
Simplest possible concrete subclass of Task
which has null methods
for all of the required methods. Therefore, does nothing by default (though
it logs the nothing that it's doing).
Task
writers can override any or all of the 4 methods.
Task
Constructor Summary | |
---|---|
SimpleTask(ServiceFactory serviceFactory,
Properties properties)
Sole constructor. |
Method Summary | |
---|---|
void |
close()
Does nothing. |
void |
doTask()
Does nothing. |
void |
handleException(RuntimeException re)
Rethrows the RuntimeException . |
void |
init()
Does nothing. |
Methods inherited from class ome.util.tasks.Task |
---|
completedSuccessfully, enumValue, getLogger, getProperties, getServiceFactory, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleTask(ServiceFactory serviceFactory, Properties properties)
Task
Task.Task(ServiceFactory, Properties)
Method Detail |
---|
public void init()
init
in class Task
public void doTask()
doTask
in class Task
public void handleException(RuntimeException re)
RuntimeException
.
handleException
in class Task
re
- Non-null.public void close()
close
in class Task
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.