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 intEvent ID of the CMMqttEventCONNACK class.static final intEvent ID of the CMMqttEventCONNECT class.static final intEvent ID of the CMMqttEventDISCONNECT class.static final intEvent ID of the CMMqttEventPINGREQ class.static final intEvent ID of the CMMqttEventPINGRESP class.static final intEvent ID of the CMMqttEventPUBACK class.static final intEvent ID of the CMMqttEventPUBCOMP class.static final intEvent ID of the CMMqttEventPUBLISH class.static final intEvent ID of the CMMqttEventPUBREC class.static final intEvent ID of the CMMqttEventPUBREL class.static final intEvent ID of the CMMqttEventSUBACK class.static final intEvent ID of the CMMqttEventSUBSCRIBE class.static final intEvent ID of the CMMqttEventUNSUBACK class.static final intEvent 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 intprotected abstract intintprotected abstract intprotected abstract intprotected voidprotected abstract voidprotected abstract voidprotected abstract voidtoString()returns the string representation of this CMMqttEvent object.protected voidunmarshallBody(ByteBuffer buf) protected abstract voidprotected abstract voidprotected abstract voidMethods 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:
getByteNumin classCMEvent
-
marshallBody
protected void marshallBody()- Specified by:
marshallBodyin classCMEvent
-
unmarshallBody
- Specified by:
unmarshallBodyin classCMEvent
-
getPacketID
public int getPacketID()
-