
public final class AgentPeriodicTaskService extends Object implements ServiceLifecycle
| Constructor and Description |
|---|
AgentPeriodicTaskService(Agent a)
Create an instance of the AgentPeriodicTaskService for a given Agent.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAgentPeriodicTaskNames()
Get the list of names of the scheduled tasks.
|
Duration |
getPeriodicTaskPeriod(String taskName)
Get the period of a PeriodicTaks.
|
List<PeriodicTask> |
getPeriodicTasks() |
String |
getSchedulerState()
Get a string representing the state of the scheduler.
|
void |
postStop()
Called from the enclosing
Subsystem when
org.lsst.ccs.Subsystem#shutdown() has been called after shtudownNow has
been invoked on all the children. |
void |
preInit() |
void |
scheduleAgentPeriodicTask(AgentPeriodicTask task)
Schedule a PeriodicTask.
|
void |
setPeriodicTaskPeriod(String taskName,
Duration period)
Change the period of a PeriodicTask.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreBuild, preShutdown, preStartbuild, init, postBuild, postInit, postShutdown, postStart, start, stoppublic AgentPeriodicTaskService(Agent a)
a - The Agent this Service belongs to.public void preInit()
preInit in interface ServiceLifecyclepublic void postStop()
HasLifecycleSubsystem when
org.lsst.ccs.Subsystem#shutdown() has been called after shtudownNow has
been invoked on all the children. At the time it
is called :
PhaseState is CLOSING.
HardwareController.checkStopped() has
been called
postStop in interface HasLifecyclepublic void scheduleAgentPeriodicTask(AgentPeriodicTask task)
task - The PeriodicTask to schedulepublic Duration getPeriodicTaskPeriod(String taskName)
taskName - The name of the taskpublic void setPeriodicTaskPeriod(String taskName, Duration period)
taskName - The name of the taskperiod - The period Duration@Command(name="getAgentPeriodicTaskNames", description="Get the list of the names of the scheduled tasks", type=QUERY, category=SYSTEM) public List<String> getAgentPeriodicTaskNames()
public List<PeriodicTask> getPeriodicTasks()
public String getSchedulerState()
Copyright © 2018 LSST. All rights reserved.