public class MaestroReceiverClient extends MaestroMqttClient implements MaestroReceiver
Constructor and Description |
---|
MaestroReceiverClient(String url,
String clientName,
String host,
String id) |
Modifier and Type | Method and Description |
---|---|
void |
abnormalDisconnect()
Publishes an abnormal disconnect notification message in the broker
|
void |
getResponse(GetResponse getResponse)
Publishes a get response as a reply to a get request
|
void |
logResponse(File logFile,
LocationType locationType,
String hash)
Sends log files via Maestro broker
|
void |
notifyDrainComplete(boolean status,
String message) |
void |
notifyFailure(String message)
Publishes a test failure notification message in the broker
|
void |
notifySuccess(String message)
Publishes a test success notification message in the broker
|
void |
pingResponse(MaestroNote note,
long sec,
long uSec)
Publishes a ping response that takes into account a giver number of
elapsed seconds/microseconds
|
void |
replyInternalError(MaestroNote note,
String message,
String... args)
Publishes an internal error reply in the Maestro broker
|
void |
replyOk(MaestroNote note)
Publishes a OK reply in the maestro broker
|
void |
statsResponse(StatsResponse statsResponse)
Publishes a stats response as a reply to a stats request
|
connect, disconnect, publish, publish, publish
public void replyOk(MaestroNote note)
MaestroReceiver
replyOk
in interface MaestroReceiver
note
- the request note to correlate this response topublic void replyInternalError(MaestroNote note, String message, String... args)
MaestroReceiver
replyInternalError
in interface MaestroReceiver
note
- the request note to correlate this response tomessage
- the error messageargs
- the arguments to format the messagepublic void pingResponse(MaestroNote note, long sec, long uSec)
MaestroReceiver
pingResponse
in interface MaestroReceiver
note
- the request note to correlate this response tosec
- Epoch secondsuSec
- Microseconds within the secondpublic void notifySuccess(String message)
MaestroReceiver
notifySuccess
in interface MaestroReceiver
message
- payload messagepublic void notifyFailure(String message)
MaestroReceiver
notifyFailure
in interface MaestroReceiver
message
- payload messagepublic void abnormalDisconnect()
MaestroReceiver
abnormalDisconnect
in interface MaestroReceiver
public void statsResponse(StatsResponse statsResponse)
statsResponse
- the stats response to publishpublic void getResponse(GetResponse getResponse)
getResponse
- the get response to publishpublic void logResponse(File logFile, LocationType locationType, String hash)
logFile
- the log file to sendlocationType
- the location typehash
- the hash for the file being sentpublic void notifyDrainComplete(boolean status, String message)
This documentation was released into the public domain.