rice.p2p.commonapi
Interface Node

All Known Implementing Classes:
PastryNode

public interface Node


Method Summary
 Id getId()
          Returns the Id of this node
 IdFactory getIdFactory()
          Returns a factory for Ids specific to this node's protocol.
 Endpoint registerApplication(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 Endpoint registerApplication(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 Id getId()
Returns the Id of this node

Returns:
This node's Id

getIdFactory

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

Returns:
A factory for creating Ids.





Imprint-Dataprotection