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)
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
getChild
in interface MonitoredObject
name
- of the ChildMonitored Object
public Collection getChildren()
MonitoredObject
Gets all the Children registered under this instance of Monitored Object.
getChildren
in interface MonitoredObject
public void addChild(MonitoredObject m)
MonitoredObject
This method will add a child Monitored Object to this Monitored Object.
addChild
in interface MonitoredObject
public void removeChild(String name)
MonitoredObject
This method will remove child Monitored Object identified by the given name
removeChild
in interface MonitoredObject
name
- of the ChildMonitored Object
public MonitoredObject getParent()
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.
getParent
in interface MonitoredObject
public void setParent(MonitoredObject p)
MonitoredObject
Sets the parent for this Monitored Object.
setParent
in interface MonitoredObject
public MonitoredAttribute getAttribute(String name)
MonitoredObject
Gets the Monitored Object registered by the given name
getAttribute
in interface MonitoredObject
name
- of the attribute
public Collection getAttributes()
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.
getAttributes
in interface MonitoredObject
public void addAttribute(MonitoredAttribute value)
MonitoredObject
Adds the attribute with the given name.
addAttribute
in interface MonitoredObject
value
- is the MonitoredAttribute which will be set as one of the
attribute of this MonitoredObject.
public void removeAttribute(String name)
MonitoredObject
Removes the attribute with the given name.
removeAttribute
in interface MonitoredObject
name
- is the MonitoredAttribute name
public void clearState()
clearState
in interface MonitoredObject
public String getName()
MonitoredObject
Gets the name of this MonitoredObject
getName
in interface MonitoredObject
public String getDescription()
MonitoredObject
Gets the description of MonitoredObject
getDescription
in interface MonitoredObject
Copyright © 2018 JBoss by Red Hat. All rights reserved.