javax.management
Class QueryEval
java.lang.Object
javax.management.QueryEval
- All Implemented Interfaces:
- Serializable
public class QueryEval
- extends Object
- implements Serializable
Represents the evaluation context of a MBeanServer
query by retaining the server used on a thread-by-thread
basis.
- Since:
- 1.5
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryEval
public QueryEval()
getMBeanServer
public static MBeanServer getMBeanServer()
- Returns the
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.
- Returns:
- the server.
- See Also:
setMBeanServer(MBeanServer)
setMBeanServer
public void setMBeanServer(MBeanServer svr)
- Sets the
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.
- Parameters:
svr
- the server to use.