jgroup.core.arm
Interface ARMEvent

All Superinterfaces:
java.io.Externalizable, java.io.Serializable
All Known Implementing Classes:
ReplicaFailureEvent, ReplicaPingEvent

public interface ARMEvent
extends java.io.Externalizable

Event types implementing the ARMEvent interface may be passed to the replication manager to notify it of certain events. The event itself must provide the handle() method, enabling the replication manager to invoke the event handler. That is, events provide self-handling.

Note that events must also implement the Externalizable interface.

Since:
Jgroup 1.2
Author:
Hein Meling
See Also:
EDPresentEvent, ViewChangeEvent, ReplicaPingEvent

Method Summary
 int getGroupId()
          Returns the groupd identifier associated with this event.
 java.lang.Object getObject()
          Retreive an object associated with this event.
 void handle(DistributionScheme distScheme)
          This method must implement the actual handling of the event, as recevied by the replication manager.
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

handle

void handle(DistributionScheme distScheme)
            throws java.lang.Exception
This method must implement the actual handling of the event, as recevied by the replication manager.

Parameters:
distScheme - access point to the replication manager for external events
Throws:
java.lang.Exception

getGroupId

int getGroupId()
Returns the groupd identifier associated with this event. If the event is not associated with any group, it should return -1.


getObject

java.lang.Object getObject()
Retreive an object associated with this event. This method may return null if the event internals need not or should not be exposed externally.



Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.