public class JmxConfigurator extends Object
Constructor and Description |
---|
JmxConfigurator() |
Modifier and Type | Method and Description |
---|---|
static void |
register(Object obj,
MBeanServer server,
String name) |
static void |
registerChannel(JChannel channel,
MBeanServer server,
String name)
Registers an already created channel with the given MBeanServer.
|
static void |
registerChannel(JChannel channel,
MBeanServer server,
String domain,
String cluster_name,
boolean register_protocols)
Registers an already created channel with the given MBeanServer.
|
static void |
unregister(MBeanServer server,
String object_name)
Unregisters object_name and everything under it
|
static void |
unregister(Object obj,
MBeanServer server,
String name) |
static void |
unregisterChannel(JChannel c,
MBeanServer server,
String clusterName) |
static void |
unregisterChannel(JChannel c,
MBeanServer server,
String domain,
String clusterName) |
static void |
unregisterChannel(MBeanServer server,
ObjectName name) |
static void |
unregisterChannel(MBeanServer server,
String name) |
static DynamicMBean |
wrap(JChannel ch)
Wrap JChannel with DynamicMBean interface.
|
static DynamicMBean |
wrap(Protocol p)
Wrap Protocol with DynamicMBean interface.
|
public static void registerChannel(JChannel channel, MBeanServer server, String domain, String cluster_name, boolean register_protocols) throws 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
- Exception
public static void registerChannel(JChannel channel, MBeanServer server, String name) throws 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=JGroupsException
public static void unregisterChannel(MBeanServer server, ObjectName name) throws Exception
Exception
public static void unregisterChannel(MBeanServer server, String name) throws Exception
Exception
public static void unregisterChannel(JChannel c, MBeanServer server, String clusterName) throws Exception
Exception
public static void unregisterChannel(JChannel c, MBeanServer server, String domain, String clusterName) throws Exception
Exception
public static void register(Object obj, MBeanServer server, String name) throws MBeanRegistrationException, MalformedObjectNameException
public static void unregister(Object obj, MBeanServer server, String name) throws MBeanRegistrationException, MalformedObjectNameException
public static DynamicMBean wrap(JChannel ch)
ch
- channel to be wrappedManagedAttribute
,
ManagedOperation
public static DynamicMBean wrap(Protocol p)
p
- protocol to be wrappedManagedAttribute
,
ManagedOperation
public static void unregister(MBeanServer server, String object_name) throws Exception
object_name
- Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.