com.ibm.wiotp.sdk.app.messages

Class Status

  • Direct Known Subclasses:
    ApplicationStatus, DeviceStatus


    public abstract class Status
    extends Object
    This is an abstract class which is inherited by application status and device status
    • Field Detail

      • JSON_PARSER

        protected static final com.google.gson.JsonParser JSON_PARSER
      • DT_PARSER

        protected static final org.joda.time.format.DateTimeFormatter DT_PARSER
    • Constructor Detail

      • Status

        public Status(org.eclipse.paho.client.mqttv3.MqttMessage msg)
               throws UnsupportedEncodingException
        This class does not have a default constructor and has a single argument constructor
        Parameters:
        msg - The MQTT message
        Throws:
        UnsupportedEncodingException - Failure when the Format is not UTF-8
    • Method Detail

      • getClientAddr

        public String getClientAddr()
      • getProtocol

        public String getProtocol()
      • getClientId

        public String getClientId()
      • getUser

        public String getUser()
      • getAction

        public String getAction()
      • getConnectTime

        public String getConnectTime()
      • getPort

        public int getPort()
      • getTime

        public org.joda.time.DateTime getTime()
      • getWriteMsg

        public int getWriteMsg()
      • getReadMsg

        public int getReadMsg()
      • getReadBytes

        public int getReadBytes()
      • getWriteBytes

        public int getWriteBytes()
      • getReason

        public String getReason()
      • getPayload

        public String getPayload()
      • toString

        public String toString()
        Provides a human readable String representation of status, including timestamp, client id, action and (possibly) reason.
        Overrides:
        toString in class Object

Copyright © 2019. All rights reserved.