Class SimpleDomainNode

java.lang.Object
org.oddjob.jmx.general.SimpleDomainNode
All Implemented Interfaces:
Iconic, Destroyable, DomainNode, LogEnabled, Structural

public class SimpleDomainNode extends Object implements DomainNode, Iconic, LogEnabled
A simple implementation of a DomainNode.
Author:
rob
  • Constructor Details

    • SimpleDomainNode

      public SimpleDomainNode(String domain, MBeanSession mBeanSession)
      Constructor.
      Parameters:
      domain - The name.
      mBeanSession - The session.
  • Method Details

    • 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.
    • initialise

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

      public void addStructuralListener(StructuralListener listener)
      Description copied from interface: Structural
      Add a listener. The listener will immediately receive add notifications for all existing children.
      Specified by:
      addStructuralListener in interface Structural
      Parameters:
      listener - The listener.
    • removeStructuralListener

      public void removeStructuralListener(StructuralListener listener)
      Description copied from interface: Structural
      Remove a listener.
      Specified by:
      removeStructuralListener in interface Structural
      Parameters:
      listener - The listener.
    • iconForId

      public ImageData iconForId(String iconId)
      Return an icon tip for a given id. Part of the Iconic interface.
      Specified by:
      iconForId in interface Iconic
      Parameters:
      iconId - The icon id.
      Returns:
      The Icon Image Data or null if it doesn't exist.
    • addIconListener

      public void addIconListener(IconListener listener)
      Add an icon listener. Part of the Iconic interface.
      Specified by:
      addIconListener in interface Iconic
      Parameters:
      listener - The listener.
    • removeIconListener

      public void removeIconListener(IconListener listener)
      Remove an icon listener. Part of the Iconic interface.
      Specified by:
      removeIconListener in interface Iconic
      Parameters:
      listener - The listener.
    • destroy

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

      public String toString()
      Overrides:
      toString in class Object