public interface MaestroRequester
Modifier and Type | Method and Description |
---|---|
CompletableFuture<List<? extends MaestroNote>> |
flushRequest()
Deprecated.
|
CompletableFuture<List<? extends MaestroNote>> |
flushRequest(String topic)
Deprecated.
|
CompletableFuture<List<? extends MaestroNote>> |
getDataServer()
Sends a get request
|
CompletableFuture<List<? extends MaestroNote>> |
halt()
Sends a halt request
|
CompletableFuture<List<? extends MaestroNote>> |
pingRequest()
Sends a ping request
|
CompletableFuture<List<? extends MaestroNote>> |
pingRequest(String topic)
Sends a ping request
|
CompletableFuture<List<? extends MaestroNote>> |
setBroker(String value)
Sends a set broker request
|
CompletableFuture<List<? extends MaestroNote>> |
setBroker(String topic,
String value)
Sends a set broker request
|
CompletableFuture<List<? extends MaestroNote>> |
setDuration(Object value)
Sends a set duration request
|
CompletableFuture<List<? extends MaestroNote>> |
setDuration(String topic,
Object value)
Sends a set duration request
|
CompletableFuture<List<? extends MaestroNote>> |
setFCL(int value)
Sends a set fail-condition-latency (FCL) request
|
CompletableFuture<List<? extends MaestroNote>> |
setLogLevel(String value)
Deprecated.
|
CompletableFuture<List<? extends MaestroNote>> |
setLogLevel(String topic,
String value)
Sends a set log level request
|
CompletableFuture<List<? extends MaestroNote>> |
setMessageSize(long value)
Sends a set message size request (this one can be used for fixed message sizes)
|
CompletableFuture<List<? extends MaestroNote>> |
setMessageSize(String value)
Sends a set message size request (This one can be used for variable and fixed message sizes)
|
CompletableFuture<List<? extends MaestroNote>> |
setParallelCount(int value)
Sends a set parallel count request
|
CompletableFuture<List<? extends MaestroNote>> |
setParallelCount(String topic,
int value)
Sends a set parallel count request
|
CompletableFuture<List<? extends MaestroNote>> |
setRate(int value)
Sends a set rate request
|
CompletableFuture<List<? extends MaestroNote>> |
setRate(String topic,
int value)
Sends a set rate request
|
CompletableFuture<List<? extends MaestroNote>> |
setThrottle(int value)
Deprecated.
|
CompletableFuture<List<? extends MaestroNote>> |
setThrottle(String topic,
int value)
Deprecated.
|
CompletableFuture<List<? extends MaestroNote>> |
startAgent()
Sends a start agent request
|
CompletableFuture<List<? extends MaestroNote>> |
startInspector(String value)
Sends a start inspector request
|
CompletableFuture<List<? extends MaestroNote>> |
startReceiver()
Sends a start receiver request
|
CompletableFuture<List<? extends MaestroNote>> |
startSender()
Sends a start sender request
|
CompletableFuture<List<? extends MaestroNote>> |
statsRequest()
Sends a stats request
|
void |
stop()
Stops maestro
|
CompletableFuture<List<? extends MaestroNote>> |
stopAgent()
Sends a stop agent request
|
CompletableFuture<List<? extends MaestroNote>> |
stopInspector()
Sends a stop inspector request
|
CompletableFuture<List<? extends MaestroNote>> |
stopReceiver()
Sends a stop receiver request
|
CompletableFuture<List<? extends MaestroNote>> |
stopSender()
Sends a stop sender request
|
CompletableFuture<List<? extends MaestroNote>> |
userCommand(long option,
String payload)
Sends a agent general execution request
|
void stop() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT request@Deprecated CompletableFuture<List<? extends MaestroNote>> flushRequest() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT request@Deprecated CompletableFuture<List<? extends MaestroNote>> flushRequest(String topic) throws MaestroConnectionException
topic
- the topic to send the request toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> pingRequest() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> pingRequest(String topic) throws MaestroConnectionException
topic
- the topic to send the request toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setBroker(String value) throws MaestroConnectionException
value
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setBroker(String topic, String value) throws MaestroConnectionException
value
- The value to set the (remote) parameter totopic
- the topic to send the request toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setDuration(Object value) throws MaestroException
value
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestMaestroException
CompletableFuture<List<? extends MaestroNote>> setDuration(String topic, Object value) throws MaestroException
topic
- the topic to send the request tovalue
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestMaestroException
@Deprecated CompletableFuture<List<? extends MaestroNote>> setLogLevel(String value) throws MaestroConnectionException
value
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setLogLevel(String topic, String value) throws MaestroConnectionException
topic
- the topic to send the request tovalue
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setParallelCount(int value) throws MaestroConnectionException
value
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setParallelCount(String topic, int value) throws MaestroConnectionException
topic
- the topic to send the request tovalue
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setMessageSize(String value) throws MaestroConnectionException
value
- the value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setMessageSize(long value) throws MaestroConnectionException
value
- the value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT request@Deprecated CompletableFuture<List<? extends MaestroNote>> setThrottle(int value) throws MaestroConnectionException
value
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT request@Deprecated CompletableFuture<List<? extends MaestroNote>> setThrottle(String topic, int value) throws MaestroConnectionException
topic
- the topic to send the request tovalue
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setRate(int value) throws MaestroConnectionException
value
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setRate(String topic, int value) throws MaestroConnectionException
topic
- the topic to send the request tovalue
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setFCL(int value) throws MaestroConnectionException
value
- The value to set the (remote) parameter toMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> startInspector(String value) throws MaestroConnectionException
value
- the name of the inspector to startMaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> stopInspector() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> startSender() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> stopSender() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> startReceiver() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> stopReceiver() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> statsRequest() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> halt() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> getDataServer() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> startAgent() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> stopAgent() throws MaestroConnectionException
MaestroConnectionException
- if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> userCommand(long option, String payload) throws MaestroConnectionException
option
- An optional numeric option that can be associated w/ the commandpayload
- An option string payload to be sent along w/ the commandMaestroConnectionException
- if unable to send the MQTT requestThis documentation was released into the public domain.