
public class SynchronousCommandAgent extends Object
| Constructor and Description |
|---|
SynchronousCommandAgent(MessagingFactory fac) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAckForCommand(Command command,
long millisTimeout) |
CommandListener |
getCommmandListener() |
Object |
invoke(Command command,
long millisTimeout)
execute a command synchronously on the bus.
|
String |
invokeAsync(Command command)
exceptionally one can send asynchronous commands: the replies are just
traced.
|
Future<Object> |
invokeFuture(Command command)
execute a command on the bus, returning a Future to an expected reply
|
public static final Logger CURLOG
public SynchronousCommandAgent(MessagingFactory fac)
public CommandListener getCommmandListener()
public Object invoke(Command command, long millisTimeout) throws Exception
command - millisTimeout - timeout for waiting for command executionException - if an exception was fired by the remote executon of the
command or the timeout expired.public Object getAckForCommand(Command command, long millisTimeout) throws Exception
Exceptionpublic Future<Object> invokeFuture(Command command)
command - Copyright © 2015 LSST. All rights reserved.