| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmx4odp.j4oNet.JmxServiceObj
public class JmxServiceObj
This is an object that represents a JMX accesable service: MBean or Agent This data container holds all the data needed to locate a JMX server or any of it's MBean services. All the data is stored in a Hashtable, using keys suffixed with "_jso" Additional data can be stored via the generic put and get methods, but it should use a different suffix for name space. The basic information for a MBean is server address:rmi port:ObjectName with the attributes of NetworkDomain, NameSpace, and Class. This is the data the the Resolvers will use match and route request.
| Constructor Summary | |
|---|---|
JmxServiceObj()
Creates new JmxServiceObj  | 
|
| Method Summary | |
|---|---|
 java.lang.Object | 
clone()
 | 
 boolean | 
containsKey(java.lang.String key)
 | 
 void | 
fromDataString(java.lang.String data)
Will configure this JSO from a data string  | 
 java.lang.Object | 
get(java.lang.String key)
 | 
 java.util.Hashtable | 
getAttributes()
get the entire attribute set as a hashtable  | 
 java.lang.String | 
getClassName()
 | 
 java.lang.Object | 
getDirectReference()
 | 
 java.net.InetAddress | 
getInetAddress(java.lang.String key)
return an attribute cast as an InetAddress  | 
 int | 
getInt(java.lang.String key)
return an attribute cast as an int, return -1 if there is an error or no such attribute  | 
 javax.management.MBeanServer | 
getMBeanServer()
 | 
 java.net.InetAddress | 
getMultiCastGroup()
 | 
 int | 
getMultiCastListenPort()
 | 
 java.lang.String | 
getNameSpace()
 | 
 java.lang.String | 
getNetworkDomain()
 | 
 javax.management.ObjectInstance | 
getObjectInstance()
 | 
 javax.management.ObjectName | 
getObjectName()
 | 
 int | 
getRating()
The rating of this JSO agent  | 
 java.lang.String | 
getRemoteAdaptorAddress()
 | 
 int | 
getRemoteAdaptorPort()
 | 
 java.lang.String | 
getRemoteAdaptorProtocol()
 | 
 java.lang.String | 
getRemoteAdaptorUrl()
If the JSO is a remote service, this url should point to its agent If this has been explicitly set, it will return the explictly set one.  | 
 java.lang.String | 
getString(java.lang.String key)
return an attribute cast as an String  | 
 int | 
getType()
The code for this type of JSO agent  | 
 boolean | 
isAgent()
returns true if ObjectName and ClassName are null, meaning that this is an agentID and not an MBeanID  | 
 void | 
put(java.lang.String key,
    java.lang.Object obj)
Put an attribute with this key If the attribute is null, then make sure to remove it from the hashmap  | 
 java.lang.Object | 
remove(java.lang.String key)
removes the keyed object from the attributes  | 
 void | 
setAttributes(java.util.Hashtable ht)
set the entire attribute set as a hashtable.  | 
 void | 
setClassName(java.lang.String className)
The class name of the object that serves this JSO  | 
 void | 
setDirectReference(java.lang.Object obj)
Some objects may set a JSO with a direct refence to it's object.  | 
 void | 
setMBeanServer(javax.management.MBeanServer mbs)
A reference to the MBeanServer that serves this JSO  | 
 void | 
setMultiCastGroup(java.net.InetAddress ia)
Set the Multicast group address of this JSO service  | 
 void | 
setMultiCastGroup(java.lang.String s)
 | 
 void | 
setMultiCastListenPort(int i)
Set the Multicast group port of this JSO service  | 
 void | 
setNameSpace(java.lang.String s)
This is the name space that the MBeanServer lives in.  | 
 void | 
setNetworkDomain(java.lang.String s)
This defines a single network unit that should be all able to talk to each other over the multicast group.  | 
 void | 
setObjectInstance(javax.management.ObjectInstance oi)
When setting this value, it will over write and ObjectName that has already been set with the one in the ObjectInstance  | 
 void | 
setObjectName(javax.management.ObjectName on)
The Object Name of the MBean serving this JSO  | 
 void | 
setRating(int i)
 | 
 void | 
setRemoteAdaptorAddress(java.lang.String s)
Set the JMX service address for this JSO  | 
 void | 
setRemoteAdaptorPort(int i)
Set the JMX service port for this JSO  | 
 void | 
setRemoteAdaptorProtocol(java.lang.String s)
Set the JMX service protocol for this JSO  | 
 void | 
setRemoteAdaptorUrl(java.lang.String url)
If the JSO is a remote service, this url should point to its agent If this has been explicitly set, it will return the explictly set one.  | 
 void | 
setType(int i)
 | 
 java.lang.String | 
toDataString()
 | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public JmxServiceObj()
| Method Detail | 
|---|
public void setDirectReference(java.lang.Object obj)
public java.lang.Object getDirectReference()
public java.util.Hashtable getAttributes()
public void setAttributes(java.util.Hashtable ht)
public boolean isAgent()
public void setRemoteAdaptorUrl(java.lang.String url)
public java.lang.String getRemoteAdaptorUrl()
public void setRemoteAdaptorProtocol(java.lang.String s)
public java.lang.String getRemoteAdaptorProtocol()
public void setRemoteAdaptorAddress(java.lang.String s)
public java.lang.String getRemoteAdaptorAddress()
public void setRemoteAdaptorPort(int i)
public int getRemoteAdaptorPort()
public void setObjectName(javax.management.ObjectName on)
public javax.management.ObjectName getObjectName()
public void setMBeanServer(javax.management.MBeanServer mbs)
public javax.management.MBeanServer getMBeanServer()
public void setNameSpace(java.lang.String s)
public java.lang.String getNameSpace()
public void setNetworkDomain(java.lang.String s)
public java.lang.String getNetworkDomain()
public void setClassName(java.lang.String className)
public java.lang.String getClassName()
public void setMultiCastGroup(java.net.InetAddress ia)
public void setMultiCastGroup(java.lang.String s)
                       throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic java.net.InetAddress getMultiCastGroup()
public void setMultiCastListenPort(int i)
public int getMultiCastListenPort()
public void setObjectInstance(javax.management.ObjectInstance oi)
public javax.management.ObjectInstance getObjectInstance()
public int getType()
public void setType(int i)
public int getRating()
public void setRating(int i)
public int getInt(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public java.net.InetAddress getInetAddress(java.lang.String key)
public void put(java.lang.String key,
                java.lang.Object obj)
public java.lang.Object get(java.lang.String key)
public boolean containsKey(java.lang.String key)
public java.lang.Object remove(java.lang.String key)
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toDataString()
public void fromDataString(java.lang.String data)
                    throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||