|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.MBeanProxyExt
public class MBeanProxyExt
A factory for producing MBean proxies.
Created proxies will also implement MBeanProxyInstance
allowing access to the proxies configuration.
| Field Summary | |
|---|---|
static MBeanServerConnection |
remote
The remote MBeanServerConnection |
| Constructor Summary | |
|---|---|
MBeanProxyExt()
For externalizable |
|
| Method Summary | |
|---|---|
static Object |
create(Class intf,
ObjectName name)
Create an MBean proxy. |
static Object |
create(Class intf,
ObjectName name,
MBeanServer server)
Create an MBean proxy. |
static Object |
create(Class intf,
ObjectName name,
MBeanServer server,
boolean lazyInit)
Create an MBean proxy. |
static Object |
create(Class intf,
String name)
Create an MBean proxy. |
static Object |
create(Class intf,
String name,
MBeanServer server)
Create an MBean proxy. |
boolean |
equals(Object that)
We need to override this because by default equals returns false when called on the proxy object and then relayed here. |
MBeanServer |
getMBeanProxyMBeanServer()
Return the MBeanServer for this proxy. |
MBeanServerConnection |
getMBeanProxyMBeanServerConnection()
|
ObjectName |
getMBeanProxyObjectName()
Return the ObjectName for this proxy. |
int |
hashCode()
As with equals, use the MBeanServer + ObjectName to calculate the hashCode |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invoke the configured MBean via the target MBeanServer and decode any resulting JMX exceptions that are thrown. |
void |
readExternal(ObjectInput in)
|
String |
toString()
avoid the default printout, e.g. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static MBeanServerConnection remote
| Constructor Detail |
|---|
public MBeanProxyExt()
| Method Detail |
|---|
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowablepublic final ObjectName getMBeanProxyObjectName()
MBeanProxyInstance
getMBeanProxyObjectName in interface MBeanProxyInstancepublic final MBeanServer getMBeanProxyMBeanServer()
MBeanProxyInstance
getMBeanProxyMBeanServer in interface MBeanProxyInstancepublic final MBeanServerConnection getMBeanProxyMBeanServerConnection()
public boolean equals(Object that)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
public static Object create(Class intf,
String name)
throws MalformedObjectNameException
intf - The interface which the proxy will implement.name - A string used to construct the ObjectName of the MBean to
proxy to.
MalformedObjectNameException - Invalid object
name.
public static Object create(Class intf,
String name,
MBeanServer server)
throws MalformedObjectNameException
intf - The interface which the proxy will implement.name - A string used to construct the ObjectName of the MBean to
proxy to.server - The MBeanServer that contains the MBean to proxy to.
MalformedObjectNameException - Invalid object
name.
public static Object create(Class intf,
ObjectName name)
intf - The interface which the proxy will implement.name - The name of the MBean to proxy invocations to.
public static Object create(Class intf,
ObjectName name,
MBeanServer server)
intf - The interface which the proxy will implement.name - The name of the MBean to proxy invocations to.server - The MBeanServer that contains the MBean to proxy to.
public static Object create(Class intf,
ObjectName name,
MBeanServer server,
boolean lazyInit)
intf - The interface which the proxy will implement.name - The name of the MBean to proxy invocations to.server - The MBeanServer that contains the MBean to proxy to.lazyInit - - a flag indicating if the mbean attribute info should
be retrieved when the proxy is created.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||