QueryEval (Java SE 15 & JDK 15) (original) (raw)
All Implemented Interfaces:
[Serializable](../../../java.base/java/io/Serializable.html "interface in java.io")
public abstract class QueryEval extends Object implements Serializable
Allows a query to be performed in the context of a specific MBean server.
Since:
1.5
See Also:
Constructor Summary
Constructors
Constructor | Description |
---|---|
QueryEval() |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
static MBeanServer | getMBeanServer() | Return the MBean server that was most recently given to thesetMBeanServer method by this thread. |
void | setMBeanServer(MBeanServer s) | Sets the MBean server on which the query is to be performed. |
Methods declared in class java.lang.Object
[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)
Constructor Details
QueryEval
public QueryEval()
Method Details
setMBeanServer
Sets the MBean server on which the query is to be performed. The setting is valid for the thread performing the set. It is copied to any threads created by that thread at the moment of their creation.
For historical reasons, this method is not static, but its behavior does not depend on the instance on which it is called.
Parameters:
s
- The MBean server on which the query is to be performed.
See Also:
getMBeanServer()getMBeanServer
Return the MBean server that was most recently given to thesetMBeanServer method by this thread. If this thread never called that method, the result is the value its parent thread would have obtained from
getMBeanServer
at the moment of the creation of this thread, or null if there is no parent thread.
Returns:
the MBean server.
See Also:
setMBeanServer(javax.management.MBeanServer)