|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.jmx.JmxConfigurator
public class JmxConfigurator
Constructor Summary | |
---|---|
JmxConfigurator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmxConfigurator()
Method Detail |
---|
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=JGroups
java.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 wrapped
ManagedAttribute
,
ManagedOperation
public static javax.management.DynamicMBean wrap(Protocol p)
p
- protocol to be wrapped
ManagedAttribute
,
ManagedOperation
public static void unregister(javax.management.MBeanServer server, java.lang.String object_name) throws java.lang.Exception
object_name
-
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |