jgroup.relacs.mss
Interface MssUser

All Known Implementing Classes:
Daemon

public interface MssUser

The MssUser interface should be implemented by layers using the Mss to receive callback notifications from the Mss itself.

Since:
Jgroup 0.1
Author:
Alberto Montresor

Method Summary
 void localReceive(Event upcall)
          Invoked to notify the objects implementing this interface that a message from a local member has been received.
 void localSuspect(MemberId membId)
          Invoked to notify the objects implementing this interface that a remote object is not responding to remote method invocations, and thus should be crashed.
 void remoteReceive(byte tag, InMessage data, EndPoint host)
          Invoked to notify the objects implementing this interface that a message from a remote member has been received.
 void remoteSuspect(EndPoint[] rset, EndPoint[] nrset, EndPoint[] nuset, EndPoint[] newinc)
          Invoked to notify the objects implementing this interface that a variation in the perceived reachability set has been perceived.
 

Method Detail

remoteReceive

void remoteReceive(byte tag,
                   InMessage data,
                   EndPoint host)
Invoked to notify the objects implementing this interface that a message from a remote member has been received.

Parameters:
tag - the tag identifying the type of message
stream - the message, represented by a InMessage object
src - the sender of the message

localReceive

void localReceive(Event upcall)
Invoked to notify the objects implementing this interface that a message from a local member has been received.

Parameters:
event - represents the received message

remoteSuspect

void remoteSuspect(EndPoint[] rset,
                   EndPoint[] nrset,
                   EndPoint[] nuset,
                   EndPoint[] newinc)
Invoked to notify the objects implementing this interface that a variation in the perceived reachability set has been perceived.

Parameters:
trset - set of all (total) reachables hosts
nrset - set of reachable hosts that were unreachable
nuset - set of unreachable hosts that were reachable
newinc - set of hosts who has a new incarnation identifier

localSuspect

void localSuspect(MemberId membId)
Invoked to notify the objects implementing this interface that a remote object is not responding to remote method invocations, and thus should be crashed.

Parameters:
membId - a callback object identifying the suspected object; this object has been stored in the Mss through the addPingListener method invocation on the Mss.


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