public class AgentLockServiceCommands extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentLockServiceCommands.SetGetLevelCommands |
@Deprecated @Command(description="Set this agent\'s authorized operational level for the given subsystem") public void setLevel(@Argument(allowedValueProvider="getAllLockedOrLockableAgents") String agentName, int level) throws Exception
Exception@Deprecated @Command(description="Get this agent\'s authorized operatinal level for the given subsystem") public int getLevel(@Argument(allowedValueProvider="getAllLockedOrLockableAgents") String agentName)
@Command(description="Set the level of an agent",
level=0)
public void set(@Argument(name="item")
AgentLockServiceCommands.SetGetLevelCommands what,
@Argument(allowedValueProvider="getAllLockedOrLockableAgents")
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="getAllLockedOrLockableAgents")
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="List subsystems locked by the current user") public List<String> getLockedAgents()
@Command(description="Unlock the given subsystem, even if it is locked by another user")
public void destroyLock(@Argument(defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="List subsystems that are currently online and can be locked") public List<String> getLockableAgents()
@Command(description="List locked subsystems that could be attached to the current agent") public List<String> getAttachableAgents()
@Command(description="List locked and attached subsystems that could be detached from the current agent") public List<String> getDetachableAgents()
@Command(description="Show lock for the specified subsystem") public String showLock(@Argument(allowedValueProvider="getAllLockedOrLockableAgents",defaultValue="CurrentTarget") String agentName)
@Command(description="List all locks owned by the specified user. If no user name is given, list locks owned by the current user.") public String showLocks(@Argument(defaultValue="") String user)
@Command(description="List attached locks") public String showLocalLocks()
@Command(description="List all existing locks") public String showAllLocks()
@Command(description="Set a specific user ID for the current console") public void login(String userId) throws Exception
Exception@Command(description="Disconnect the user ID from the current console")
public void logout()
throws Exception
ExceptionCopyright © 2022 LSST. All rights reserved.