|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.almende.eve.scheduler.RunnableSchedulerFactory.RunnableScheduler
public class RunnableSchedulerFactory.RunnableScheduler
The RunnableSchedular class is the interface which the agents can interact with. It can only be instantiated by the factory using the method getSchedular(agentId).
Method Summary | |
---|---|
void |
cancelTask(String taskId)
Cancel a scheduled task by its id |
String |
createTask(JSONRequest request,
long delay)
Schedule a task |
Set<String> |
getTasks()
Retrieve a list with all scheduled tasks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String createTask(JSONRequest request, long delay)
createTask
in interface Scheduler
request
- A JSONRequest with method and paramsdelay
- The delay in milliseconds
public void cancelTask(String taskId)
cancelTask
in interface Scheduler
taskId
- public Set<String> getTasks()
getTasks
in interface Scheduler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |