
public class PeriodicTaskComponent extends Object implements HasLifecycle
| Modifier and Type | Method and Description |
|---|---|
long |
getTaskPeriodMillis()
Returns the task period in milliseconds.
|
void |
postStart()
Called from the enclosing
Subsystem after
HardwareController components have been handled. |
void |
setTaskPeriodMillis(long taskPeriodMillis)
Changes the task period in milliseconds.
|
void |
shutdownNow()
Called from the enclosing
Subsystem when
Agent.shutdown() has been called. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, postInit, start@ConfigurationParameterChanger(propertyName="taskPeriodMillis") public void setTaskPeriodMillis(long taskPeriodMillis)
taskPeriodMillis - public long getTaskPeriodMillis()
public void shutdownNow()
HasLifecycleSubsystem when
Agent.shutdown() has been called. At the time it
is called :
PhaseState is CLOSING.
HardwareController.checkStopped() has
been called
If overridden from Module, a call to
super.shutdownNow() is required.
shutdownNow in interface HasLifecyclepublic void postStart()
HasLifecycleSubsystem after
HardwareController components have been handled. At the time it
is called :
HardwareController components have been handled without
throwing HardwareException
If successful, the enclosing subsystem's
PhaseState will change to
OPERATIONAL and the subsystem will invoke
startTicking on its modules components.
If an HardwareException is thrown, the
OperationalState will change to
ENGINEERING_FAULT until a call to
completeInitialization
is successful
It is unnecessary to call super.postStart()
TO-DO: Does this really need to throw a HardwareException? Don't we have
other Hardware specific interfaces?
postStart in interface HasLifecycleCopyright © 2017 LSST. All rights reserved.