Class SimpleMBeanNode

java.lang.Object
org.oddjob.jmx.general.SimpleMBeanNode
All Implemented Interfaces:
org.apache.commons.beanutils.DynaBean, Describable, Iconic, Destroyable, MBeanNode, LogEnabled, Invoker

public class SimpleMBeanNode extends Object implements MBeanNode, Describable, LogEnabled, Iconic
A Simple implementation of an MBeanNode.
Author:
rob
  • Constructor Details

  • Method Details

    • initialise

      public void initialise()
      Description copied from interface: MBeanNode
      Called from the DomainNode to initialise this node.
      Specified by:
      initialise in interface MBeanNode
    • loggerName

      public String loggerName()
      Description copied from interface: LogEnabled
      Provide the logger name. The name should be unique for each component that is LogEnabled.
      Specified by:
      loggerName in interface LogEnabled
      Returns:
      A logger name. Never Null.
    • invoke

      public Object invoke(String name, InvokerArguments args) throws Exception
      Description copied from interface: Invoker
      Invoke something.
      Specified by:
      invoke in interface Invoker
      Parameters:
      name - The name of the thing to be invoked.
      args - Parameters. never null.
      Returns:
      The result of doing the invoking.
      Throws:
      Exception
    • addIconListener

      public void addIconListener(IconListener listener)
      Description copied from interface: Iconic
      Add a listener.
      Specified by:
      addIconListener in interface Iconic
      Parameters:
      listener - The IconListener.
    • iconForId

      public ImageData iconForId(String id)
      Description copied from interface: Iconic
      Return the Icon Image Data.
      Specified by:
      iconForId in interface Iconic
      Parameters:
      id - The icon id.
      Returns:
      The Icon Image Data or null if it doesn't exist.
    • removeIconListener

      public void removeIconListener(IconListener listener)
      Description copied from interface: Iconic
      Remove a listener.
      Specified by:
      removeIconListener in interface Iconic
      Parameters:
      listener - The IconListener.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • contains

      public boolean contains(String arg0, String arg1)
      Specified by:
      contains in interface org.apache.commons.beanutils.DynaBean
    • get

      public Object get(String name)
      Specified by:
      get in interface org.apache.commons.beanutils.DynaBean
    • get

      public Object get(String arg0, int arg1)
      Specified by:
      get in interface org.apache.commons.beanutils.DynaBean
    • get

      public Object get(String arg0, String arg1)
      Specified by:
      get in interface org.apache.commons.beanutils.DynaBean
    • getDynaClass

      public org.apache.commons.beanutils.DynaClass getDynaClass()
      Specified by:
      getDynaClass in interface org.apache.commons.beanutils.DynaBean
    • remove

      public void remove(String arg0, String arg1)
      Specified by:
      remove in interface org.apache.commons.beanutils.DynaBean
    • set

      public void set(String name, Object value)
      Specified by:
      set in interface org.apache.commons.beanutils.DynaBean
    • set

      public void set(String arg0, int arg1, Object arg2)
      Specified by:
      set in interface org.apache.commons.beanutils.DynaBean
    • set

      public void set(String arg0, String arg1, Object arg2)
      Specified by:
      set in interface org.apache.commons.beanutils.DynaBean
    • describe

      public Map<String,String> describe()
      Description copied from interface: Describable
      Provides the properties.
      Specified by:
      describe in interface Describable
      Returns:
      A map of property values. Must not be null.
    • destroy

      public void destroy()
      Description copied from interface: Destroyable
      destroy the client side object.
      Specified by:
      destroy in interface Destroyable