
public class DemoSubsystem extends Object implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected PeriodicTask |
dataPublisher
Scheduler task that publishes heartbeat status messages.
|
protected PeriodicTask |
plotPublisher |
| Constructor and Description |
|---|
DemoSubsystem() |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getSampleArrayData() |
DemoData |
getSampleData() |
void |
init() |
void |
postStart()
Initializes the subsystem.
|
void |
publishPlot(String key,
String path,
String title) |
void |
raiseCustomAlert(String alertId,
org.lsst.ccs.bus.states.AlertState severity,
String cause) |
void |
runTracerTest(boolean enable) |
void |
setSampleDataSize(int size) |
String |
testAck(boolean accept,
int delayBeforeAck,
int delayAfterAck,
int timeout) |
String |
testTimeout(int sleep) |
void |
throwAnException() |
void |
updateLimits(String low,
String high) |
protected PeriodicTask dataPublisher
protected PeriodicTask plotPublisher
public void postStart()
throws org.lsst.ccs.HardwareException
postStart in interface org.lsst.ccs.framework.HasLifecycleorg.lsst.ccs.HardwareExceptionpublic void init()
init in interface org.lsst.ccs.framework.HasLifecycle@Command(type=ACTION, description="update limits") public void updateLimits(String low, String high)
@Command(type=QUERY, description="raise custom alert") public void raiseCustomAlert(String alertId, org.lsst.ccs.bus.states.AlertState severity, String cause)
@Command(type=QUERY, description="Get Subsystem Data Sample") public DemoData getSampleData()
@Command(type=QUERY, description="Set Subsystem Data Sample") public void setSampleDataSize(int size)
@Command(type=QUERY, description="Get Subsystem Array Sample") public Object[] getSampleArrayData()
@Command(type=QUERY, description="Throw an Exception") public void throwAnException()
@Command(type=ACTION, description="Enable/Disable Publishing Tracer Test Messages") public void runTracerTest(boolean enable)
@Command(type=QUERY, description="Time out") public String testTimeout(int sleep)
@Command(type=QUERY, description="Test sending ACK/NACK. Delays are in seconds.", autoAck=false) public String testAck(boolean accept, int delayBeforeAck, int delayAfterAck, int timeout)
Copyright © 2017 LSST. All rights reserved.