Class MonitoredObjectImpl
- All Implemented Interfaces:
MonitoredObject
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(MonitoredAttribute value) Adds the attribute with the given name.voidThis method will add a child Monitored Object to this Monitored Object.voidcalls clearState() on all the registered children MonitoredObjects and MonitoredAttributes.getAttribute(String name) Gets the Monitored Object registered by the given nameGets all the Monitored Attributes for this Monitored Objects.Gets the child MonitoredObject associated with this MonitoredObject instance using name as the key.Gets all the Children registered under this instance of Monitored Object.Gets the description of MonitoredObjectgetName()Gets the name of this MonitoredObjectThere will be only one parent for an instance of MontoredObject, this call gets parent and returns null if the Monitored Object is the root.voidremoveAttribute(String name) Removes the attribute with the given name.voidremoveChild(String name) This method will remove child Monitored Object identified by the given namevoidSets the parent for this Monitored Object.
-
Method Details
-
getChild
Description copied from interface:MonitoredObjectGets 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:
getChildin interfaceMonitoredObject- Parameters:
name- of the ChildMonitored Object- Returns:
- a MonitoredObject identified by the given name
-
getChildren
Description copied from interface:MonitoredObjectGets all the Children registered under this instance of Monitored Object.
- Specified by:
getChildrenin interfaceMonitoredObject- Returns:
- Collection of immediate Children associated with this MonitoredObject.
-
addChild
Description copied from interface:MonitoredObjectThis method will add a child Monitored Object to this Monitored Object.
- Specified by:
addChildin interfaceMonitoredObject
-
removeChild
Description copied from interface:MonitoredObjectThis method will remove child Monitored Object identified by the given name
- Specified by:
removeChildin interfaceMonitoredObject- Parameters:
name- of the ChildMonitored Object
-
getParent
Description copied from interface:MonitoredObjectThere 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:
getParentin interfaceMonitoredObject- Returns:
- a MonitoredObject which is a Parent of this Monitored Object instance
-
setParent
Description copied from interface:MonitoredObjectSets the parent for this Monitored Object.
- Specified by:
setParentin interfaceMonitoredObject
-
getAttribute
Description copied from interface:MonitoredObjectGets the Monitored Object registered by the given name
- Specified by:
getAttributein interfaceMonitoredObject- Parameters:
name- of the attribute- Returns:
- a MonitoredAttribute identified by the given name
-
getAttributes
Description copied from interface:MonitoredObjectGets 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:
getAttributesin interfaceMonitoredObject- Returns:
- Collection of all the Attributes for this MonitoredObject
-
addAttribute
Description copied from interface:MonitoredObjectAdds the attribute with the given name.
- Specified by:
addAttributein interfaceMonitoredObject- Parameters:
value- is the MonitoredAttribute which will be set as one of the attribute of this MonitoredObject.
-
removeAttribute
Description copied from interface:MonitoredObjectRemoves the attribute with the given name.
- Specified by:
removeAttributein interfaceMonitoredObject- Parameters:
name- is the MonitoredAttribute name
-
clearState
public void clearState()calls clearState() on all the registered children MonitoredObjects and MonitoredAttributes.- Specified by:
clearStatein interfaceMonitoredObject
-
getName
Description copied from interface:MonitoredObjectGets the name of this MonitoredObject
- Specified by:
getNamein interfaceMonitoredObject- Returns:
- a String with name of this Monitored Object
-
getDescription
Description copied from interface:MonitoredObjectGets the description of MonitoredObject
- Specified by:
getDescriptionin interfaceMonitoredObject- Returns:
- a String with Monitored Object Description.
-