Interface MonitoredObject
- All Known Implementing Classes:
MonitoredObjectImpl
- Author:
- Hemanth Puttaswamy
Monitored Object provides an Hierarchichal view of the ORB Monitoring System. It can contain multiple children and a single parent. Each Monitored Object may also contain Multiple Monitored Attributes.
-
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.voidClears the state of all the Monitored Attributes associated with the Monitored Object.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
-
getName
String getName()Gets the name of this MonitoredObject
- Returns:
- a String with name of this Monitored Object
-
getDescription
String getDescription()Gets the description of MonitoredObject
- Returns:
- a String with Monitored Object Description.
-
addChild
This method will add a child Monitored Object to this Monitored Object.
-
removeChild
This method will remove child Monitored Object identified by the given name
- Parameters:
name- of the ChildMonitored Object
-
getChild
Gets the child MonitoredObject associated with this MonitoredObject instance using name as the key. The name should be fully qualified name like orb.connectionmanager
- Parameters:
name- of the ChildMonitored Object- Returns:
- a MonitoredObject identified by the given name
-
getChildren
Collection getChildren()Gets all the Children registered under this instance of Monitored Object.
- Returns:
- Collection of immediate Children associated with this MonitoredObject.
-
setParent
Sets the parent for this Monitored Object.
-
getParent
MonitoredObject getParent()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.
- Returns:
- a MonitoredObject which is a Parent of this Monitored Object instance
-
addAttribute
Adds the attribute with the given name.
- Parameters:
value- is the MonitoredAttribute which will be set as one of the attribute of this MonitoredObject.
-
removeAttribute
Removes the attribute with the given name.
- Parameters:
name- is the MonitoredAttribute name
-
getAttribute
Gets the Monitored Object registered by the given name
- Parameters:
name- of the attribute- Returns:
- a MonitoredAttribute identified by the given name
-
getAttributes
Collection getAttributes()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.
- Returns:
- Collection of all the Attributes for this MonitoredObject
-
clearState
void clearState()Clears the state of all the Monitored Attributes associated with the Monitored Object. It will also clear the state on all it's child Monitored Object. The call to clearState will be initiated from CORBAMBean.startMonitoring() call.
-