|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmx4odp.j4oNet.JsRegistry
public class JsRegistry
Similar in concept to a Registry, this is a repository of MBeans found on the J4ONet Federated JMX
network. It uses the JmxServiceObj as a descriptor for the agents and MBeans in the network. It knows
what the internal data in the JmxServiceObj represents and can garauntee that JmxServiceObj are unique.
This object is used by the J4ONet resolvers to cache discovered services and to provide fast look-up.
Coders usually should have no reason to access this object directly. Instead, they should use the JsRegistryManager.
JmxServiceObj,
JsRegistryManager| Constructor Summary | |
|---|---|
JsRegistry()
Creates new JsRegistry |
|
| Method Summary | |
|---|---|
java.lang.String |
bind(JmxServiceObj jso)
Will bind the jso to the registry. |
boolean |
isBound(JmxServiceObj jso)
Returns true if this object's key is bound in the registry |
boolean |
isBound(java.lang.String key)
Returns true if this key is bound in the registry |
java.lang.String[] |
list()
This will return the list of keys in the registry as an array of Strings. |
JmxServiceObj |
lookup(JmxServiceObj jso)
Given a sparely populated JmxServiceObject, it will generate the key via getKey() and return the JmxService bound for that name. |
JmxServiceObj |
lookup(java.lang.String key)
Given a key as a String, will return the JmxService bound for that name. |
java.lang.String |
rebind(JmxServiceObj jso)
Will bind the jso to the registry. |
void |
unbind(JmxServiceObj jso)
Given a sparsely populated JmxServiceObj, it will generate the key via geyKey() and remove the object from the regsistry. |
void |
unbind(java.lang.String key)
Given a JmxServiceObject key as a string, this will remove the object from the regsistry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsRegistry()
| Method Detail |
|---|
public java.lang.String bind(JmxServiceObj jso)
throws java.lang.Exception
java.rmi.AlreadyBoundException - if this object is already bound
java.lang.Exception
public java.lang.String rebind(JmxServiceObj jso)
throws java.lang.Exception
java.lang.Exception
public JmxServiceObj lookup(JmxServiceObj jso)
throws java.lang.Exception
java.lang.Exceptionpublic JmxServiceObj lookup(java.lang.String key)
public void unbind(JmxServiceObj jso)
throws java.lang.Exception
java.lang.Exceptionpublic void unbind(java.lang.String key)
public boolean isBound(JmxServiceObj jso)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isBound(java.lang.String key)
public java.lang.String[] list()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||