p2pMapReduce.nodeModule.event
Class MessageEvent
java.lang.Object
p2pMapReduce.nodeModule.event.MessageEvent
- All Implemented Interfaces:
- java.io.Serializable, EventIF
public class MessageEvent
- extends java.lang.Object
- implements EventIF, java.io.Serializable
A serializable implementation of the Event interface.
This event can also be sent to remote nodes across a network, so
it's required that all parameters are serializable object.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MessageEvent
public MessageEvent(EventType type)
MessageEvent
public MessageEvent(EventType type,
java.io.Serializable... params)
getParam
public java.lang.Object getParam(int index)
- Specified by:
getParam
in interface EventIF
getParams
public java.io.Serializable[] getParams()
- Specified by:
getParams
in interface EventIF
setParams
public void setParams(java.lang.Object... params)
- Specified by:
setParams
in interface EventIF
getType
public EventType getType()
- Specified by:
getType
in interface EventIF
setType
public void setType(EventType type)
- Specified by:
setType
in interface EventIF
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object