Package org.lsst.ccs.services
Interface AgentLockServiceDelegate
- All Known Implementing Classes:
AbstractAgentLockServiceDelegate,LocalAgentLockService,RemoteAgentLockService
public interface AgentLockServiceDelegate
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidattachLock(String agentName) voiddestroyLock(String agentName, String userId) voiddetachLock(String agentName) getExistingLockForAgent(String agentName) intgetLevelForAgent(String agentName) getLockForAgent(String agentName) getLocks()intgetMaxLevel(String userid, String agentName) voidvoidpreInit()voidpreStart()voidvoidsetLevelForAgent(String agentName, int level) voidunlockAgent(String agentName) validateLock(DictionaryCommand command, CommandRequest request)
-
Method Details
-
preInit
void preInit() -
preStart
void preStart() -
setLevelForAgent
void setLevelForAgent(String agentName, int level) throws UnauthorizedLevelException, UnauthorizedLockException -
lockAgent
- Throws:
UnauthorizedLockException
-
unlockAgent
- Throws:
UnauthorizedLockException
-
attachLock
- Throws:
UnauthorizedLockException
-
detachLock
- Throws:
UnauthorizedLockException
-
validateLock
-
getLocks
-
getLevelForAgent
-
getLockForAgent
-
getHeldLocks
-
addAgentLockUpdateListener
-
removeAgentLockUpdateListener
-
getAttachableAgents
-
getDetachableAgents
-
getLockableAgents
-
getLockedAgents
-
getAllLockedAgents
-
getAllWorkerAgents
-
getLocallyLockedAgents
-
getExistingLockForAgent
-
destroyLock
-
getMaxLevel
-