
public class CommandSender extends Object
| Constructor and Description |
|---|
CommandSender(String dest)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
sendCommand(int timeout,
String path,
String cmnd,
Object... args)
Sends a command and receives the response.
|
Object |
sendCommand(String path,
String cmnd,
Object... args)
Sends a command and receives the response.
|
Object |
sendCommandRaw(int timeout,
String path,
String cmnd,
Object... args)
Sends a command and receives the response.
|
Object |
sendCommandRaw(String path,
String cmnd,
Object... args)
Sends a command and receives the response.
|
void |
setTimeout(int timeout)
Sets the default timeout.
|
public CommandSender(String dest)
dest - The name of the destination subsystem for the commandspublic Object sendCommand(String path, String cmnd, Object... args)
path - The path within the destination to receive the command,
or null if the top levelcmnd - The command to executeargs - The command argumentspublic Object sendCommand(int timeout, String path, String cmnd, Object... args)
timeout - The command timeout (ms)path - The path within the destination to receive the command,
or null if the top levelcmnd - The command to executeargs - The command argumentspublic Object sendCommandRaw(String path, String cmnd, Object... args) throws Exception
path - The path within the destination to receive the command,
or null if the top levelcmnd - The command to executeargs - The command argumentsExceptionpublic Object sendCommandRaw(int timeout, String path, String cmnd, Object... args) throws Exception
timeout - The command timeout (ms)path - The path within the destination to receive the command,
or null if the top levelcmnd - The command to executeargs - The command argumentsExceptionpublic void setTimeout(int timeout)
timeout - The default timeout (ms). If zero, the command waits forever.
If positive, the maximum of this value and the ACK custom timeout is used.
If negative, its absolute value is used. The initial value is 5000.Copyright © 2019 LSST. All rights reserved.