public abstract class Status extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.joda.time.format.DateTimeFormatter |
DT_PARSER |
protected static com.google.gson.JsonParser |
JSON_PARSER |
| Constructor and Description |
|---|
Status(org.eclipse.paho.client.mqttv3.MqttMessage msg)
This class does not have a default constructor and has a single argument constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction() |
String |
getClientAddr() |
String |
getClientId() |
String |
getConnectTime() |
String |
getPayload() |
int |
getPort() |
String |
getProtocol() |
int |
getReadBytes() |
int |
getReadMsg() |
String |
getReason() |
org.joda.time.DateTime |
getTime() |
String |
getUser() |
int |
getWriteBytes() |
int |
getWriteMsg() |
String |
toString()
Provides a human readable String representation of status, including timestamp, client id, action and (possibly) reason.
|
protected static final com.google.gson.JsonParser JSON_PARSER
protected static final org.joda.time.format.DateTimeFormatter DT_PARSER
public Status(org.eclipse.paho.client.mqttv3.MqttMessage msg)
throws UnsupportedEncodingException
msg - The MQTT messageUnsupportedEncodingException - Failure when the Format is not UTF-8public String getClientAddr()
public String getProtocol()
public String getClientId()
public String getUser()
public String getAction()
public String getConnectTime()
public int getPort()
public org.joda.time.DateTime getTime()
public int getWriteMsg()
public int getReadMsg()
public int getReadBytes()
public int getWriteBytes()
public String getReason()
public String getPayload()
Copyright © 2019. All rights reserved.