Class CMMqttEvent
java.lang.Object
kr.ac.konkuk.ccslab.cm.entity.CMObject
kr.ac.konkuk.ccslab.cm.event.CMEvent
kr.ac.konkuk.ccslab.cm.event.mqttevent.CMMqttEvent
- Direct Known Subclasses:
CMMqttEventFixedHeader
This class represents CM events that belong to the MQTT control packets.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Event ID of the CMMqttEventCONNACK class.static final int
Event ID of the CMMqttEventCONNECT class.static final int
Event ID of the CMMqttEventDISCONNECT class.static final int
Event ID of the CMMqttEventPINGREQ class.static final int
Event ID of the CMMqttEventPINGRESP class.static final int
Event ID of the CMMqttEventPUBACK class.static final int
Event ID of the CMMqttEventPUBCOMP class.static final int
Event ID of the CMMqttEventPUBLISH class.static final int
Event ID of the CMMqttEventPUBREC class.static final int
Event ID of the CMMqttEventPUBREL class.static final int
Event ID of the CMMqttEventSUBACK class.static final int
Event ID of the CMMqttEventSUBSCRIBE class.static final int
Event ID of the CMMqttEventUNSUBACK class.static final int
Event ID of the CMMqttEventUNSUBSCRIBE class.Fields inherited from class kr.ac.konkuk.ccslab.cm.event.CMEvent
m_bytes, m_nByteNum, m_nID, m_strDistributionGroup, m_strDistributionSession, m_strHandlerGroup, m_strHandlerSession, m_strReceiver, m_strSender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
protected abstract int
int
protected abstract int
protected abstract int
protected void
protected abstract void
protected abstract void
protected abstract void
toString()
returns the string representation of this CMMqttEvent object.protected void
unmarshallBody
(ByteBuffer buf) protected abstract void
protected abstract void
protected abstract void
Methods inherited from class kr.ac.konkuk.ccslab.cm.event.CMEvent
allocate, equals, getDistributionGroup, getDistributionSession, getHandlerGroup, getHandlerSession, getID, getInt2BytesFromByteBuffer, getReceiver, getSender, getStringFromByteBuffer, marshall, marshallHeader, putInt2BytesToByteBuffer, putStringToByteBuffer, setByteNum, setDistributionGroup, setDistributionSession, setHandlerGroup, setHandlerSession, setID, setReceiver, setSender, unmarshall, unmarshallHeader
-
Field Details
-
CONNECT
public static final int CONNECTEvent ID of the CMMqttEventCONNECT class.- See Also:
-
CONNACK
public static final int CONNACKEvent ID of the CMMqttEventCONNACK class.- See Also:
-
PUBLISH
public static final int PUBLISHEvent ID of the CMMqttEventPUBLISH class.- See Also:
-
PUBACK
public static final int PUBACKEvent ID of the CMMqttEventPUBACK class.- See Also:
-
PUBREC
public static final int PUBRECEvent ID of the CMMqttEventPUBREC class.- See Also:
-
PUBREL
public static final int PUBRELEvent ID of the CMMqttEventPUBREL class.- See Also:
-
PUBCOMP
public static final int PUBCOMPEvent ID of the CMMqttEventPUBCOMP class.- See Also:
-
SUBSCRIBE
public static final int SUBSCRIBEEvent ID of the CMMqttEventSUBSCRIBE class.- See Also:
-
SUBACK
public static final int SUBACKEvent ID of the CMMqttEventSUBACK class.- See Also:
-
UNSUBSCRIBE
public static final int UNSUBSCRIBEEvent ID of the CMMqttEventUNSUBSCRIBE class.- See Also:
-
UNSUBACK
public static final int UNSUBACKEvent ID of the CMMqttEventUNSUBACK class.- See Also:
-
PINGREQ
public static final int PINGREQEvent ID of the CMMqttEventPINGREQ class.- See Also:
-
PINGRESP
public static final int PINGRESPEvent ID of the CMMqttEventPINGRESP class.- See Also:
-
DISCONNECT
public static final int DISCONNECTEvent ID of the CMMqttEventDISCONNECT class.- See Also:
-
-
Constructor Details
-
CMMqttEvent
public CMMqttEvent() -
CMMqttEvent
-
-
Method Details
-
getFixedHeaderByteNum
protected abstract int getFixedHeaderByteNum() -
marshallFixedHeader
protected abstract void marshallFixedHeader() -
unmarshallFixedHeader
-
getVarHeaderByteNum
protected abstract int getVarHeaderByteNum() -
marshallVarHeader
protected abstract void marshallVarHeader() -
unmarshallVarHeader
-
getPayloadByteNum
protected abstract int getPayloadByteNum() -
marshallPayload
protected abstract void marshallPayload() -
unmarshallPayload
-
toString
returns the string representation of this CMMqttEvent object. -
getByteNum
protected int getByteNum()- Overrides:
getByteNum
in classCMEvent
-
marshallBody
protected void marshallBody()- Specified by:
marshallBody
in classCMEvent
-
unmarshallBody
- Specified by:
unmarshallBody
in classCMEvent
-
getPacketID
public int getPacketID()
-