public final class JmxConfigurator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
register(java.lang.Object obj,
javax.management.MBeanServer server,
java.lang.String name) |
static void |
registerChannel(JChannel channel,
javax.management.MBeanServer server,
java.lang.String name)
Registers an already created channel with the given MBeanServer.
|
static void |
registerChannel(JChannel channel,
javax.management.MBeanServer server,
java.lang.String domain,
java.lang.String cluster_name,
boolean register_protocols)
Registers an already created channel with the given MBeanServer.
|
static void |
unregister(javax.management.MBeanServer server,
java.lang.String object_name)
Unregisters object_name and everything under it
|
static void |
unregister(java.lang.Object obj,
javax.management.MBeanServer server,
java.lang.String name) |
static void |
unregisterChannel(JChannel c,
javax.management.MBeanServer server,
java.lang.String clusterName) |
static void |
unregisterChannel(JChannel c,
javax.management.MBeanServer server,
java.lang.String domain,
java.lang.String clusterName) |
static void |
unregisterChannel(javax.management.MBeanServer server,
javax.management.ObjectName name) |
static void |
unregisterChannel(javax.management.MBeanServer server,
java.lang.String name) |
static javax.management.DynamicMBean |
wrap(JChannel ch)
Wrap JChannel with DynamicMBean interface.
|
static javax.management.DynamicMBean |
wrap(Protocol p)
Wrap Protocol with DynamicMBean interface.
|
public static void registerChannel(JChannel channel, javax.management.MBeanServer server, java.lang.String domain, java.lang.String cluster_name, boolean register_protocols) throws java.lang.Exception
Optionally, this method will also wrap each protocol in the given channel with DynamicMBean and register it as well.
channel
- server
- domain
- Has to be a JMX ObjectName of the domain, e.g. DefaultDomain:name=JGroupsregister_protocols
- java.lang.Exception
public static void registerChannel(JChannel channel, javax.management.MBeanServer server, java.lang.String name) throws java.lang.Exception
This method will also wrap each protocol in the given channel with DynamicMBean and register it as well.
channel
- server
- name
- Has to be a JMX ObjectName of the domain, e.g. DefaultDomain:name=JGroupsjava.lang.Exception
public static void unregisterChannel(javax.management.MBeanServer server, javax.management.ObjectName name) throws java.lang.Exception
java.lang.Exception
public static void unregisterChannel(javax.management.MBeanServer server, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public static void unregisterChannel(JChannel c, javax.management.MBeanServer server, java.lang.String clusterName) throws java.lang.Exception
java.lang.Exception
public static void unregisterChannel(JChannel c, javax.management.MBeanServer server, java.lang.String domain, java.lang.String clusterName) throws java.lang.Exception
java.lang.Exception
public static void register(java.lang.Object obj, javax.management.MBeanServer server, java.lang.String name) throws javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameException
public static void unregister(java.lang.Object obj, javax.management.MBeanServer server, java.lang.String name) throws javax.management.MBeanRegistrationException, javax.management.MalformedObjectNameException
javax.management.MBeanRegistrationException
javax.management.MalformedObjectNameException
public static javax.management.DynamicMBean wrap(JChannel ch)
ch
- channel to be wrappedManagedAttribute
,
ManagedOperation
public static javax.management.DynamicMBean wrap(Protocol p)
p
- protocol to be wrappedManagedAttribute
,
ManagedOperation
public static void unregister(javax.management.MBeanServer server, java.lang.String object_name) throws java.lang.Exception
object_name
- java.lang.Exception
Copyright © 1998-2020 Red Hat. All Rights Reserved.