Package kr.ac.konkuk.ccslab.cm.event
Class CMDummyEvent
java.lang.Object
kr.ac.konkuk.ccslab.cm.entity.CMObject
kr.ac.konkuk.ccslab.cm.event.CMEvent
kr.ac.konkuk.ccslab.cm.event.CMDummyEvent
The CMDummyEvent represents a simple event that has a string message.
A CM application can generate an instance of this class to simply send and receive a string message.
-
Field Summary
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
ConstructorsConstructorDescriptionCreates a new instance of the CMDummyEvent class.CMDummyEvent
(ByteBuffer msg) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Returns the string message in this event.protected void
void
setDummyInfo
(String info) Sets a string message to this event.protected void
unmarshallBody
(ByteBuffer msg) 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, toString, unmarshall, unmarshallHeader
-
Constructor Details
-
CMDummyEvent
public CMDummyEvent()Creates a new instance of the CMDummyEvent class. -
CMDummyEvent
-
-
Method Details
-
setDummyInfo
Sets a string message to this event.- Parameters:
info
- - the string message
-
getDummyInfo
Returns the string message in this event.- Returns:
- the string message.
-
getByteNum
protected int getByteNum()- Overrides:
getByteNum
in classCMEvent
-
marshallBody
protected void marshallBody()- Specified by:
marshallBody
in classCMEvent
-
unmarshallBody
- Specified by:
unmarshallBody
in classCMEvent
-