| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.pastry.standard.StandardLeafSetProtocol
An implementation of a simple leaf set protocol.
| Field Summary | |
protected  boolean | 
failstop
DESCRIBE THE FIELD  | 
protected  LeafSet | 
leafSet
DESCRIBE THE FIELD  | 
protected  NodeHandle | 
localHandle
DESCRIBE THE FIELD  | 
protected  PastryNode | 
localNode
DESCRIBE THE FIELD  | 
protected  RoutingTable | 
routeTable
DESCRIBE THE FIELD  | 
protected  PastrySecurityManager | 
security
DESCRIBE THE FIELD  | 
| Constructor Summary | |
StandardLeafSetProtocol(PastryNode ln,
                        NodeHandle local,
                        PastrySecurityManager sm,
                        LeafSet ls,
                        RoutingTable rt)
Constructor for StandardLeafSetProtocol.  | 
|
| Method Summary | |
protected  void | 
broadcast()
Broadcast the leaf set to all members of the local leaf set.  | 
protected  void | 
broadcast(int type)
Broadcast the leaf set to all members of the local leaf set.  | 
protected  void | 
broadcast(LeafSet ls,
          NodeHandle from)
Broadcast the local leaf set to all members of the given leaf set, plus the node from which the leaf set was received.  | 
protected  boolean | 
checkLeafSet(LeafSet remotels,
             NodeHandle from,
             boolean notifyMissing)
Checks a received leafset advertisement for missing nodes  | 
 Address | 
getAddress()
Gets the address.  | 
 void | 
maintainLeafSet()
Maintain the leaf set.  | 
protected  boolean | 
mergeLeafSet(LeafSet remotels,
             NodeHandle from)
Merge a remote leafset into our own  | 
 void | 
receiveMessage(Message msg)
Receives messages.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected final boolean failstop
protected NodeHandle localHandle
protected PastryNode localNode
protected PastrySecurityManager security
protected LeafSet leafSet
protected RoutingTable routeTable
| Constructor Detail | 
public StandardLeafSetProtocol(PastryNode ln,
                               NodeHandle local,
                               PastrySecurityManager sm,
                               LeafSet ls,
                               RoutingTable rt)
ln - DESCRIBE THE PARAMETERlocal - DESCRIBE THE PARAMETERsm - DESCRIBE THE PARAMETERls - DESCRIBE THE PARAMETERrt - DESCRIBE THE PARAMETER| Method Detail | 
public Address getAddress()
public void receiveMessage(Message msg)
receiveMessage in interface MessageReceivermsg - the message.
protected boolean checkLeafSet(LeafSet remotels,
                               NodeHandle from,
                               boolean notifyMissing)
remotels - the remote leafsetfrom - the node from which we received the leafsetnotifyMissing - if true, notify missing nodes
protected boolean mergeLeafSet(LeafSet remotels,
                               NodeHandle from)
remotels - the remote leafsetfrom - the node from which we received the leafset
protected void broadcast()
protected void broadcast(int type)
type - the type of broadcast message used
protected void broadcast(LeafSet ls,
                         NodeHandle from)
ls - the leafset whose members we send to local leaf setfrom - the node from which ls was receivedpublic void maintainLeafSet()
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||