public class LockManager
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Constructor and Description |
|---|
LockManager() |
LockManager(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLock(org.lsst.ccs.bus.data.AgentLockInfo lock) |
org.lsst.ccs.bus.data.AgentLockInfo |
attachLock(org.lsst.ccs.bus.data.AgentLockInfo lock) |
void |
destroyLock(String agentName,
String userId) |
void |
detachLock(org.lsst.ccs.bus.data.AgentLockInfo lock) |
int |
getMaxLevel(String userid,
String targetAgentName)
Deprecated.
Use
AgentLockService.getMaxLevel(java.lang.String, java.lang.String) instead. |
void |
init() |
org.lsst.ccs.bus.data.AgentLockInfo |
lockAgent(org.lsst.ccs.bus.data.AgentLockInfo lock) |
org.lsst.ccs.bus.data.AgentLockInfo |
lockOrAttach(org.lsst.ccs.bus.data.AgentLockInfo lock) |
void |
postInit() |
void |
postStart() |
protected void |
removeLock(org.lsst.ccs.bus.data.AgentLockInfo lock) |
void |
unlockAgent(org.lsst.ccs.bus.data.AgentLockInfo lock) |
getLogHandler, getLogHandlerLevel, getLogLevel, getNumberCommandThreads, isLogLevelInherited, ping, printLoggersLevel, printLogHandlersLevel, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishMonitoringDataOnStatusBus, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic LockManager(String name)
public LockManager()
protected void addLock(org.lsst.ccs.bus.data.AgentLockInfo lock)
protected void removeLock(org.lsst.ccs.bus.data.AgentLockInfo lock)
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="destroys a lock",
level=0,
autoAck=false)
public void destroyLock(@Argument(name="agentName",description="agent name")
String agentName,
String userId)
@Command(type=QUERY,
category=SYSTEM,
description="lock a subsystem",
level=0,
autoAck=false)
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="unlock a subsystem",
level=0,
autoAck=false)
public void unlockAgent(@Argument(name="lock",description="Unlock request")
org.lsst.ccs.bus.data.AgentLockInfo lock)
@Command(type=QUERY,
category=SYSTEM,
description="attach a locked subsystem",
level=0,
autoAck=false)
public org.lsst.ccs.bus.data.AgentLockInfo attachLock(@Argument(name="lock",description="Attach request")
org.lsst.ccs.bus.data.AgentLockInfo lock)
@Command(type=QUERY,
category=SYSTEM,
description="detach a locked subsystem",
level=0)
public void detachLock(@Argument(name="lock",description="Detach request")
org.lsst.ccs.bus.data.AgentLockInfo lock)
@Command(type=QUERY,
category=SYSTEM,
description="lock a subsystem, or attach a lock if it already exists",
level=0,
autoAck=false)
public org.lsst.ccs.bus.data.AgentLockInfo lockOrAttach(@Argument(name="lock",description="Lock request")
org.lsst.ccs.bus.data.AgentLockInfo lock)
@Deprecated public int getMaxLevel(String userid, String targetAgentName)
AgentLockService.getMaxLevel(java.lang.String, java.lang.String) instead.Copyright © 2023 LSST. All rights reserved.