|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is the value representation of a measurement job that monitor a set of specified attributes on a set of observable object classes.
This interface extends the PerformanceMonitorValue interface with a new attribute:
The new attributes, of the value object, are a list of observed object classes that shall be monitored, with a scope, and an optional list of measurement attributes, that identify what is monitored by the measurement job. If the measurement attribute list is omitted, all measurement attributes in the observed object instances will be monitored (scanned).
JVTPerformanceMonitorSession
Field Summary | |
static java.lang.String |
MEASUREMENT_ATTRIBUTES
Constant for attribute measurement attributes. |
static java.lang.String |
OBSERVABLE_OBJECT_CLASSES
Constant for attribute observable object classes. |
static java.lang.String |
SCOPE
Constant for attribute defining the scope. |
static java.lang.String |
VALUE_TYPE
Constant that can be used to match what is returned from PerormanceMonitor::getPerformanceMonitorTypes() . |
Fields inherited from interface com.sun.management.oss.pm.measurement.PerformanceMonitorValue |
GRANULARITY_PERIOD, NAME, REPORT_BY_EVENT, REPORT_BY_FILE, REPORT_FORMAT, REPORTING_PERIOD, SCHEDULE, STATE |
Fields inherited from interface com.sun.management.oss.ManagedEntityValue |
KEY |
Method Summary | |
PerformanceAttributeDescriptor[] |
getMeasurementAttributes()
Returns a list of measurement attributes. |
java.lang.String[] |
getObservedObjectClasses()
Returns a list of observable object class names. |
javax.management.ObjectName |
getScope()
Returns the JMX pattern the job is using. |
PerformanceAttributeDescriptor |
makePerformanceAttributeDescriptor()
Creates a new instance of the PerformanceAttributeDescriptor interface. |
void |
setMeasurementAttributes(PerformanceAttributeDescriptor[] measurmentAttributeNames)
Sets the measurement attributes to be monitored. |
void |
setObservedObjectClasses(java.lang.String[] observedObjectClasses)
Sets the observable object classes that shall be monitored. |
void |
setScope(javax.management.ObjectName base)
Sets the JMX pattern matching the object names the job must handle. |
Methods inherited from interface com.sun.management.oss.pm.measurement.PerformanceMonitorValue |
getGranularityPeriod, getName, getPerformanceMonitorKey, getReportByEvent, getReportByFile, getReportFormat, getReportPeriod, getSchedule, getState, makePerformanceMonitorKey, makeReportFormat, makeSchedule, setGranularityPeriod, setName, setPerformanceMonitorKey, setReportByEvent, setReportByFile, setReportFormat, setReportPeriod, setSchedule, setState |
Methods inherited from interface com.sun.management.oss.ManagedEntityValue |
clone, getLastUpdateVersionNumber, getManagedEntityKey, getSettableAttributeNames, makeManagedEntityKey, setLastUpdateVersionNumber, setManagedEntityKey |
Methods inherited from interface com.sun.management.oss.AttributeAccess |
getAllPopulatedAttributes, getAttributeNames, getAttributeValue, getAttributeValues, getPopulatedAttributeNames, getSupportedOptionalAttributeNames, isFullyPopulated, isPopulated, setAttributeValue, setAttributeValues, unpopulateAllAttributes, unpopulateAttribute |
Methods inherited from interface com.sun.management.oss.SerializerFactory |
getSupportedSerializerTypes, makeSerializer |
Field Detail |
public static final java.lang.String VALUE_TYPE
PerormanceMonitor::getPerformanceMonitorTypes()
.
public static final java.lang.String MEASUREMENT_ATTRIBUTES
public static final java.lang.String OBSERVABLE_OBJECT_CLASSES
public static final java.lang.String SCOPE
Method Detail |
public PerformanceAttributeDescriptor makePerformanceAttributeDescriptor()
public PerformanceAttributeDescriptor[] getMeasurementAttributes() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- Is raised if the attribute is not populated.setMeasurementAttributes(com.sun.management.oss.pm.measurement.PerformanceAttributeDescriptor[])
public void setMeasurementAttributes(PerformanceAttributeDescriptor[] measurmentAttributeNames) throws java.lang.IllegalArgumentException
The supplied measurement attribute must be supported of all monitored objects.
The measurement attributes will be validated when the value object is passed to the performance monitor bean.
If the measurement attribute list shall be omitted, an empty list must be set.
measurmentAttributeNames
- List of measurement attribute.
java.lang.IllegalArgumentException
- Is raised if the input parameters are not valid.getMeasurementAttributes()
public java.lang.String[] getObservedObjectClasses() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- Is raised if the attribute is not populated.setObservedObjectClasses(java.lang.String[])
public void setObservedObjectClasses(java.lang.String[] observedObjectClasses) throws java.lang.IllegalArgumentException
The observable object classes will be validated when the value object is passed to the performance monitor bean.
The supported observable classes can be retrieved by using the PerformanceMonitor.getObservableObjectClasses
observedObjectClasses
- List of observable object class names.
java.lang.IllegalArgumentException
- Is raised if the input parameters are not valid.getObservedObjectClasses()
public javax.management.ObjectName getScope() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- Is raised if the attribute is not populated.setScope(javax.management.ObjectName)
public void setScope(javax.management.ObjectName base) throws java.lang.IllegalArgumentException
base
- The JMX pattern for selecting objects.
java.lang.IllegalArgumentException
- Is raised if the input parameters are not valid.getScope()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |