public class AgentLockServiceCommands extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentLockServiceCommands.SetGetLevelCommands |
| Modifier and Type | Method and Description |
|---|---|
void |
attachLock(String agentName) |
void |
detachLock(String agentName) |
int |
get(AgentLockServiceCommands.SetGetLevelCommands what) |
int |
get(AgentLockServiceCommands.SetGetLevelCommands what,
String agentName) |
List<String> |
getAllWorkerAgents() |
List<String> |
getAttachableAgents() |
List<String> |
getDetachableAgents() |
int |
getLevel(String agentName) |
List<String> |
getLockableAgents() |
List<String> |
getLockedAgents() |
void |
lock(String agentName) |
void |
login(String userId) |
void |
logout() |
void |
set(AgentLockServiceCommands.SetGetLevelCommands what,
int level) |
void |
set(AgentLockServiceCommands.SetGetLevelCommands what,
String agentName,
int level) |
void |
setLevel(String agentName,
int level) |
void |
showLocalLocks() |
void |
showLocks() |
void |
unlock(String agentName) |
@Command(description="Set this agent\'s authorized operational level for the given subsystem")
public void setLevel(@Argument(allowedValueProvider="getAllWorkerAgents")
String agentName,
int level)
throws Exception
Exception@Command(description="Get this agent\'s authorized operatinal level for the given subsystem")
public int getLevel(@Argument(allowedValueProvider="getAllWorkerAgents")
String agentName)
@Command(description="Set the level of an agent",
level=0)
public void set(@Argument(name="item")
AgentLockServiceCommands.SetGetLevelCommands what,
@Argument(allowedValueProvider="getAllWorkerAgents")
String agentName,
int level)
throws Exception
Exception@Command(description="Set the level of an agent",
level=0)
public void set(@Argument(name="item")
AgentLockServiceCommands.SetGetLevelCommands what,
int level)
throws Exception
Exception@Command(description="Get the level of an agent",
level=0)
public int get(@Argument(name="item")
AgentLockServiceCommands.SetGetLevelCommands what,
@Argument(allowedValueProvider="getAllWorkerAgents")
String agentName)
throws Exception
Exception@Command(description="Get the level of an agent",
level=0)
public int get(@Argument(name="item")
AgentLockServiceCommands.SetGetLevelCommands what)
throws Exception
Exception@Command(description="Lock the given subsystem")
public void lock(@Argument(allowedValueProvider="getLockableAgents",defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="Unlock the given subsystem")
public void unlock(@Argument(allowedValueProvider="getLockedAgents",defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="Attach the lock on the given subsystem to the current agent")
public void attachLock(@Argument(allowedValueProvider="getAttachableAgents",defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="Detach the lock on the given subsystem from the current agent")
public void detachLock(@Argument(allowedValueProvider="getDetachableAgents",defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="Return agents that could be locked") public List<String> getLockableAgents()
@Command(description="Return locked agents that could be attached to the current agent") public List<String> getAttachableAgents()
@Command(description="Return locked agents that could be detached from the current agent") public List<String> getDetachableAgents()
@Command(description="Show owned locks") public void showLocks()
@Command(description="Show attached locks") public void showLocalLocks()
@Command(description="Set a specific user ID for the current console") public void login(String userId) throws Exception
ExceptionCopyright © 2021 LSST. All rights reserved.