public class QueryEval extends Object implements Serializable
MBeanServer
query by retaining the server used on a thread-by-thread
basis.Constructor and Description |
---|
QueryEval() |
Modifier and Type | Method and Description |
---|---|
static MBeanServer |
getMBeanServer()
Returns the
MBeanServer last supplied to the
setMBeanServer(MBeanServer) method. |
void |
setMBeanServer(MBeanServer svr)
Sets the
MBeanServer on which the query will be
performed. |
public QueryEval()
public static MBeanServer getMBeanServer()
MBeanServer
last supplied to the
setMBeanServer(MBeanServer)
method. If this method
has not been called for this thread, then the value will be
inherited from any parent thread on which the method has
been called. If the method has never been called, then
null
is returned.setMBeanServer(MBeanServer)
public void setMBeanServer(MBeanServer svr)
MBeanServer
on which the query will be
performed. This value is inherited automatically by
child threads. This method is only non-static for historical
reasons; it makes no use of instance-related values.svr
- the server to use.