
public class RemoteAgentLockService extends AbstractAgentLockServiceDelegate
agentLevels, agentLockUpdateListeners, allLocks, heldLocks, lockLevelUpdate, lockListenersSemaphore, log, myCurrentLock, svc| Constructor and Description |
|---|
RemoteAgentLockService(AgentLockService svc) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachLock(String agentName) |
void |
destroyLock(String agentName,
String userId) |
void |
detachLock(String agentName) |
void |
lockAgent(String agentName)
Request for this agent to obtain a lock on the given subsystem.
|
void |
preInit() |
void |
preStart() |
void |
setLevelForAgent(String agentName,
int level)
Set this agent's operational level for the given subsystem.
|
void |
unlockAgent(String agentName)
Request for this agent to release a lock on the given subsystem.
|
addAgentLockUpdateListener, addHeldLock, getAgent, getAgentStateService, getAllLocks, getAllWorkerAgents, getAttachableAgents, getCurrentLock, getDetachableAgents, getExistingLockForAgent, getHeldLocks, getLevelForAgent, getLocallyLockedAgents, getLockableAgents, getLockedAgents, getLockForAgent, getLocks, notifyGlobalLockListeners, notifyHeldLockListeners, notifyLevelListeners, notifyLockListeners, notifyLockVisibility, onAgentLoginUpdate, removeAgentLockUpdateListener, removeCurrentLock, removeHeldLock, setCurrentLock, setLevelInternal, validateLockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnected, connecting, disconnected, disconnectingpublic RemoteAgentLockService(AgentLockService svc)
public void preInit()
preInit in interface AgentLockServiceDelegatepreInit in class AbstractAgentLockServiceDelegatepublic void preStart()
preStart in interface AgentLockServiceDelegatepreStart in class AbstractAgentLockServiceDelegatepublic void setLevelForAgent(String agentName, int level) throws UnauthorizedLevelException, UnauthorizedLockException
AgentLockServiceDelegateagentName - the subsystem for which to change the levellevel - the level to setUnauthorizedLevelException - if the requested level cannot be set. This
happens if this agent owns a lock on the
given subsystem and that lock defines a
maximum level that is lower than the
requested level, or if this agent does not
hold a lock on the given subsystem and
this agent's default subsystem level is
lower than the requested level.UnauthorizedLockException - if the user is not allowed to acquire a
lock on the specified Agentpublic void attachLock(String agentName) throws UnauthorizedLockException
UnauthorizedLockExceptionpublic void detachLock(String agentName) throws UnauthorizedLockException
UnauthorizedLockExceptionpublic void lockAgent(String agentName) throws UnauthorizedLockException
AgentLockServiceDelegateAgentLockUpdateListener will be notified. The list of owned valid
locks will be updated.UnauthorizedLockException - if the user is not allowed to acquire a
lock on the specified Agentpublic void unlockAgent(String agentName) throws UnauthorizedLockException
AgentLockServiceDelegateAgentLockUpdateListener and AgentLevelListener
will be notified. The list of owned valid locks will be updated.UnauthorizedLockException - if the user did not have a lock on the
specified AgentCopyright © 2021 LSST. All rights reserved.