public class MBeanServer
extends java.lang.Object
Constructor and Description |
---|
MBeanServer(java.lang.String serverId)
Create an MBeanServer that connects to a remote server.
|
Modifier and Type | Method and Description |
---|---|
MBean |
lookup(Env env,
java.lang.String name)
Perform a jmx lookup to retrieve an
MBean object. |
ArrayValue |
query(Env env,
java.lang.String pattern)
Returns an array of
MBean s that match a JMX pattern. |
java.lang.String |
toString() |
public MBeanServer(java.lang.String serverId)
remoteUrl
- a url that connects to a
com.caucho.services.jmx.JMXService
ussing the hessian protocol.public MBean lookup(Env env, java.lang.String name)
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.name
- the name to lookuppublic ArrayValue query(Env env, java.lang.String pattern)
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.public java.lang.String toString()
toString
in class java.lang.Object