public class MaestroReceiverClient extends MaestroMqttClient implements MaestroReceiver
| Constructor and Description |
|---|
MaestroReceiverClient(String url,
PeerInfo peerInfo,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
abnormalDisconnect()
Publishes an abnormal disconnect notification message in the broker
|
String |
getId() |
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, subscribe, unsubscribepublic String getId()
public void replyOk(MaestroNote note)
MaestroReceiverreplyOk in interface MaestroReceivernote - the request note to correlate this response topublic void replyInternalError(MaestroNote note, String message, String... args)
MaestroReceiverreplyInternalError in interface MaestroReceivernote - 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)
MaestroReceiverpingResponse in interface MaestroReceivernote - the request note to correlate this response tosec - Epoch secondsuSec - Microseconds within the secondpublic void notifySuccess(String message)
MaestroReceivernotifySuccess in interface MaestroReceivermessage - payload messagepublic void notifyFailure(String message)
MaestroReceivernotifyFailure in interface MaestroReceivermessage - payload messagepublic void abnormalDisconnect()
MaestroReceiverabnormalDisconnect in interface MaestroReceiverpublic 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.