Class MonitoredObjectImpl

java.lang.Object
com.sun.corba.se.impl.monitoring.MonitoredObjectImpl
All Implemented Interfaces:
MonitoredObject

public class MonitoredObjectImpl extends Object implements MonitoredObject
  • Method Details

    • getChild

      public MonitoredObject getChild(String name)
      Description copied from interface: MonitoredObject

      Gets the child MonitoredObject associated with this MonitoredObject instance using name as the key. The name should be fully qualified name like orb.connectionmanager

      Specified by:
      getChild in interface MonitoredObject
      Parameters:
      name - of the ChildMonitored Object

      Returns:
      a MonitoredObject identified by the given name

    • getChildren

      public Collection getChildren()
      Description copied from interface: MonitoredObject

      Gets all the Children registered under this instance of Monitored Object.

      Specified by:
      getChildren in interface MonitoredObject
      Returns:
      Collection of immediate Children associated with this MonitoredObject.

    • addChild

      public void addChild(MonitoredObject m)
      Description copied from interface: MonitoredObject

      This method will add a child Monitored Object to this Monitored Object.

      Specified by:
      addChild in interface MonitoredObject
    • removeChild

      public void removeChild(String name)
      Description copied from interface: MonitoredObject

      This method will remove child Monitored Object identified by the given name

      Specified by:
      removeChild in interface MonitoredObject
      Parameters:
      name - of the ChildMonitored Object

    • getParent

      public MonitoredObject getParent()
      Description copied from interface: MonitoredObject

      There will be only one parent for an instance of MontoredObject, this call gets parent and returns null if the Monitored Object is the root.

      Specified by:
      getParent in interface MonitoredObject
      Returns:
      a MonitoredObject which is a Parent of this Monitored Object instance

    • setParent

      public void setParent(MonitoredObject p)
      Description copied from interface: MonitoredObject

      Sets the parent for this Monitored Object.

      Specified by:
      setParent in interface MonitoredObject
    • getAttribute

      public MonitoredAttribute getAttribute(String name)
      Description copied from interface: MonitoredObject

      Gets the Monitored Object registered by the given name

      Specified by:
      getAttribute in interface MonitoredObject
      Parameters:
      name - of the attribute

      Returns:
      a MonitoredAttribute identified by the given name

    • getAttributes

      public Collection getAttributes()
      Description copied from interface: MonitoredObject

      Gets all the Monitored Attributes for this Monitored Objects. It doesn't include the Child Monitored Object, that needs to be traversed using getChild() or getChildren() call.

      Specified by:
      getAttributes in interface MonitoredObject
      Returns:
      Collection of all the Attributes for this MonitoredObject

    • addAttribute

      public void addAttribute(MonitoredAttribute value)
      Description copied from interface: MonitoredObject

      Adds the attribute with the given name.

      Specified by:
      addAttribute in interface MonitoredObject
      Parameters:
      value - is the MonitoredAttribute which will be set as one of the attribute of this MonitoredObject.

    • removeAttribute

      public void removeAttribute(String name)
      Description copied from interface: MonitoredObject

      Removes the attribute with the given name.

      Specified by:
      removeAttribute in interface MonitoredObject
      Parameters:
      name - is the MonitoredAttribute name

    • clearState

      public void clearState()
      calls clearState() on all the registered children MonitoredObjects and MonitoredAttributes.
      Specified by:
      clearState in interface MonitoredObject
    • getName

      public String getName()
      Description copied from interface: MonitoredObject

      Gets the name of this MonitoredObject

      Specified by:
      getName in interface MonitoredObject
      Returns:
      a String with name of this Monitored Object

    • getDescription

      public String getDescription()
      Description copied from interface: MonitoredObject

      Gets the description of MonitoredObject

      Specified by:
      getDescription in interface MonitoredObject
      Returns:
      a String with Monitored Object Description.