groupmgmt.impl
Class SPChange

java.lang.Object
  extended bygroupmgmt.impl.SPChange
All Implemented Interfaces:
java.io.Serializable

class SPChange
extends java.lang.Object
implements java.io.Serializable

An SPChange stores information about a change in the group environment of the SinglePhaseDisseminator.

Version:
June 2003
Author:
Tom Elgin
See Also:
SinglePhaseDisseminator, SPConnectionChangesMessage, SPChangeRefusedMessage

Field Summary
private  boolean connected
          Whether or not the members are now connected.
private  Member m1
          The members whose connectivity has changed.
private  Member m2
          The members whose connectivity has changed.
 
Constructor Summary
SPChange(Member m1, Member m2, boolean connected)
          Constructor.
 
Method Summary
 boolean getConnected()
          Accessor to the state of the connection.
 Member getM1()
          Accessor to the first Member.
 Member getM2()
          Accessor to the second Member.
 java.lang.String toString()
          Get a String representation of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m1

private Member m1
The members whose connectivity has changed.


m2

private Member m2
The members whose connectivity has changed.


connected

private boolean connected
Whether or not the members are now connected.

Constructor Detail

SPChange

public SPChange(Member m1,
                Member m2,
                boolean connected)
Constructor. Creates an SPChange with the specified info.

Parameters:
m1 - A Member.
m2 - The Member to which m1 has been (dis)connected.
connected - True if the connection is now alive.
Method Detail

getM1

public Member getM1()
Accessor to the first Member.

Returns:
The first Member.

getM2

public Member getM2()
Accessor to the second Member.

Returns:
The second Member.

getConnected

public boolean getConnected()
Accessor to the state of the connection.

Returns:
True if m1 is now connected to m2, false otherwise.

toString

public java.lang.String toString()
Get a String representation of this class.

Returns:
The first member, the connection state, the second member.