|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagerService
The ManagerService provides utilities for getting all the registered nodes and information associated with the node state.
| Nested Class Summary | |
|---|---|
static interface |
ManagerService.ManagerListener
|
| Method Summary | ||
|---|---|---|
void |
addManagerListener(ManagerService.ManagerListener lis)
Adds a listener for the manager which fires on certain events |
|
java.util.List<java.lang.String> |
allGroups(java.lang.Class<?> type)
Returns the list of all groups that are registered with the manager for the specified type of node. |
|
java.util.List<java.lang.String> |
allGroups(java.lang.String type)
Returns the list of all groups that are registered with the manager for the specified type of node. |
|
|
allIDs(java.lang.Class<T> type,
java.lang.String group)
Returns a list of all the ids of the nodes of a specific type in a specific group. |
|
|
allIDs(java.lang.String type,
java.lang.String group)
Returns a list of all the ids of the nodes of a specific type in a specific group. |
|
|
allNodes(java.lang.Class<T> type)
Returns a list of all NodeManager wrappers for all the nodes based upon the specified class type. |
|
|
allNodes(java.lang.Class<T> type,
java.lang.String group)
Returns the list of all the NodeManager wrappers for all the nodes in a specific group of a specific type. |
|
|
allNodes(java.lang.String type)
Returns a list of all NodeManager wrappers for all the nodes based upon the specified class type. |
|
|
allNodes(java.lang.String type,
java.lang.String group)
Returns the list of all the NodeManager wrappers for all the nodes in a specific group of a specific type. |
|
java.util.List<java.lang.String> |
allTypes()
Provides a list of all the different types of nodes that are registered with the manager. |
|
void |
clear()
Clears the current set of registered nodes and groups. |
|
java.lang.String |
getClient(java.lang.String id,
java.lang.Class<?> type)
Returns the ip address of the host that is running the node specified by id and type |
|
java.lang.String |
getClient(java.lang.String id,
java.lang.String type)
Returns the ip address of the host that is running the node specified by id and type |
|
java.lang.String |
getGroup(java.lang.String id,
java.lang.Class<?> type)
Return the group that the node is in if the String exists. |
|
NodeMonitor |
getProxyMonitor(java.lang.Class<? extends NodeMonitor> interType,
java.lang.Class<? extends ManageableNode> type)
Obtains the node specific monitor interface for the specified node type. |
|
|
lookupNode(java.lang.String id,
java.lang.Class<T> type)
Provides a facility for looking up and obtaining references to nodes. |
|
|
lookupNode(java.lang.String id,
java.lang.String type)
Provides a facility for looking up and obtaining references to nodes. |
|
void |
ping()
Pings all nodes to check and see if they are currently reachable. |
|
|
randomNode(java.lang.Class<T> type)
Provides a mechanism for getting an arbitrary node of a specific type. |
|
|
randomNode(java.lang.Class<T> type,
java.lang.String group)
Provides a mechanism for getting an arbitrary node of a specific type. |
|
|
register(NodeManager<T> node,
java.lang.Class<T> type)
Registers a new node with the system and assigns the nodes identifier. |
|
|
register(NodeManager<T> node,
java.lang.Class<T> type,
java.lang.String group)
Registers a new node with the system and assigns the nodes identifier. |
|
|
registerMonitor(NodeMonitor monitor,
java.lang.Class<T> type)
Registers a monitor for the specific type of node to receive callbacks. |
|
boolean |
removeManagerListener(ManagerService.ManagerListener lis)
Removes a ManagerListener from the set that is registered |
|
|
unregister(java.lang.String id,
java.lang.Class<T> type)
Unregisters the specified node if it has been registered. |
|
|
unregister(java.lang.String id,
java.lang.String type)
|
|
|
unregisterMonitor(NodeMonitor monitor,
java.lang.Class<T> type)
Registers a monitor for the specific type of node to receive callbacks. |
|
| Method Detail |
|---|
<T extends ManageableNode> NodeManager<T> lookupNode(java.lang.String id,
java.lang.Class<T> type)
throws java.rmi.RemoteException
T - The type of node you are looking forid - The identifier for the nodetype - The class type of the node
java.rmi.RemoteException
<T extends ManageableNode> NodeManager<T> lookupNode(java.lang.String id,
java.lang.String type)
throws java.rmi.RemoteException
T - The type of node you are looking forid - The identifier for the nodetype - The String representation of the fully qualified path.
java.rmi.RemoteException
<T extends ManageableNode> NodeManager<T> randomNode(java.lang.Class<T> type)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The class corresponding to the type of node you want
java.rmi.RemoteException
<T extends ManageableNode> NodeManager<T> randomNode(java.lang.Class<T> type,
java.lang.String group)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The class corresponding to the type of node you wantgroup - The group you want a node from
java.rmi.RemoteException
java.util.List<java.lang.String> allTypes()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.List<java.lang.String> allGroups(java.lang.Class<?> type)
throws java.rmi.RemoteException
type - The class type of node we are looking for groups based upon
java.rmi.RemoteException
java.util.List<java.lang.String> allGroups(java.lang.String type)
throws java.rmi.RemoteException
type - The full package name of the type that we want
java.rmi.RemoteException
<T extends ManageableNode> java.util.List<NodeManager<T>> allNodes(java.lang.Class<T> type)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The class object for the specified node
java.rmi.RemoteException
<T extends ManageableNode> java.util.List<NodeManager<T>> allNodes(java.lang.String type)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The string fully qualified package name
java.rmi.RemoteException
<T extends ManageableNode> java.util.List<NodeManager<T>> allNodes(java.lang.Class<T> type,
java.lang.String group)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The class object for the specified nodegroup - The group that you are looking for
java.rmi.RemoteException
<T extends ManageableNode> java.util.List<NodeManager<T>> allNodes(java.lang.String type,
java.lang.String group)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The class object for the specified nodegroup - The group that you are looking for
java.rmi.RemoteException
<T extends ManageableNode> java.util.List<java.lang.String> allIDs(java.lang.Class<T> type,
java.lang.String group)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The class object for the specified nodegroup - The group we want nodes from
java.rmi.RemoteException
<T extends ManageableNode> java.util.List<java.lang.String> allIDs(java.lang.String type,
java.lang.String group)
throws java.rmi.RemoteException
T - The type of node you are looking fortype - The fully qualified package name of the classgroup - The group we want nodes from
java.rmi.RemoteException
<T extends ManageableNode> java.lang.String register(NodeManager<T> node,
java.lang.Class<T> type)
throws java.rmi.RemoteException
T - The type of node you are registeringnode - The NodeManager wrapper around a node that we care about
using.type - The type of the node object that we are using
java.rmi.RemoteException
<T extends ManageableNode> java.lang.String register(NodeManager<T> node,
java.lang.Class<T> type,
java.lang.String group)
throws java.rmi.RemoteException
T - The type of node you are registeringnode - The NodeManager wrapper around a node that we care about
using.type - The type of the node object that we are usinggroup - The group to register the node in
java.rmi.RemoteException
<T extends ManageableNode> boolean unregister(java.lang.String id,
java.lang.Class<T> type)
throws java.rmi.RemoteException
T - The type of node we are going to unregisterid - The identifier of the nodetype - The class object of the node we are unregistering
java.rmi.RemoteException
<T extends ManageableNode> boolean unregister(java.lang.String id,
java.lang.String type)
throws java.rmi.RemoteException
java.rmi.RemoteException
<T extends ManageableNode> void registerMonitor(NodeMonitor monitor,
java.lang.Class<T> type)
throws java.rmi.RemoteException
T - The type of node that we are registering formonitor - The monitor that we are registeringtype - The class object we are registering with
java.rmi.RemoteException
<T extends ManageableNode> boolean unregisterMonitor(NodeMonitor monitor,
java.lang.Class<T> type)
throws java.rmi.RemoteException
T - The type of node that we are registering formonitor - The monitor that we are registeringtype - The class object we are registering with
java.rmi.RemoteException
java.lang.String getGroup(java.lang.String id,
java.lang.Class<?> type)
throws java.rmi.RemoteException
id - The id of the node in questiontype - The class object of the node we are working with
java.rmi.RemoteException
java.lang.String getClient(java.lang.String id,
java.lang.Class<?> type)
throws java.rmi.RemoteException
id - The identifier for the node in question.type - The class object of the node we are interested in
java.rmi.RemoteException
java.lang.String getClient(java.lang.String id,
java.lang.String type)
throws java.rmi.RemoteException
id - The identifier for the node in question.type - The fully qualified package name of the type
java.rmi.RemoteException
void addManagerListener(ManagerService.ManagerListener lis)
throws java.rmi.RemoteException
lis - The listener to add
java.rmi.RemoteException
boolean removeManagerListener(ManagerService.ManagerListener lis)
throws java.rmi.RemoteException
lis - The ManagerListener to remove
java.rmi.RemoteException
void clear()
throws java.rmi.RemoteException
java.rmi.RemoteException
void ping()
throws java.rmi.RemoteException
java.rmi.RemoteException
NodeMonitor getProxyMonitor(java.lang.Class<? extends NodeMonitor> interType,
java.lang.Class<? extends ManageableNode> type)
throws java.rmi.RemoteException
interType - The class object of the node interface that we want to extendtype - The type of node that we are interacting it.
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||