cs138.node
Interface ManageableNode

All Superinterfaces:
java.rmi.Remote
All Known Subinterfaces:
ChordNode, RemoteChordNode, TapestryNode, TapestryNodePrivate
All Known Implementing Classes:
ChordNodeImpl, TapestryNodeImpl

public interface ManageableNode
extends java.rmi.Remote

This describes any kind of node that will be registered and utilized in the ManagerService and through the GUI logging and visualization services.

Author:
rm

Method Summary
 java.lang.Class<? extends NodeMonitor> getMonitorInterface()
          This returns the Node implementation specific monitor that will be used.
 void initialize(java.lang.String id, ManageableNode node, NodeMonitor monitor)
          Initializes a new node
 void ping()
          This method is used in nodes to determine that they are still up.
 

Method Detail

initialize

void initialize(java.lang.String id,
                ManageableNode node,
                NodeMonitor monitor)
                throws java.rmi.RemoteException
Initializes a new node

Parameters:
id - The identifier of the node
node - A gateway node, may be null
monitor - The default monitor to attach
Throws:
java.rmi.RemoteException

getMonitorInterface

java.lang.Class<? extends NodeMonitor> getMonitorInterface()
                                                           throws java.rmi.RemoteException
This returns the Node implementation specific monitor that will be used.

Returns:
The class object corresponding to the Monitor Interface being used.
Throws:
java.rmi.RemoteException

ping

void ping()
          throws java.rmi.RemoteException
This method is used in nodes to determine that they are still up.

Throws:
java.rmi.RemoteException