| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface that some Serializable classes (such as NodeHandle and Certificate) implement, if they want to be kept informed of what node they're on. Think of this as a pattern. One implementation of this is provided (LocalNodeImpl), but if a class cannot use this implementation (for reasons such as multiple inheritance), it should implement LocalNode and provide the methods below. NOTE: All implementations of local nodes should override their readObject() methods in order to add the following lines: in.defaultReadObject(); LocalNode.pending.addPending(in, this) which will schedule the LocalNode to have it's local node to be set to non-null.
| Field Summary | |
static PendingLocalNodesList | 
pending
Refer to README.handles_localnode.  | 
| Method Summary | |
 void | 
assertLocalNode()
May be called from handle etc methods to ensure that local node has been set, either on construction or on deserialization/receivemsg.  | 
 PastryNode | 
getLocalNode()
Accessor method.  | 
 void | 
setLocalNode(PastryNode pn)
Accessor method.  | 
| Field Detail | 
public static final PendingLocalNodesList pending
| Method Detail | 
public PastryNode getLocalNode()
public void setLocalNode(PastryNode pn)
pn - The new LocalNode valuepublic void assertLocalNode()
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||