public class VacuumMain
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle, org.lsst.ccs.services.alert.AlertListener
| Constructor and Description |
|---|
VacuumMain()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Build phase
|
String |
checkSwitch(String name)
Returns enable and state of switch
|
void |
clearLatch(int cond)
Clears a latched condition.
|
List<String> |
getSwitchNames()
Gets the list of switch names.
|
VacSysState |
getVacuumState()
Gets the state of the Vacuum system.
|
void |
init()
Init phase.
|
void |
onAlert(org.lsst.ccs.services.alert.AlertEvent event)
Alert event handler.
|
void |
postInit()
Post initialization phase
|
void |
postStart()
Post start
|
void |
setSwitchOn(String name,
boolean on)
Turns a switch on or off.
|
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void init()
init in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecycle@Command(type=QUERY, description="Get the vacuum system state", level=0) public VacSysState getVacuumState()
@Command(type=QUERY, description="Get switch names", level=0) public List<String> getSwitchNames() throws VacuumException
VacuumException@Command(type=ACTION, description="Turn on/off a named switch") public void setSwitchOn(@Argument(description="The switch name") String name, @Argument(description="Whether to turn on") boolean on) throws VacuumException
name - The switch name.on - Whether to turn on or offVacuumException@Command(type=QUERY, description="Print enable and state for switch") public String checkSwitch(@Argument(description="The switch name") String name) throws VacuumException
name - The switch name.VacuumException@Command(type=ACTION, description="Clear a condition") public void clearLatch(@Argument(description="The condition number") int cond) throws VacuumException
cond - The condition number.VacuumExceptionpublic void onAlert(org.lsst.ccs.services.alert.AlertEvent event)
onAlert in interface org.lsst.ccs.services.alert.AlertListenerevent - The alert eventCopyright © 2023 LSST. All rights reserved.