|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
GenericModel
class. This interface to be implemented by each data model
if the factory does not support ByClasses jobs, otherwise, data model should
be created inheriting from the ByClassesGenericModelinterface.
Method Summary | |
PerformanceAttributeDescriptor[] |
getObservableAttributes(java.lang.String observableObjectClassName)
getObservableAttributes will return all observable attributes for a certain class. |
ObservableObjectClassIterator |
getObservableObjectClasses()
getObservableObjectClasses will return all observable object classes in the model. |
ObservableObjectIterator |
getObservableObjects(java.lang.String observableObjectClassName,
javax.management.ObjectName base)
getObservableObjects will return all observable objects of a certain class
matching the JMX pattern base. |
int[] |
getSupportedGranularities(java.lang.String observableObjectClass)
getSupportedGranularities will return an array of granularities
that is supported by the supplied observable object class. |
javax.management.ObjectName[] |
getSupportedObservableObjects(javax.management.ObjectName[] dnList)
getSupportedObservableObjects will filter out which of the potentially observable objects are actually observable.
|
boolean |
isMatchingNamingRules(javax.management.ObjectName dn)
isMatchingNamingRules Returns true if the given object distinguished name is valid for the naming
rules of the data model. |
void |
setMBS(javax.management.MBeanServer ms)
setMBS is the first method called by the factory, after having
instanciated its own GenericModel object. |
Method Detail |
public void setMBS(javax.management.MBeanServer ms) 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.
ms
- the MBeanServer to be used for queries.
java.lang.IllegalArgumentException
- Is raised if the input parameter is null.public ObservableObjectIterator getObservableObjects(java.lang.String observableObjectClassName, javax.management.ObjectName base) throws java.lang.IllegalArgumentException
getObservableObjects
will return all observable objects of a certain class
matching the JMX pattern base.
observableObjectClassName
- The class name of the observable object instances to be found.base
- The JMX pattern for the search.
java.lang.IllegalArgumentException
- Is raised if the input parameters are not valid.public javax.management.ObjectName[] getSupportedObservableObjects(javax.management.ObjectName[] dnList)
getSupportedObservableObjects
will filter out which of the potentially observable objects are actually observable.
If an object of the provided list is present in the returned list, that means it is an observable object (a job can be created for this object).
dnList
- List of object names to check for observability.
public ObservableObjectClassIterator getObservableObjectClasses()
getObservableObjectClasses
will return all observable object classes in the model.
public PerformanceAttributeDescriptor[] getObservableAttributes(java.lang.String observableObjectClassName) throws java.lang.IllegalArgumentException
getObservableAttributes
will return all observable attributes for a certain class.
observableObjectClassName
- The class name of the observable object instances to be found.
java.lang.IllegalArgumentException
- Is raised if the input parameters are not valid.public boolean isMatchingNamingRules(javax.management.ObjectName dn)
isMatchingNamingRules
Returns true if the given object distinguished name is valid for the naming
rules of the data model.
dn
- The object name to check for validity.
public int[] getSupportedGranularities(java.lang.String observableObjectClass) throws java.lang.IllegalArgumentException
getSupportedGranularities
will return an array of granularities
that is supported by the supplied observable object class.
observableObjectClass
- Class you want to know the supported granularities for.
java.lang.IllegalArgumentException
- Is raised if an arguement has a wrong format/value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |