| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmx4odp.j4oNet.MBeanResolver
public abstract class MBeanResolver
Extend this abstract class to create a custom MBeanResolver. It contains the basic functictions
 such as detrming if a request is in range and the basic attributes such as cachable, active, etc.
 
 Specifically, coders need to override the handleMBeanRequest and handleAgentRequest methods. If 
 a resolution request is with in range, and the MBean is active, it will pass the JmxServiceObj
 to one of these methods, depending on the JmxServiceObj.isAgent() method.
| Field Summary | |
|---|---|
protected  javax.management.MBeanServer | 
mbeanServer
 | 
protected  javax.management.ObjectName | 
objectName
 | 
| Constructor Summary | |
|---|---|
MBeanResolver()
 | 
|
| Method Summary | |
|---|---|
 boolean | 
getActive()
 | 
 boolean | 
getCachable()
 | 
 java.lang.String | 
getNameSpace()
 | 
 int | 
getThreshHold()
 | 
protected  JmxServiceObj[] | 
handleAgentRequest(JmxServiceObj jso)
 | 
protected  JmxServiceObj[] | 
handleMBeanRequest(JmxServiceObj jso)
this is what all the children MBeanResolvers should over write.  | 
protected  boolean | 
inNameSpace(JmxServiceObj jso)
if the jso is null, it returns a false.  | 
 void | 
postDeregister()
 | 
 void | 
postRegister(java.lang.Boolean booleanParam)
 | 
 void | 
preDeregister()
 | 
 javax.management.ObjectName | 
preRegister(javax.management.MBeanServer mBeanServer,
            javax.management.ObjectName obj)
 | 
protected  void | 
registered(javax.management.MBeanServer mBeanServer,
           javax.management.ObjectName obj)
This is a preRegistration call out if any special behavior is needed and the developer doesn't want to over write preRegistration  | 
 JmxServiceObj[] | 
resolve(JmxServiceObj jso,
        int low,
        int high)
if the threshHold is not lower than low or higher or than high and the bean is active, and the jso is inNameSpace, then it will call handleRequest, else it returns a null  | 
 void | 
setActive(boolean b)
 | 
 void | 
setCachable(boolean b)
 | 
 void | 
setNameSpace(java.lang.String s)
 | 
 void | 
setThreshHold(int i)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected javax.management.MBeanServer mbeanServer
protected javax.management.ObjectName objectName
| Constructor Detail | 
|---|
public MBeanResolver()
| Method Detail | 
|---|
public JmxServiceObj[] resolve(JmxServiceObj jso,
                               int low,
                               int high)
resolve in interface MBeanResolverMBeanprotected boolean inNameSpace(JmxServiceObj jso)
protected JmxServiceObj[] handleMBeanRequest(JmxServiceObj jso)
protected JmxServiceObj[] handleAgentRequest(JmxServiceObj jso)
protected void registered(javax.management.MBeanServer mBeanServer,
                          javax.management.ObjectName obj)
public java.lang.String getNameSpace()
getNameSpace in interface MBeanResolverMBeanpublic void setNameSpace(java.lang.String s)
setNameSpace in interface MBeanResolverMBeanpublic boolean getActive()
getActive in interface MBeanResolverMBeanpublic void setActive(boolean b)
setActive in interface MBeanResolverMBeanpublic boolean getCachable()
getCachable in interface MBeanResolverMBeanpublic void setCachable(boolean b)
setCachable in interface MBeanResolverMBeanpublic int getThreshHold()
public void setThreshHold(int i)
public void postDeregister()
postDeregister in interface javax.management.MBeanRegistrationpublic void postRegister(java.lang.Boolean booleanParam)
postRegister in interface javax.management.MBeanRegistration
public void preDeregister()
                   throws java.lang.Exception
preDeregister in interface javax.management.MBeanRegistrationjava.lang.Exception
public javax.management.ObjectName preRegister(javax.management.MBeanServer mBeanServer,
                                               javax.management.ObjectName obj)
                                        throws java.lang.Exception
preRegister in interface javax.management.MBeanRegistrationjava.lang.Exception
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||