public class MonitoredObjectImpl extends Object implements MonitoredObject
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(MonitoredAttribute value)
Adds the attribute with the given name.
|
void |
addChild(MonitoredObject m)
This method will add a child Monitored Object to this Monitored Object.
|
void |
clearState()
calls clearState() on all the registered children MonitoredObjects and
MonitoredAttributes.
|
MonitoredAttribute |
getAttribute(String name)
Gets the Monitored Object registered by the given name
|
Collection |
getAttributes()
Gets all the Monitored Attributes for this Monitored Objects.
|
MonitoredObject |
getChild(String name)
Gets the child MonitoredObject associated with this MonitoredObject
instance using name as the key.
|
Collection |
getChildren()
Gets all the Children registered under this instance of Monitored
Object.
|
String |
getDescription()
Gets the description of MonitoredObject
|
String |
getName()
Gets the name of this MonitoredObject
|
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.
|
void |
removeAttribute(String name)
Removes the attribute with the given name.
|
void |
removeChild(String name)
This method will remove child Monitored Object identified by the given name
|
void |
setParent(MonitoredObject p)
Sets the parent for this Monitored Object.
|
public MonitoredObject getChild(String name)
MonitoredObjectGets the child MonitoredObject associated with this MonitoredObject instance using name as the key. The name should be fully qualified name like orb.connectionmanager
getChild in interface MonitoredObjectname - of the ChildMonitored Object
public Collection getChildren()
MonitoredObjectGets all the Children registered under this instance of Monitored Object.
getChildren in interface MonitoredObjectpublic void addChild(MonitoredObject m)
MonitoredObjectThis method will add a child Monitored Object to this Monitored Object.
addChild in interface MonitoredObjectpublic void removeChild(String name)
MonitoredObjectThis method will remove child Monitored Object identified by the given name
removeChild in interface MonitoredObjectname - of the ChildMonitored Object
public MonitoredObject getParent()
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.
getParent in interface MonitoredObjectpublic void setParent(MonitoredObject p)
MonitoredObjectSets the parent for this Monitored Object.
setParent in interface MonitoredObjectpublic MonitoredAttribute getAttribute(String name)
MonitoredObjectGets the Monitored Object registered by the given name
getAttribute in interface MonitoredObjectname - of the attribute
public Collection getAttributes()
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.
getAttributes in interface MonitoredObjectpublic void addAttribute(MonitoredAttribute value)
MonitoredObjectAdds the attribute with the given name.
addAttribute in interface MonitoredObjectvalue - is the MonitoredAttribute which will be set as one of the
attribute of this MonitoredObject.
public void removeAttribute(String name)
MonitoredObjectRemoves the attribute with the given name.
removeAttribute in interface MonitoredObjectname - is the MonitoredAttribute name
public void clearState()
clearState in interface MonitoredObjectpublic String getName()
MonitoredObjectGets the name of this MonitoredObject
getName in interface MonitoredObjectpublic String getDescription()
MonitoredObjectGets the description of MonitoredObject
getDescription in interface MonitoredObjectCopyright © 2018 JBoss by Red Hat. All rights reserved.