
public final class DoormanMain
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.ClearAlertHandler, org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.framework.HardwareController, org.lsst.ccs.framework.SignalHandler
| Constructor and Description |
|---|
DoormanMain()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode |
canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState state)
Allows all alerts to be cleared unconditionally.
|
org.lsst.ccs.framework.TreeWalkerDiag |
checkHardware()
Attempts to start all configured instruments.
|
void |
checkStopped()
Cancels the readout task if that hasn't already been done.
|
String |
disable(int index)
Prevents an instrument from being read until further notice.
|
String |
enable(int index)
Enables periodic readout for an instrument.
|
void |
init()
Checks whether all the subsystem components have been constructed
and registers the ClearAlertHandler.
|
String |
instruments()
Gives the status of each of the instruments.
|
void |
postStart()
Does nothing.
|
org.lsst.ccs.framework.TreeWalkerDiag |
signal(org.lsst.ccs.framework.Signal sig)
Signal handler for stop and abort.
|
void |
start()
Does nothing.
|
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthbroadcastStatus, checkAllHardwareStopped, createHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, getStatusBroadcastPeriod, helper, initAgent, internalCheckHardware, isConnectedToTheBuses, isInEngineeringMode, populateComponentLookup, preBuild, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait@Command(type=QUERY, description="Displays a short report on instrument status.") public String instruments()
@Command(type=ACTION, description="Prevents further readout of an instrument") public String disable(@Argument(description="Instrument index number.") int index) throws Exception
index - An instrument index number.Exception - if ident is invalid or ambiguous.enable(int)@Command(type=ACTION, description="Enables an instrument for readout.") public String enable(@Argument(description="Instrument index number.") int index) throws Exception
index - An instrument index number.IllegalArgumentException - if ident is invalid or ambiguous.IllegalArgumentException - if newLocation is invalid.org.lsst.ccs.HardwareException - if device operations fail.Exceptiondisable(int)public org.lsst.ccs.framework.TreeWalkerDiag signal(org.lsst.ccs.framework.Signal sig)
signal in interface org.lsst.ccs.framework.SignalHandlersig - The signal.public void init()
init in interface org.lsst.ccs.framework.HasLifecycleRuntimeException - if anything is missing.public void start()
start in interface org.lsst.ccs.framework.HasLifecyclepublic org.lsst.ccs.framework.TreeWalkerDiag checkHardware()
throws org.lsst.ccs.HardwareException
start() has been called
for all configurable components. All instruments are stopped and re-started
with correct configurations for their assigned locations.checkHardware in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareException - if any fail to respond or if any report hardware faults.public void postStart()
start() has been called for all configurable components and after
checkHardware() and checkStarted() have been called for all
hardware controllers.postStart in interface org.lsst.ccs.framework.HasLifecyclepublic void checkStopped()
throws org.lsst.ccs.HardwareException
checkStopped in interface org.lsst.ccs.framework.HardwareControllerorg.lsst.ccs.HardwareException - if periodic readout can't be stopped.signal(org.lsst.ccs.framework.Signal)public org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode canClearAlert(org.lsst.ccs.bus.data.Alert alert,
org.lsst.ccs.bus.states.AlertState state)
canClearAlert in interface org.lsst.ccs.framework.ClearAlertHandleralert - The particular alert to be cleared.state - The current state (severity) of the alert.Copyright © 2021 LSST. All rights reserved.