jgroup.core
Interface MergingListener

All Known Subinterfaces:
DistributionScheme
All Known Implementing Classes:
RegistryImpl, ReplicaManagerImpl

public interface MergingListener

In order to be notified of state merging events, an object must implement this interface. Two methods are declared; the first, getState, is invoked when the member has been selected as coordinator for the reconciliation protocol. As coordinator, the member must prepare a status message containing the information needed by members that needs to be updated with the state maintained by servers in the partition of the coordinator. The method putState is invoked to inform the member about the state of other members belonging to different partitions.

Since:
0.7
Author:
Alberto Montresor

Method Summary
 java.lang.Object getState(MemberId[] dests)
          Method getState is invoked when the member has been selected as coordinator for the reconciliation protocol.
 void putState(java.lang.Object status, MemberId[] sources)
          Method putState is invoked to inform the member about the state of other members belonging to different partitions.
 

Method Detail

getState

java.lang.Object getState(MemberId[] dests)
Method getState is invoked when the member has been selected as coordinator for the reconciliation protocol.

Parameters:
dests - The destination set of the reconciliation message;
Returns:
The reconciliation message

putState

void putState(java.lang.Object status,
              MemberId[] sources)
Method putState is invoked to inform the member about the state of other members belonging to different partitions.

Parameters:
status - The reconciliation message
sources - The state contained in status is already known by members in sources.


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