jGCS Documentation

net.sf.jgcs
Interface ControlListener


public interface ControlListener

This class defines a ControlListener. This listener must be used by clients that wish to be notified of changes in the members that join, leave or fail in a simple group.

Version:
1.0
Author:
Nuno Carvalho

Method Summary
 void onFailed(java.net.SocketAddress peer)
          Notification of a member that was detected as failed.
 void onJoin(java.net.SocketAddress peer)
          Notification of a new member in the group.
 void onLeave(java.net.SocketAddress peer)
          Notification of a member that leaved the group.
 

Method Detail

onJoin

void onJoin(java.net.SocketAddress peer)
Notification of a new member in the group.

Parameters:
peer - the address of the new member.

onLeave

void onLeave(java.net.SocketAddress peer)
Notification of a member that leaved the group.

Parameters:
peer - the address of the leaved member.

onFailed

void onFailed(java.net.SocketAddress peer)
Notification of a member that was detected as failed. This notification means also that the member does not belong to the group any more.

Parameters:
peer - the address of the member that failed.

jGCS Documentation

Copyright (c) 2006, Universidade de Lisboa
For updates and related information please see jGCS home page