public class Jmx
extends java.lang.Object
Constructor and Description |
---|
Jmx() |
Modifier and Type | Method and Description |
---|---|
static java.util.LinkedHashMap<java.lang.String,java.lang.String> |
copyContextProperties()
Returns a copy of the context properties.
|
static java.util.LinkedHashMap<java.lang.String,java.lang.String> |
copyContextProperties(java.lang.ClassLoader loader)
Returns a copy of the context properties.
|
static void |
dequeue(java.util.TimerTask job)
Dequeues a task.
|
static java.lang.Object |
find(javax.management.ObjectName name)
Returns the local manged object.
|
static java.lang.Object |
find(javax.management.ObjectName name,
java.lang.ClassLoader loader)
Returns the local manged object.
|
static java.lang.Object |
find(javax.management.ObjectName name,
java.lang.ClassLoader loader,
javax.management.MBeanServer mbeanServer)
Returns the local manged object.
|
static java.lang.Object |
find(java.lang.String localName)
Returns the local manged object.
|
static java.lang.Object |
findGlobal(javax.management.ObjectName name)
Returns the local manged object.
|
static java.lang.Object |
findGlobal(java.lang.String localName)
Returns the local manged object.
|
static javax.management.MBeanServer |
getContextMBeanServer()
Returns the context mbean server.
|
static javax.management.MBeanServer |
getGlobalMBeanServer()
Returns the global mbean server.
|
static AbstractMBeanServer |
getMBeanServer()
Gets the static mbean server.
|
static javax.management.ObjectName |
getObjectName(java.lang.String name)
Returns an ObjectName based on a short name.
|
static javax.management.ObjectName |
getObjectName(java.lang.String domain,
java.util.Map<java.lang.String,java.lang.String> properties)
Creates the clean name
|
static void |
parseProperties(java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String name)
Parses a name.
|
static java.util.LinkedHashMap<java.lang.String,java.lang.String> |
parseProperties(java.lang.String name)
Parses a name.
|
static java.util.ArrayList<java.lang.Object> |
query(javax.management.ObjectName namePattern)
Returns the local manged object.
|
static void |
queueAbsolute(java.util.TimerTask job,
long time)
Queues a task.
|
static void |
queueRelative(java.util.TimerTask job,
long delta)
Queues a task.
|
static javax.management.ObjectInstance |
register(java.lang.Object object,
java.util.Map<java.lang.String,java.lang.String> properties)
Conditionally registers an MBean with the server.
|
static javax.management.ObjectInstance |
register(java.lang.Object object,
javax.management.ObjectName name)
Registers an MBean with the server.
|
static javax.management.ObjectInstance |
register(java.lang.Object object,
javax.management.ObjectName name,
java.lang.Class api)
Registers an MBean with the server.
|
static javax.management.ObjectInstance |
register(java.lang.Object object,
javax.management.ObjectName name,
java.lang.ClassLoader loader)
Registers an MBean with the server.
|
static javax.management.ObjectInstance |
register(java.lang.Object object,
java.lang.String name)
Conditionally registers an MBean with the server.
|
static javax.management.ObjectInstance |
register(java.lang.Object object,
java.lang.String name,
java.lang.Class api)
Registers an MBean with the server.
|
static javax.management.ObjectInstance |
registerContext(java.lang.Object object,
java.lang.String name)
Conditionally registers an MBean with the server.
|
static void |
setContextProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Sets the context properties.
|
static void |
setContextProperties(java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.ClassLoader loader)
Sets the context properties.
|
static void |
unregister(javax.management.ObjectName name)
Unregisters an MBean with the server.
|
static void |
unregister(javax.management.ObjectName name,
java.lang.ClassLoader loader)
Unregisters an MBean with the server.
|
static void |
unregister(java.lang.String name)
Conditionally registers an MBean with the server.
|
public static javax.management.MBeanServer getContextMBeanServer()
public static javax.management.MBeanServer getGlobalMBeanServer()
public static AbstractMBeanServer getMBeanServer()
public static java.util.LinkedHashMap<java.lang.String,java.lang.String> copyContextProperties()
public static java.util.LinkedHashMap<java.lang.String,java.lang.String> copyContextProperties(java.lang.ClassLoader loader)
public static void setContextProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public static void setContextProperties(java.util.Map<java.lang.String,java.lang.String> properties, java.lang.ClassLoader loader)
public static javax.management.ObjectInstance register(java.lang.Object object, java.lang.String name) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException, javax.management.NotCompliantMBeanException
object
- the object to be registered as an MBeanname
- the name of the mbean.javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameException
javax.management.NotCompliantMBeanException
public static javax.management.ObjectInstance registerContext(java.lang.Object object, java.lang.String name) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException, javax.management.NotCompliantMBeanException
object
- the object to be registered as an MBeanname
- the name of the mbean.javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameException
javax.management.NotCompliantMBeanException
public static javax.management.ObjectInstance register(java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> properties) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException, javax.management.NotCompliantMBeanException
object
- the object to be registered as an MBeanname
- the name of the mbean.javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameException
javax.management.NotCompliantMBeanException
public static javax.management.ObjectInstance register(java.lang.Object object, javax.management.ObjectName name) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException
object
- the object to be registered as an MBeanname
- the name of the mbean.javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
public static javax.management.ObjectInstance register(java.lang.Object object, javax.management.ObjectName name, java.lang.ClassLoader loader) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.NotCompliantMBeanException
object
- the object to be registered as an MBeanname
- the name of the mbean.javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
public static void unregister(javax.management.ObjectName name) throws javax.management.MBeanRegistrationException, javax.management.InstanceNotFoundException
name
- the name of the mbean.javax.management.MBeanRegistrationException
javax.management.InstanceNotFoundException
public static void unregister(javax.management.ObjectName name, java.lang.ClassLoader loader) throws javax.management.MBeanRegistrationException, javax.management.InstanceNotFoundException
name
- the name of the mbean.javax.management.MBeanRegistrationException
javax.management.InstanceNotFoundException
public static javax.management.ObjectInstance register(java.lang.Object object, java.lang.String name, java.lang.Class api) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException, javax.management.NotCompliantMBeanException
object
- the object to be registered as an MBeanname
- the name of the mbean.api
- the api for the serverjavax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameException
javax.management.NotCompliantMBeanException
public static javax.management.ObjectInstance register(java.lang.Object object, javax.management.ObjectName name, java.lang.Class api) throws javax.management.InstanceAlreadyExistsException, javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException, javax.management.NotCompliantMBeanException
object
- the object to be registered as an MBeanname
- the name of the mbean.api
- the api for the serverjavax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameException
javax.management.NotCompliantMBeanException
public static void unregister(java.lang.String name) throws javax.management.InstanceNotFoundException, javax.management.MalformedObjectNameException, javax.management.MBeanRegistrationException
object
- the object to be registered as an MBeanname
- the name of the mbean.javax.management.InstanceNotFoundException
javax.management.MalformedObjectNameException
javax.management.MBeanRegistrationException
public static javax.management.ObjectName getObjectName(java.lang.String name) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public static java.util.LinkedHashMap<java.lang.String,java.lang.String> parseProperties(java.lang.String name)
public static void parseProperties(java.util.Map<java.lang.String,java.lang.String> properties, java.lang.String name)
public static javax.management.ObjectName getObjectName(java.lang.String domain, java.util.Map<java.lang.String,java.lang.String> properties) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public static java.lang.Object find(java.lang.String localName) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public static java.lang.Object find(javax.management.ObjectName name)
public static java.lang.Object findGlobal(java.lang.String localName) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public static java.lang.Object findGlobal(javax.management.ObjectName name)
public static java.lang.Object find(javax.management.ObjectName name, java.lang.ClassLoader loader)
public static java.lang.Object find(javax.management.ObjectName name, java.lang.ClassLoader loader, javax.management.MBeanServer mbeanServer)
public static java.util.ArrayList<java.lang.Object> query(javax.management.ObjectName namePattern)
public static void queueAbsolute(java.util.TimerTask job, long time)
public static void queueRelative(java.util.TimerTask job, long delta)
public static void dequeue(java.util.TimerTask job)