
public class ScriptingSubsystemWrapper extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ScriptingSubsystemWrapper(String subsystemName,
ConcurrentMessagingUtils cmdAgent) |
| Modifier and Type | Method and Description |
|---|---|
Future<Object> |
internalAsynchCommand(CommandRequest cmd) |
Future<Object> |
sendAsynchCommand(String commandName,
Object... args)
Invoke an asynchronous command with arguments on the subsystem
|
Object |
sendSynchCommand(Duration timeout,
String commandName,
Object... args)
Invoke a synchronous command with arguments on the subsystem
|
Object |
sendSynchCommand(String commandName,
Object... args) |
protected ScriptingSubsystemWrapper(String subsystemName, ConcurrentMessagingUtils cmdAgent)
public Object sendSynchCommand(Duration timeout, String commandName, Object... args) throws ScriptingTimeoutException, Exception
timeout - Duration 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.CCS.setThrowExceptions(boolean).ScriptingTimeoutException - When the timeout is reached a
ScriptingTimeoutException will be either thrown or returned depending on
CCS.setThrowExceptions(boolean).Exception - When an exception occurs during the command execution
the underlying Exception will be either thrown or returned depending on
CCS.setThrowExceptions(boolean).public Object sendSynchCommand(String commandName, Object... args) throws ScriptingTimeoutException, Exception
ScriptingTimeoutExceptionExceptionpublic Future<Object> sendAsynchCommand(String commandName, Object... args) throws Exception
commandName - 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> internalAsynchCommand(CommandRequest cmd) throws Exception
ExceptionCopyright © 2019 LSST. All rights reserved.