public interface MaestroRequester
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<List<? extends MaestroNote>> |
drainRequest(String topic,
DrainOptions drainOptions)
Issues a drain request
|
CompletableFuture<List<? extends MaestroNote>> |
getDataServer()
Sends a get data server request
|
CompletableFuture<List<? extends MaestroNote>> |
halt()
Sends a halt request
|
CompletableFuture<List<? extends MaestroNote>> |
halt(String topic)
Sends a halt request
|
void |
logRequest(String topic,
LocationType locationType,
String typeName)
Sends a log 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>> |
roleAssign(String topic,
Role role)
Assign a role to one or more peers
|
CompletableFuture<List<? extends MaestroNote>> |
roleUnassign(String topic)
Unassign a role to one or more peers
|
CompletableFuture<List<? extends MaestroNote>> |
setBroker(String topic,
String value)
Sends a set broker request
|
CompletableFuture<List<? extends MaestroNote>> |
setDuration(String topic,
Object value)
Sends a set duration request
|
CompletableFuture<List<? extends MaestroNote>> |
setFCL(String topic,
int value)
Sends a set fail-condition-latency (FCL) request
|
CompletableFuture<List<? extends MaestroNote>> |
setManagementInterface(String topic,
String value)
Sets the management interface URL
|
CompletableFuture<List<? extends MaestroNote>> |
setMessageSize(String topic,
long value)
Sends a set message size request (this one can be used for fixed message sizes)
|
CompletableFuture<List<? extends MaestroNote>> |
setMessageSize(String topic,
String value)
Sends a set message size request (This one can be used for variable and fixed message sizes)
|
CompletableFuture<List<? extends MaestroNote>> |
setParallelCount(String topic,
int value)
Sends a set parallel count request
|
CompletableFuture<List<? extends MaestroNote>> |
setRate(String topic,
int value)
Sends a set rate request
|
CompletableFuture<List<? extends MaestroNote>> |
sourceRequest(String topic,
Source source)
Sends a source request to the agent (which causes it to download the given source)
|
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>> |
startWorker(String topic,
WorkerStartOptions options)
Sends a start worker request
|
CompletableFuture<List<? extends MaestroNote>> |
statsRequest()
Sends a stats request
|
CompletableFuture<List<? extends MaestroNote>> |
statsRequest(String topic)
Sends a stats request
|
void |
stop()
Stops maestro
|
CompletableFuture<List<? extends MaestroNote>> |
stopAgent()
Sends a stop agent request
|
CompletableFuture<List<? extends MaestroNote>> |
stopAll()
Stops everything running on the test cluster
|
CompletableFuture<List<? extends MaestroNote>> |
stopInspector()
Sends a stop inspector request
|
CompletableFuture<List<? extends MaestroNote>> |
stopInspector(String topic)
Sends a stop inspector request
|
CompletableFuture<List<? extends MaestroNote>> |
stopWorker(String topic)
Sends a stop worker request
|
CompletableFuture<List<? extends MaestroNote>> |
userCommand(String topic,
UserCommandData userCommandData)
Sends a user command request
|
CompletableFuture<List<? extends MaestroNote>> |
waitForDrain()
Waits for the drain notifications
|
CompletableFuture<List<? extends MaestroNote>> |
waitForNotifications(int expect)
Waits for notifications
|
void stop() throws MaestroConnectionException
MaestroConnectionException - 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 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(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 requestMaestroExceptionCompletableFuture<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 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>> setMessageSize(String topic, long 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(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(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>> 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>> stopInspector(String topic) throws MaestroConnectionException
topic - the topic to send the request toMaestroConnectionException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> startWorker(String topic, WorkerStartOptions options) throws MaestroConnectionException
topic - the topic to send the request tooptions - the worker startup optionsMaestroConnectionException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> stopWorker(String topic) throws MaestroConnectionException
topic - the topic to send the request toMaestroConnectionException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> stopAll()
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>> statsRequest(String topic) throws MaestroConnectionException
topic - the topic to send the request toMaestroConnectionException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> halt() throws MaestroConnectionException
MaestroConnectionException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> halt(String topic)
topic - the topic to send the request toMaestroConnectionException - 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(String topic, UserCommandData userCommandData) throws MaestroConnectionException
topic - the topic to send the request touserCommandData - the user command dataMaestroConnectionException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> setManagementInterface(String topic, String value)
topic - the topic to send the request tovalue - The management interface URLMaestroException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> sourceRequest(String topic, Source source) throws MaestroConnectionException
topic - the topic to send the request tosource - the extension point sourceMaestroConnectionException - if unable to send the MQTT requestvoid logRequest(String topic, LocationType locationType, String typeName) throws MaestroConnectionException
topic - the topic to send the request tolocationType - The location typetypeName - The optional type name (mandatory if the location type is ANY)MaestroConnectionException - if unable to send the MQTT requestCompletableFuture<List<? extends MaestroNote>> drainRequest(String topic, DrainOptions drainOptions)
topic - the topic to send the request todrainOptions - drain optionsCompletableFuture<List<? extends MaestroNote>> roleAssign(String topic, Role role) throws MaestroConnectionException
topic - the topic to send the request torole - The role to assignMaestroException - if unable to send the MQTT requestMaestroConnectionExceptionCompletableFuture<List<? extends MaestroNote>> roleUnassign(String topic) throws MaestroConnectionException
topic - the topic to send the request toMaestroException - if unable to send the MQTT requestMaestroConnectionExceptionCompletableFuture<List<? extends MaestroNote>> waitForDrain()
CompletableFuture<List<? extends MaestroNote>> waitForNotifications(int expect)
expect - how many notifications to expectThis documentation was released into the public domain.