Rice Pastry API

rice.p2p.commonapi
Interface Node

All Known Implementing Classes:
PastryNode

public interface Node

Version:
$Id: Node.java,v 1.7 2003/09/24 02:20:06 amislove Exp $
Author:
Alan Mislove, Peter Druschel

Method Summary
 rice.p2p.commonapi.Id getId()
          Returns the Id of this node
 rice.p2p.commonapi.IdFactory getIdFactory()
          Returns a factory for Ids specific to this node's protocol.
 rice.p2p.commonapi.Endpoint registerApplication(rice.p2p.commonapi.Application application, java.lang.String instance)
          This returns a VirtualizedNode specific to the given application and instance name to the application, which the application can then use in order to send an receive messages.
 

Method Detail

registerApplication

public rice.p2p.commonapi.Endpoint registerApplication(rice.p2p.commonapi.Application application,
                                                       java.lang.String instance)
This returns a VirtualizedNode specific to the given application and instance name to the application, which the application can then use in order to send an receive messages.

Parameters:
application - The Application
instance - An identifier for a given instance
Returns:
The endpoint specific to this applicationk, which can be used for message sending/receiving.

getId

public rice.p2p.commonapi.Id getId()
Returns the Id of this node

Returns:
This node's Id

getIdFactory

public rice.p2p.commonapi.IdFactory getIdFactory()
Returns a factory for Ids specific to this node's protocol.

Returns:
A factory for creating Ids.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection