
public class LockManager
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Class and Description |
|---|---|
static class |
LockManager.AgentLockInfoString
Class that allows the serialization of the AgentLockInfo
We use the PersistenceService to make sure the locks
are stored at any given time.
|
| Constructor and Description |
|---|
LockManager() |
LockManager(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
org.lsst.ccs.bus.data.AgentLockInfo |
lockAgent(org.lsst.ccs.bus.data.AgentLockInfo lock) |
void |
postInit() |
void |
postStart() |
void |
unlockAgent(org.lsst.ccs.bus.data.AgentLockInfo lock) |
void |
updateLevel(org.lsst.ccs.bus.data.AgentLockInfo lock,
int level) |
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepth, switchToEngineeringMode, switchToNormalModebroadcastStatus, checkAllHardwareStopped, createHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, getStatusBroadcastPeriod, helper, internalCheckHardware, isConnectedToTheBuses, isInEngineeringMode, populateComponentLookup, preBuild, preInit, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, startAgentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic LockManager(String name)
public LockManager()
public 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, category=SYSTEM, description="locks a subsystem", level=0) public org.lsst.ccs.bus.data.AgentLockInfo lockAgent(@Argument(name="lock",description="Lock request") org.lsst.ccs.bus.data.AgentLockInfo lock)
@Command(type=QUERY, category=SYSTEM, description="unlocks a subsystem", level=0) public void unlockAgent(@Argument(name="lock",description="Unlock request") org.lsst.ccs.bus.data.AgentLockInfo lock)
@Command(type=QUERY, category=SYSTEM, description="updates lock level", level=0) public void updateLevel(@Argument(name="lock",description="lock info") org.lsst.ccs.bus.data.AgentLockInfo lock, @Argument(name="level",description="new level") int level)
Copyright © 2019 LSST. All rights reserved.