|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The PerformanceGenericModel
interface is the interface between a measurement job factory and its
associated jobs (the factory/job layer) and the data model the factory/jobs care
about.
It means that if you want an X JMX data model instance to be monitored by the
com.sun.management.oss.impl.factory.measurement.JmxJVTPerformanceMonitorSession
factory and its jobs, you have to
provide the factory with an implementation of the PerformanceGenericModel
interface (passed at contstruction time of the factory).
An implementation of the PerformanceGenericModel
interface defines
as far as the underlying JMX data model is concerned:
Method Summary | |
com.sun.management.oss.impl.job.measurement.GenericObject[] |
getData(javax.management.ObjectName[] dnList,
PerformanceAttributeDescriptor[] attributesToMeasure)
getData Collects wanted attribute values for each specified
object. |
boolean |
hasPerformanceAttributes(javax.management.ObjectName dn,
PerformanceAttributeDescriptor[] attributesToMeasure)
hasPerformanceAttributes Returns true if the given object has every attributes specified in
attributesToMeasure. |
Methods inherited from interface com.sun.management.oss.impl.model.ByClassesGenericModel |
isOfClass, isValidClass |
Methods inherited from interface com.sun.management.oss.impl.model.GenericModel |
getObservableAttributes, getObservableObjectClasses, getObservableObjects, getSupportedGranularities, getSupportedObservableObjects, isMatchingNamingRules, setMBS |
Method Detail |
public com.sun.management.oss.impl.job.measurement.GenericObject[] getData(javax.management.ObjectName[] dnList, PerformanceAttributeDescriptor[] attributesToMeasure)
getData
Collects wanted attribute values for each specified
object.
dnList
- The distinguished names of the objects that
should be in browsed.attributesToMeasure
- The attributes that are going to be collected.
public boolean hasPerformanceAttributes(javax.management.ObjectName dn, PerformanceAttributeDescriptor[] attributesToMeasure) throws ObjectNotFoundException
hasPerformanceAttributes
Returns true if the given object has every attributes specified in
attributesToMeasure.
dn
- Object name you want to check for attributes.attributesToMeasure
- Attributes to check.
ObjectNotFoundException
- Is raised if the object is not found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |