
public class ScriptingSubsystemWrapper extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ScriptingSubsystemWrapper(String subsystemName) |
| Modifier and Type | Method and Description |
|---|---|
Future<Object> |
asynchCommand(String commandName,
Object... args)
Invoke an asynchronous command with arguments on the subsystem
|
Future<Object> |
asynchCommandLine(String command)
Invoke an asynchronous command line on the subsystem
|
Future<Object> |
internalAsynchCommand(ModuleInvokerCommand cmd) |
ScriptingCommandResponse |
synchCommand(int timeout,
String commandName,
Object... args)
Invoke a synchronous command with arguments on the subsystem
|
ScriptingCommandResponse |
synchCommandLine(int timeout,
String command)
Invoke a synchronous command line on the subsystem
|
protected ScriptingSubsystemWrapper(String subsystemName)
public ScriptingCommandResponse synchCommand(int timeout, String commandName, Object... args) throws ScriptingTimeoutException, Exception
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 ScriptingCommandResponse synchCommandLine(int timeout, String command) throws ScriptingTimeoutException, Exception
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).public Future<Object> asynchCommand(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(ModuleInvokerCommand cmd) throws Exception
Exceptionpublic 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 © 2015 LSST. All rights reserved.