Package org.jgroups.jmx
Class JmxConfigurator
java.lang.Object
org.jgroups.jmx.JmxConfigurator
- Author:
- Bela Ban, Vladimir Blagojevic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.static voidregister(Object obj, MBeanServer server, String name) static voidregisterChannel(JChannel channel, MBeanServer server, String name) Registers an already created channel with the given MBeanServer.static voidregisterChannel(JChannel channel, MBeanServer server, String domain, String cluster_name, boolean register_protocols) Registers an already created channel with the given MBeanServer.static voidregisterChannelFactory(JChannelFactory factory, MBeanServer server, String name) static voidunregister(Object obj, MBeanServer server, String name) static voidunregister(MBeanServer server, String object_name) Unregisters object_name and everything under itstatic voidunregisterChannel(MBeanServer server, String name) static voidunregisterChannel(MBeanServer server, ObjectName name) static voidunregisterChannel(JChannel c, MBeanServer server, String clusterName) static voidunregisterChannel(JChannel c, MBeanServer server, String domain, String clusterName) static voidunRegisterChannelFactory(JChannelFactory factory, MBeanServer server, String name) static DynamicMBeanWrap JChannel with DynamicMBean interface.static DynamicMBeanWrap Protocol with DynamicMBean interface.
-
Constructor Details
-
JmxConfigurator
public JmxConfigurator()
-
-
Method Details
-
registerChannel
public static void registerChannel(JChannel channel, MBeanServer server, String domain, String cluster_name, boolean register_protocols) throws Exception Registers an already created channel with the given MBeanServer. Wraps instance of JChannel with DynamicMBean and delegates all calls to the actual JChannel wrapped.Optionally, this method will also wrap each protocol in the given channel with DynamicMBean and register it as well.
- Parameters:
channel-server-domain- Has to be a JMX ObjectName of the domain, e.g. DefaultDomain:name=JGroupsregister_protocols-- Throws:
Exception
-
registerChannel
public static void registerChannel(JChannel channel, MBeanServer server, String name) throws Exception Registers an already created channel with the given MBeanServer. Wraps instance of JChannel with DynamicMBean and delegates all calls to the actual JChannel wrapped.This method will also wrap each protocol in the given channel with DynamicMBean and register it as well.
- Parameters:
channel-server-domain- Has to be a JMX ObjectName of the domain, e.g. DefaultDomain:name=JGroups- Throws:
Exception
-
unregisterChannel
- Throws:
Exception
-
unregisterChannel
- Throws:
Exception
-
unregisterChannel
public static void unregisterChannel(JChannel c, MBeanServer server, String clusterName) throws Exception - Throws:
Exception
-
unregisterChannel
public static void unregisterChannel(JChannel c, MBeanServer server, String domain, String clusterName) throws Exception - Throws:
Exception
-
registerChannelFactory
public static void registerChannelFactory(JChannelFactory factory, MBeanServer server, String name) throws Exception - Throws:
Exception
-
unRegisterChannelFactory
public static void unRegisterChannelFactory(JChannelFactory factory, MBeanServer server, String name) throws Exception - Throws:
Exception
-
register
public static void register(Object obj, MBeanServer server, String name) throws MBeanRegistrationException, MalformedObjectNameException -
unregister
public static void unregister(Object obj, MBeanServer server, String name) throws MBeanRegistrationException, MalformedObjectNameException -
asDynamicMBean
Deprecated. -
asDynamicMBean
Deprecated. -
wrap
Wrap JChannel with DynamicMBean interface. All annotated attributes and methods will be exposed through DynamicMBean API.- Parameters:
ch- channel to be wrapped- Returns:
- Channel ch wrapped as a DynamicBean
- See Also:
-
wrap
Wrap Protocol with DynamicMBean interface. All annotated attributes and methods will be exposed through DynamicMBean API.- Parameters:
p- protocol to be wrapped- Returns:
- Protocol p as a DynamicMBean
- See Also:
-
unregister
Unregisters object_name and everything under it- Parameters:
object_name-- Throws:
Exception
-