javax.management

Class QueryEval

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

Method Summary
static MBeanServergetMBeanServer()
Returns the MBeanServer last supplied to the setMBeanServer method.
voidsetMBeanServer(MBeanServer svr)
Sets the MBeanServer on which the query will be performed.

Method Detail

getMBeanServer

public static MBeanServer getMBeanServer()
Returns the MBeanServer last supplied to the setMBeanServer 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

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.