lumis.portal.cluster.event
Class ClusterMessageReceivedEvent

Package class diagram package ClusterMessageReceivedEvent
java.lang.Object
  extended by lumis.portal.event.AbstractPortalEvent
      extended by lumis.portal.cluster.event.ClusterMessageReceivedEvent
All Implemented Interfaces:
IPortalEvent

public class ClusterMessageReceivedEvent
extends AbstractPortalEvent

Event raised whenever a cluster message is received. This event is also raised when a message sent by a server is received by itself.

The group of this event is the same as the group defined for the cluster message. If the cluster message does not have a group defined, then this event has no group.

Since:
4.1.0
See Also:
IClusterManager.createClusterMessage(String, java.io.Serializable), IClusterManager.send(IClusterTransmission), lumis.portal.event

Constructor Summary
ClusterMessageReceivedEvent(IClusterMessage message, String receiverId)
           
 
Method Summary
 IClusterMessage getMessage()
          Returns the cluster message received.
 String getReceiverId()
          The identifier of the server that received the message.
 
Methods inherited from class lumis.portal.event.AbstractPortalEvent
getEventGroups, getOperationType, setEventGroups, setOperationType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lumis.portal.event.IPortalEvent
toString
 

Constructor Detail

ClusterMessageReceivedEvent

public ClusterMessageReceivedEvent(IClusterMessage message,
                                   String receiverId)
Method Detail

getMessage

public IClusterMessage getMessage()
Returns the cluster message received.

Returns:
the cluster message received.
Since:
4.1.0

getReceiverId

public String getReceiverId()
The identifier of the server that received the message.

Returns:
identifier of the server that received the message.
Since:
4.1.0


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.