Package org.jppf.management
Class AbstractMBeanStaticProxy
java.lang.Object
org.jppf.management.AbstractMBeanStaticProxy
Abstract super class for all generated MBean static proxies.
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JMXConnectionWrapperThe JMX connection used to invoke remote MBean methods.protected static booleanDetermines whether debug log statements are enabled.protected static org.slf4j.LoggerLogger for this class.protected final StringThe object name of the mbean for which this object is a proxy. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMBeanStaticProxy(JMXConnectionWrapper connection, String mbeanName) Initialize this mbean static proxy. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Register a notification listener with the MBean.getAttribute(String attribute) Get the value of an attribute of the specified MBean.Get the MBean notification information.Invoke a method on the MBean.voidUnregister a notification listener from the MBean.voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Unregister a notification listener from the MBean.voidsetAttribute(String attribute, Object value) Set the value of an attribute of the specified MBean.
-
Field Details
-
log
protected static org.slf4j.Logger logLogger for this class. -
debugEnabled
protected static boolean debugEnabledDetermines whether debug log statements are enabled. -
connection
The JMX connection used to invoke remote MBean methods. -
mbeanName
The object name of the mbean for which this object is a proxy.
-
-
Constructor Details
-
AbstractMBeanStaticProxy
Initialize this mbean static proxy.- Parameters:
connection- the JMX connection used to invoke remote MBean methods.mbeanName- the object name of the mbean for which this object is a proxy.
-
-
Method Details
-
invoke
Invoke a method on the MBean.- Parameters:
methodName- the name of the method to invoke.params- the method parameter values.signature- the types of the method parameters.- Returns:
- an object or null.
-
getAttribute
Get the value of an attribute of the specified MBean.- Parameters:
attribute- the name of the attribute to read.- Returns:
- an object or null.
-
setAttribute
Set the value of an attribute of the specified MBean.- Parameters:
attribute- the name of the attribute to write.value- the value to set on the attribute.
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Register a notification listener with the MBean.- Parameters:
listener- the listener to register.filter- an optional filter, may benull.handback- a handback object.
-
removeNotificationListener
Unregister a notification listener from the MBean.- Parameters:
listener- the listener to unregister.
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Unregister a notification listener from the MBean.- Parameters:
listener- the listener to unregister.filter- an optional filter, may benull.handback- a handback object.
-
getNotificationInfo
Get the MBean notification information.- Returns:
- an array of
MBeanNotificationInfoinstances.
-