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