Package org.lsst.ccs.messaging
Interface LockLevelService
- All Known Implementing Classes:
AgentLockService
public interface LockLevelService
Interface for finding lock and level for an agent at the AgentMessagingLayer.
- Author:
- LSST CCS Team
-
Method Summary
Modifier and TypeMethodDescriptionintgetLevelForAgent(String agentName) Get this agent's operational level for the given subsystem.getLockForAgent(String agentName) Get this agent's lock, if available.Returns the current user.
-
Method Details
-
getLevelForAgent
Get this agent's operational level for the given subsystem.- Parameters:
agentName-- Returns:
- a level
-
getLockForAgent
Get this agent's lock, if available.- Parameters:
agentName- The agent name.- Returns:
- The AgentLock held on the agent, if available. Otherwise null is returned.
-
getUserId
String getUserId()Returns the current user.- Returns:
- User ID.
-