
public class ScriptingSubsystemWrapper extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ScriptingSubsystemWrapper(String subsystemName,
ConcurrentMessagingUtils cmdAgent) |
| Modifier and Type | Method and Description |
|---|---|
Future<Object> |
asynchCommand(String commandName,
Object... args)
Deprecated.
use
#sendAsynchCommand instead |
Future<Object> |
asynchCommandLine(String command)
Deprecated.
|
Future<Object> |
internalAsynchCommand(CommandRequest cmd) |
Future<Object> |
sendAsynchCommand(String commandName,
Object... args) |
Object |
sendSynchCommand(Duration timeout,
String commandName,
Object... args) |
Object |
sendSynchCommand(int timeout,
String commandName,
Object... args)
Deprecated.
|
Object |
sendSynchCommand(String commandName,
Object... args) |
ScriptingCommandResponse |
synchCommand(int timeout,
String commandName,
Object... args)
Deprecated.
use
#sendSynchCommand() instead. |
ScriptingCommandResponse |
synchCommandLine(int timeout,
String command)
Deprecated.
use
#sendSynchCommand() instead. |
protected ScriptingSubsystemWrapper(String subsystemName, ConcurrentMessagingUtils cmdAgent)
@Deprecated public ScriptingCommandResponse synchCommand(int timeout, String commandName, Object... args) throws ScriptingTimeoutException, Exception
#sendSynchCommand() instead.timeout - Number of seconds to wait for command completion. Once the
timeout is reached a ScriptingTimeoutException is thrown.commandName - The name of the command to be executed. e.g.
"takeImage"args - Variable number of command arguments.ScriptingCommandResponse containing the Object from
the command execution It could be an exception if exceptions are set to
be returned. See CCS.setThrowExceptions(boolean).ScriptingTimeoutException - When the timeout is reached a
ScriptingTimeoutException will be either thrown or returned as part of
the ScriptingCommandResponse, depending on
CCS.setThrowExceptions(boolean).Exception - When an exception occurs during the command execution
the underlying Exception will be either thrown or returned as part of the
ScriptingCommandResponse, depending on
CCS.setThrowExceptions(boolean).public Object sendSynchCommand(String commandName, Object... args) throws ScriptingTimeoutException, Exception
ScriptingTimeoutExceptionException@Deprecated public Object sendSynchCommand(int timeout, String commandName, Object... args) throws ScriptingTimeoutException, Exception
ScriptingTimeoutExceptionExceptionpublic Object sendSynchCommand(Duration timeout, String commandName, Object... args) throws ScriptingTimeoutException, Exception
ScriptingTimeoutExceptionException@Deprecated public ScriptingCommandResponse synchCommandLine(int timeout, String command) throws ScriptingTimeoutException, Exception
#sendSynchCommand() instead.timeout - Number of seconds to wait for command completion. Once the
timeout is reached a ScriptingTimeoutException is thrown.command - The name full command to be executed, including the
arguments. e.g. "takeImage 10 2"ScriptingCommandResponse containing the Object from
the command execution It could be an exception if exceptions are set to
be returned. See CCS.setThrowExceptions(boolean).ScriptingTimeoutException - When the timeout is reached a
ScriptingTimeoutException will be either thrown or returned as part of
the ScriptingCommandResponse, depending on
CCS.setThrowExceptions(boolean).Exception - When an exception occurs during the command execution
the underlying Exception will be either thrown or returned as part of the
ScriptingCommandResponse, depending on
CCS.setThrowExceptions(boolean).@Deprecated public Future<Object> asynchCommand(String commandName, Object... args) throws Exception
#sendAsynchCommand insteadcommandName - The name of the command to be executed. e.g.
"takeImage"args - Variable number of command arguments.CCS.setThrowExceptions(boolean).Exception - When an exception occurs during the command execution
the underlying Exception will be either thrown or returned as part of the
Future, depending on CCS.setThrowExceptions(boolean).public Future<Object> sendAsynchCommand(String commandName, Object... args) throws Exception
Exceptionpublic Future<Object> internalAsynchCommand(CommandRequest cmd) throws Exception
Exception@Deprecated public Future<Object> asynchCommandLine(String command) throws Exception
command - The name full command to be executed, including the
arguments. e.g. "takeImage 10 2"CCS.setThrowExceptions(boolean).Exception - When an exception occurs during the command execution
the underlying Exception will be either thrown or returned as part of the
Future, depending on CCS.setThrowExceptions(boolean).Copyright © 2018 LSST. All rights reserved.