public class AgentLockServiceCommands extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentLockServiceCommands.SetGetLevelCommands |
| Modifier and Type | Method and Description |
|---|---|
int |
get(AgentLockServiceCommands.SetGetLevelCommands what) |
int |
get(AgentLockServiceCommands.SetGetLevelCommands what,
String agentName) |
List<String> |
getAllWorkerAgents() |
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 |
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="Show agents that could be locked") public List<String> getLockableAgents()
@Command(description="Set the user ID for the current console in order to take locks") public void login(String userId) throws Exception
Exception@Command(description="Disconnect the user from the console") public void logout()
Copyright © 2020 LSST. All rights reserved.