|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mfwk.cms.model.opstatus.OperationalStatusMfModel
This class defines the interface between the monitoring jobs and the data model. It provides facilities to :
Constructor Summary | |
OperationalStatusMfModel()
|
Method Summary | |
boolean |
apply(javax.management.ObjectName on)
A QueryExp implementation to recover the supportedObservaleObjects from the MBeanServer. |
boolean |
getCIBData(javax.management.ObjectName objectName,
CIBMonitoredObjectElement monitoredObjectElement)
Return true if the given CIBMonitoredObject has changes since last call; false otherwise. |
boolean |
getJ2EEData(javax.management.ObjectName objectName,
J2EEMonitoredObjectElement monitoredObjectElement)
Return true if the given J2EEMonitoredObject has changes since last call; false otherwise. |
PerformanceAttributeDescriptor[] |
getObservableAttributes(java.lang.String observableObjectClassName)
Returns an array of hard coded list of attribute descriptors (may be empty). |
ObservableObjectClassIterator |
getObservableObjectClasses()
Returns all supported observed object class names that provide states for the CIB model or the JSR77 model. |
ObservableObjectIterator |
getObservableObjects(java.lang.String observableObjectClassName,
javax.management.ObjectName pattern)
Returns the supported observable object instances of the specific object class that are matching the given JMX pattern. |
int[] |
getSupportedGranularities(java.lang.String classname)
Returns an array of predefined supported granularities. |
javax.management.ObjectName[] |
getSupportedObservableObjects(javax.management.ObjectName[] objectNames)
Returns all or a subset of the given ObjectNames that are supported. |
void |
handleNotification(javax.management.Notification notification,
java.lang.Object handback)
Keep caches up to date with MBean registerations and unregisterations. |
boolean |
isMatchingNamingRules(javax.management.ObjectName objectName)
Returns true if the given objectName matches the supported pattern; false otherwise. |
java.lang.String |
isOfClass(javax.management.ObjectName objectName,
java.lang.String[] classNames)
Checks if a monitored object identified by its ObjectName is of a given class. |
boolean |
isValidClass(java.lang.String className)
Always return true. |
void |
setMBeanServer(javax.management.MBeanServer s)
Sets the MBean server on which the query is to be performed. |
void |
setMBS(javax.management.MBeanServer server)
setMBS is the first method called by the factory, after having
instanciated its own GenericModel object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OperationalStatusMfModel()
Method Detail |
public void setMBS(javax.management.MBeanServer server) throws java.lang.IllegalArgumentException
setMBS
is the first method called by the factory, after having
instanciated its own GenericModel object. It must be coded so that the MBeanServer is kept
into object and used for performing necessary JMX queries.
setMBS
in interface GenericModel
server
- the MBeanServer to be used for queries.
java.lang.IllegalArgumentException
- Is raised if the input parameter is null.public boolean getCIBData(javax.management.ObjectName objectName, CIBMonitoredObjectElement monitoredObjectElement) throws java.lang.IllegalStateException
getCIBData
in interface OperationalStatusGenericModel
objectName
- an ObjectName instance that identifies the desired
monitored object within the MBeanServer.monitoredObjectElement
- the element that holds intern attribute values.
java.lang.IllegalStateException
- raised when the monitored object
is not a state provider or unreachable.public boolean getJ2EEData(javax.management.ObjectName objectName, J2EEMonitoredObjectElement monitoredObjectElement)
getJ2EEData
in interface OperationalStatusGenericModel
objectName
- an ObjectName instance that identifies the desired
monitored object within the MBeanServer.monitoredObjectElement
- the element that holds intern attribute values.
public ObservableObjectClassIterator getObservableObjectClasses()
Note : this does not mean that all classes from the CIB model will provide states, as the functionality can be disabled at any time.
getObservableObjectClasses
in interface GenericModel
public PerformanceAttributeDescriptor[] getObservableAttributes(java.lang.String observableObjectClassName)
getObservableAttributes
in interface GenericModel
observableObjectClassName
- the class to look for.
public ObservableObjectIterator getObservableObjects(java.lang.String observableObjectClassName, javax.management.ObjectName pattern) throws java.lang.IllegalArgumentException
getObservableObjects
in interface GenericModel
observableObjectClassName
- the class name of the observable object
instances to be found.pattern
- The JMX pattern to use for searching for observable objects.
javax.oss.IllegalArgumentException
- Is raised if the input parameters are not valid.
java.lang.IllegalArgumentException
- Is raised if the input parameters are not valid.public int[] getSupportedGranularities(java.lang.String classname)
getSupportedGranularities
in interface GenericModel
classname
- a useless parameter as returned granularities are statics.
public javax.management.ObjectName[] getSupportedObservableObjects(javax.management.ObjectName[] objectNames)
getSupportedObservableObjects
in interface GenericModel
objectNames
- array of String representing potential supported ObjectNames.
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)
handleNotification
in interface javax.management.NotificationListener
notification
- the notification from the MBeanServer delegate.handback
- optional handback object.public boolean isMatchingNamingRules(javax.management.ObjectName objectName)
isMatchingNamingRules
in interface GenericModel
objectName
- the ObjectName to examine.
public java.lang.String isOfClass(javax.management.ObjectName objectName, java.lang.String[] classNames)
isOfClass
in interface ByClassesGenericModel
objectName
- the object name of the desired monitored object.classNames
- a list of class names that could potentialy match the
class name of the monitored object.
public boolean isValidClass(java.lang.String className)
isValidClass
in interface ByClassesGenericModel
className
- the class name to check.
public boolean apply(javax.management.ObjectName on)
apply
in interface javax.management.QueryExp
on
- the ObjectName instance to check.
public void setMBeanServer(javax.management.MBeanServer s)
setMBeanServer
in interface javax.management.QueryExp
s
- The MBean server on which the query is to be performed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |