public class LocalAgentLockService extends AbstractAgentLockServiceDelegate
agentLevels, agentLockUpdateListeners, allLocks, heldLocks, listenerUpdatesLock, log, myCurrentLock, svc| Constructor and Description |
|---|
LocalAgentLockService(AgentLockService svc) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachLock(String agentName) |
void |
destroyLock(String agentName,
String userId) |
void |
detachLock(String agentName) |
void |
disconnected(AgentInfo... agents)
Invoked when one or more agents are disconnected from this cluster, either
because the shutdown or because they were lost.
|
Map<String,AgentLock> |
getLocks() |
void |
lockAgent(String agentName) |
void |
preInit() |
void |
preStart() |
void |
setLevelForAgent(String agentName,
int level) |
void |
unlockAgent(String agentName) |
String |
validateLock(DictionaryCommand command,
AgentLock lock,
int level) |
addAgentLockUpdateListener, addHeldLock, getAgent, getAgentStateService, getAllWorkerAgents, getAttachableAgents, getCurrentLock, getDetachableAgents, getExistingLockForAgent, getHeldLocks, getLevelForAgent, getLocallyLockedAgents, getLockableAgents, getLockedAgents, getLockForAgent, getMaxLevel, notifyGlobalLockListeners, notifyHeldLockListeners, notifyLevelListeners, notifyLockListeners, notifyLockVisibility, onAgentLoginUpdate, removeAgentLockUpdateListener, removeCurrentLock, removeHeldLock, setCurrentLock, setLevelInternalclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnected, connecting, disconnectingpublic LocalAgentLockService(AgentLockService svc)
public void setLevelForAgent(String agentName, int level) throws UnauthorizedLevelException, UnauthorizedLockException
public void lockAgent(String agentName) throws UnauthorizedLockException
UnauthorizedLockExceptionpublic void attachLock(String agentName) throws UnauthorizedLockException
UnauthorizedLockExceptionpublic void detachLock(String agentName) throws UnauthorizedLockException
UnauthorizedLockExceptionpublic void unlockAgent(String agentName)
public void disconnected(AgentInfo... agents)
AgentPresenceListenerpublic Map<String,AgentLock> getLocks()
getLocks in interface AgentLockServiceDelegategetLocks in class AbstractAgentLockServiceDelegatepublic void preStart()
preStart in interface AgentLockServiceDelegatepreStart in class AbstractAgentLockServiceDelegatepublic void preInit()
preInit in interface AgentLockServiceDelegatepreInit in class AbstractAgentLockServiceDelegatepublic String validateLock(DictionaryCommand command, AgentLock lock, int level)
validateLock in interface AgentLockServiceDelegatevalidateLock in class AbstractAgentLockServiceDelegateCopyright © 2023 LSST. All rights reserved.