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", type=QUERY) 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", type=QUERY) public int getLevel(@Argument(allowedValueProvider="getAllLockedOrLockableAgents") String agentName)
@Command(description="Set the level of an agent",
level=0,
type=QUERY)
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,
type=QUERY)
public void set(@Argument(name="item")
AgentLockServiceCommands.SetGetLevelCommands what,
int level)
throws Exception
Exception@Command(description="Get the level of an agent",
level=0,
type=QUERY)
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,
type=QUERY)
public int get(@Argument(name="item")
AgentLockServiceCommands.SetGetLevelCommands what)
throws Exception
Exception@Command(description="Lock the given subsystem",
type=QUERY)
public void lock(@Argument(allowedValueProvider="getLockableAgents",defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="Unlock the given subsystem",
type=QUERY)
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",
type=QUERY)
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",
type=QUERY)
public void detachLock(@Argument(allowedValueProvider="getDetachableAgents",defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="List subsystems locked by the current user",
type=QUERY)
public List<String> getLockedAgents()
@Command(description="Unlock the given subsystem, even if it is locked by another user",
type=QUERY)
public void destroyLock(@Argument(defaultValue="CurrentTarget")
String agentName)
throws Exception
Exception@Command(description="List subsystems that are currently online and can be locked",
type=QUERY)
public List<String> getLockableAgents()
@Command(description="List locked subsystems that could be attached to the current agent",
type=QUERY)
public List<String> getAttachableAgents()
@Command(description="List locked and attached subsystems that could be detached from the current agent",
type=QUERY)
public List<String> getDetachableAgents()
@Command(description="Show lock for the specified subsystem",
type=QUERY)
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.",
type=QUERY)
public String showLocks(@Argument(defaultValue="")
String user)
@Command(description="List attached locks",
type=QUERY)
public String showLocalLocks()
@Command(description="List all existing locks",
type=QUERY)
public String showAllLocks()
@Command(description="Set a specific user ID for the current console",
type=QUERY)
public void login(String userId)
throws Exception
Exception@Command(description="Disconnect the user ID from the current console",
type=QUERY)
public void logout()
throws Exception
ExceptionCopyright © 2024 LSST. All rights reserved.