Class AbstractMBeanStaticProxy

java.lang.Object
org.jppf.management.AbstractMBeanStaticProxy

public class AbstractMBeanStaticProxy extends Object
Abstract super class for all generated MBean static proxies.
Author:
Laurent Cohen
  • Field Details

    • log

      protected static org.slf4j.Logger log
      Logger for this class.
    • debugEnabled

      protected static boolean debugEnabled
      Determines whether debug log statements are enabled.
    • connection

      protected final JMXConnectionWrapper connection
      The JMX connection used to invoke remote MBean methods.
    • mbeanName

      protected final String mbeanName
      The object name of the mbean for which this object is a proxy.
  • Constructor Details

    • AbstractMBeanStaticProxy

      public AbstractMBeanStaticProxy(JMXConnectionWrapper connection, String mbeanName)
      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

      public Object invoke(String methodName, Object[] params, String[] signature)
      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

      public Object getAttribute(String attribute)
      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

      public void setAttribute(String attribute, Object value)
      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 be null.
      handback - a handback object.
    • removeNotificationListener

      public void removeNotificationListener(NotificationListener listener)
      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 be null.
      handback - a handback object.
    • getNotificationInfo

      public MBeanNotificationInfo[] getNotificationInfo()
      Get the MBean notification information.
      Returns:
      an array of MBeanNotificationInfo instances.