Rice Pastry API

rice.pastry
Interface LocalNodeI

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
LocalNode, NodeHandle

public interface LocalNodeI
extends java.io.Serializable

This interface is for any objects who need to automatically have the PastryNode assigned to it upon reception off of the wire. As of FreePastry 1.4.1, this is now done by the PastryObjectInputStream. The main object that needs this is the NodeHandle. So that NodeHandle.receiveMessage() will work. When using the commonAPI, this is not necessary.

Version:
$Id: LocalNodeI.java,v 1.5 2005/08/12 14:28:34 jeffh Exp $
Author:
Alan Mislove

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.
 

Method Detail

getLocalNode

public PastryNode getLocalNode()
Accessor method.

Returns:
The LocalNode value

setLocalNode

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

Parameters:
pn - The new LocalNode value

assertLocalNode

public 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 API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection