jgroup
Interface MergingListener
- All Superinterfaces:
- Listener
- public interface MergingListener
- extends Listener
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 need to be updated about
the state maintained by servers in the partition of the coordinator.
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. |
getState
public 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
public 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 messagesources
- the state contained in status
is
already known by members in sources
.