com.caucho.quercus.lib.resin
Class MBeanServer
java.lang.Object
com.caucho.quercus.lib.resin.MBeanServer
public class MBeanServer
- extends java.lang.Object
Constructor Summary |
MBeanServer(java.lang.String serverId)
Create an MBeanServer that connects to a remote server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MBeanServer
public MBeanServer(java.lang.String serverId)
- Create an MBeanServer that connects to a remote server.
- Parameters:
remoteUrl
- a url that connects to a
com.caucho.services.jmx.JMXService
ussing the hessian protocol.
lookup
public MBean lookup(Env env,
java.lang.String name)
- Perform a jmx lookup to retrieve an
MBean
object.
If the optional name is not provided, the mbean for the current web-app
is returned.
An unqualified name does not contain a `:' and is used to find an mbean
in the context of the current web-app.
A fully qualified name contains a `:' and is used to find any mbean within the
server.
- Parameters:
name
- the name to lookup
- Returns:
- the mbean object, or null if it is not found.
query
public ArrayValue query(Env env,
java.lang.String pattern)
- Returns an array of
MBean
s that match a JMX pattern.
If the name contains a ":", it is a query in the global jmx namespace.
If the name does not contain a ":", it is a search in the JMX namespace
of the current web application.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object