Rice Pastry API

rice.pastry
Class LocalNode

java.lang.Object
  |
  +--rice.pastry.LocalNode
All Implemented Interfaces:
LocalNodeI, java.io.Serializable

public abstract class LocalNode
extends java.lang.Object
implements LocalNodeI

Implementation of the LocalNodeI interface that some Serializable classes (such as Certificate) extend, if they want to be kept informed of what node they're on. If a class cannot use this provided implementation (for reasons such as multiple inheritance), it should implement the method provided in the LocalNode interface in the same manner as these.

Version:
$Id: LocalNode.java,v 1.3 2002/08/13 18:09:54 amislove Exp $
Author:
Sitaram Iyer, Alan Mislove
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface rice.pastry.LocalNodeI
pending
 
Constructor Summary
LocalNode()
           
 
Method Summary
 void afterSetLocalNode()
          Method that can be overridden by handle to set isLocal, etc.
 void assertLocalNode()
          May be called from handle etc methods to ensure that local node has been set, either on construction or on deserialization/receivemsg.
 rice.pastry.PastryNode getLocalNode()
          Accessor method.
 void setLocalNode(rice.pastry.PastryNode pn)
          Accessor method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalNode

public LocalNode()
Method Detail

getLocalNode

public final rice.pastry.PastryNode getLocalNode()
Accessor method.

Specified by:
getLocalNode in interface LocalNodeI

setLocalNode

public final void setLocalNode(rice.pastry.PastryNode pn)
Accessor method. Notifies the overridable afterSetLocalNode.

Specified by:
setLocalNode in interface LocalNodeI

afterSetLocalNode

public void afterSetLocalNode()
Method that can be overridden by handle to set isLocal, etc.


assertLocalNode

public final void assertLocalNode()
May be called from handle etc methods to ensure that local node has been set, either on construction or on deserialization/receivemsg.

Specified by:
assertLocalNode in interface LocalNodeI

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection