jgroup.relacs.gmi
Class GroupEndPoint

java.lang.Object
  extended by jgroup.relacs.gmi.GroupEndPoint
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, net.jini.jeri.ObjectEndpoint

public class GroupEndPoint
extends java.lang.Object
implements net.jini.jeri.ObjectEndpoint, java.io.Externalizable

Handles identity of groups. Knows endpoints of the current view and the group leader. Responsible for updating itself when needed.

Author:
Tor Arve Stangeland, Hein Meling
See Also:
Serialized Form

Constructor Summary
GroupEndPoint()
          Constructor for externaliztion.
 
Method Summary
 void addMember(MemberId member)
          Add the given MemberId to the this group endpoint.
 void addMembers(java.util.Iterator<MemberId> iter)
          Add MemberIds to the given set of members.
 java.rmi.RemoteException executeCall(net.jini.jeri.OutboundRequest call)
           
 int getGroupId()
          Returns the group identifier associated with this group endpoint proxy.
 java.util.Iterator<MemberId> getMembers()
          Returns an iterator over the set of MemberIds in this group endpoint.
 int hashCode()
           
 net.jini.jeri.OutboundRequestIterator newCall(net.jini.core.constraint.InvocationConstraints constraints)
           
 net.jini.jeri.OutboundRequestIterator newCall(MethodSemantics semantics)
          Returns an OutboundRequestIterator to use to send remote call to the referenced remote object.
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
           
 void updateClientView(View view)
          Update the client-side side member list according to the given view.
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupEndPoint

public GroupEndPoint()
Constructor for externaliztion.

Method Detail

getGroupId

public int getGroupId()
Returns the group identifier associated with this group endpoint proxy.


addMembers

public void addMembers(java.util.Iterator<MemberId> iter)
Add MemberIds to the given set of members.


addMember

public void addMember(MemberId member)
Add the given MemberId to the this group endpoint.


getMembers

public java.util.Iterator<MemberId> getMembers()
Returns an iterator over the set of MemberIds in this group endpoint.


updateClientView

public void updateClientView(View view)
Update the client-side side member list according to the given view.

This updating is only done on the client-side in response to receiving a new view from the server-side.

Parameters:
view - the new server-side view; null views will be ignored.

newCall

public net.jini.jeri.OutboundRequestIterator newCall(net.jini.core.constraint.InvocationConstraints constraints)
Specified by:
newCall in interface net.jini.jeri.ObjectEndpoint

newCall

public net.jini.jeri.OutboundRequestIterator newCall(MethodSemantics semantics)
Returns an OutboundRequestIterator to use to send remote call to the referenced remote object.


executeCall

public java.rmi.RemoteException executeCall(net.jini.jeri.OutboundRequest call)
                                     throws java.io.IOException
Specified by:
executeCall in interface net.jini.jeri.ObjectEndpoint
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException


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