|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jmx4odp.j4oNet.ProxyInvocationHandler
public class ProxyInvocationHandler
This handles calls from the dynamically generated proxy class created by org.jmx4odp.j4oNet.ProxyManager
ProxyManager,
Serialized Form| Constructor Summary | |
|---|---|
ProxyInvocationHandler(JmxServiceObj jso)
Creates new ProxyInvocationHandler If the JmxServiceObj contains a non-null MBeanServer, it will be set as the proxy's MBeanServer. |
|
ProxyInvocationHandler(JmxServiceObj jso,
MBeanServerInt mbs)
Creates new ProxyInvocationHandler It set's the proxy MBeanServerInt to the one passed in. |
|
| Method Summary | |
|---|---|
void |
connect()
Use the JSO to rebuild the MBeanServerInt and get a new connection |
JmxServiceObj |
createNewInstance(java.lang.String name)
create a new instance of the MBean described in the JmxServiceObj.getClassName() on the proxied agent. |
void |
disconnect()
If the remote connection to the agent represented by the JmxServiceObj is not null, then close the current one. |
protected void |
finalize()
|
JmxServiceObj |
getJmxServiveObj()
|
MBeanServerInt |
getMBeanServerInt()
|
javax.management.ObjectInstance |
getObjectInstance()
If there is an ObjectInstance in the JmxServiceObj, it will return this, else it will try to aquire an ObjectInstance from the MBeanServerInt via the jmxServiceObj.getObjectName(), else it will return a null |
java.lang.Object |
invoke(java.lang.Object proxyObj,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
void |
setJmxServiceObj(JmxServiceObj jso)
Sets the JmxServiceObject to this new one. |
void |
setMBeanServerInt(MBeanServerInt mbsi)
Over writes the current MBeanServerInt with the new one. |
void |
unregisterMBean()
unregister the instance of the MBean described in the JmxServiceObj.getObjectName() on the proxied agent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyInvocationHandler(JmxServiceObj jso)
throws java.lang.Exception
java.lang.Exception
public ProxyInvocationHandler(JmxServiceObj jso,
MBeanServerInt mbs)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void setMBeanServerInt(MBeanServerInt mbsi)
public MBeanServerInt getMBeanServerInt()
public void setJmxServiceObj(JmxServiceObj jso)
throws java.lang.Exception
java.lang.Exceptionpublic JmxServiceObj getJmxServiveObj()
public void disconnect()
public void connect()
throws java.lang.Exception
java.lang.Exception
public JmxServiceObj createNewInstance(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
public void unregisterMBean()
throws java.lang.Exception
java.lang.Exception
public javax.management.ObjectInstance getObjectInstance()
throws java.lang.Exception
java.lang.Exception
public java.lang.Object invoke(java.lang.Object proxyObj,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||