Package javax. management. openmbean
See: Description
-
Interface Summary Interface Description CompositeData The CompositeData interface specifies the behavior of a specific type of complex open data objects which represent composite data structures.CompositeDataView A Java class can implement this interface to indicate how it is to be converted into aCompositeData
by the MXBean framework.OpenMBeanAttributeInfo Describes an attribute of an open MBean.OpenMBeanConstructorInfo Describes a constructor of an Open MBean.OpenMBeanInfo Describes an Open MBean: an Open MBean is recognized as such if itsgetMBeanInfo()
method returns an instance of a class which implements theOpenMBeanInfo
interface, typicallyOpenMBeanInfoSupport
.OpenMBeanOperationInfo Describes an operation of an Open MBean.OpenMBeanParameterInfo Describes a parameter used in one or more operations or constructors of an open MBean.TabularData The TabularData interface specifies the behavior of a specific type of complex open data objects which represent tabular data structures. -
Class Summary Class Description ArrayType<T> TheArrayType
class is the open type class whose instances describe all open data values which are n-dimensional arrays of open data values.CompositeDataInvocationHandler AnInvocationHandler
that forwards getter methods to aCompositeData
.CompositeDataSupport The CompositeDataSupport class is the open data class which implements the CompositeData interface.CompositeType TheCompositeType
class is the open type class whose instances describe the types of
values.CompositeData
OpenMBeanAttributeInfoSupport Describes an attribute of an open MBean.OpenMBeanConstructorInfoSupport Describes a constructor of an Open MBean.OpenMBeanInfoSupport TheOpenMBeanInfoSupport
class describes the management information of an open MBean: it is a subclass ofMBeanInfo
, and it implements theOpenMBeanInfo
interface.OpenMBeanOperationInfoSupport Describes an operation of an Open MBean.OpenMBeanParameterInfoSupport Describes a parameter used in one or more operations or constructors of an open MBean.OpenType<T> TheOpenType
class is the parent abstract class of all classes which describe the actual open type of open data values.SimpleType<T> TheSimpleType
class is the open type class whose instances describe all open data values which are neither arrays, nor
values, norCompositeData
values.TabularData
TabularDataSupport The TabularDataSupport class is the open data class which implements the TabularData and the Map interfaces, and which is internally based on a hash map data structure.TabularType TheTabularType
class is the open type class whose instances describe the types of
values.TabularData
-
Exception Summary Exception Description InvalidKeyException This runtime exception is thrown to indicate that a method parameter which was expected to be an item name of a composite data or a row index of a tabular data is not valid.InvalidOpenTypeException This runtime exception is thrown to indicate that the open type of an open data value is not the one expected.KeyAlreadyExistsException This runtime exception is thrown to indicate that the index of a row to be added to a tabular data instance is already used to refer to another row in this tabular data instance.OpenDataException This checked exception is thrown when an open type, an open data or an open MBean metadata info instance could not be constructed because one or more validity constraints were not met.
Package javax.management.openmbean Description
Provides the open data types and Open MBean descriptor classes. An Open MBean is an MBean where the types of attributes and of operation parameters and return values are built using a small set of predefined Java classes. Open MBeans facilitate operation with remote management programs that do not necessarily have access to application-specific types, including non-Java programs.
Every MBean has an MBeanInfo
with information about the MBean itself, and its
attributes, operations, constructors, and notifications. In an
Open MBean, this MBeanInfo
implements the OpenMBeanInfo
interface, usually by being an instance of OpenMBeanInfoSupport
.
The attribute information returned by MBeanInfo.getAttributes
for an Open MBean is an array of
objects implementing OpenMBeanAttributeInfo
, usually instances of OpenMBeanAttributeInfoSupport
. In addition to the usual
information about attributes, an
OpenMBeanAttributeInfo
specifies the OpenType
of the attribute.
The possible OpenType
values are predefined, which
is what ensures that remote managers will understand them.
Similar remarks apply to the parameter types of operations and constructors, and to the return types of operations.
There is a distinction between an attribute's Java language
type, as returned by getType()
, and
its OpenType
, as returned by getOpenType()
. For example, if the Java language type is
java.lang.String
, the OpenType
will be
SimpleType.String
. If the Java language type is CompositeData
, the
OpenType
will be a CompositeType
that
describes the items in the CompositeData
instances
for the attribute.
Default values and constraints
In Open MBeans, attributes and parameters can have default values
and/or constraints associated with them in the OpenMBeanAttributeInfo
or OpenMBeanParameterInfo
.
There are two ways to specify these constraints. Either the
values are directly specified as parameters to one of the
constructors of OpenMBeanAttributeInfoSupport
or
OpenMBeanParameterInfoSupport
, for example
OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(
String, String, OpenType, Object, Object[])
; or the values are
specified in a Descriptor
given
as a parameter to one of the constructors.
When a Descriptor
is used, the fields of interest are
these:
defaultValue
defines the value returned bygetDefaultValue()
;minValue
defines the value returned bygetMinValue()
;maxValue
defines the value returned bygetMaxValue()
;legalValues
defines the values returned bygetLegalValues()
.
For defaultValue
, minValue
, and maxValue
, the associated value must either be of the Java type
corresponding to openType
, or be a string that can be
converted into that type. The conversion uses the static method
valueOf(String)
if it finds one; otherwise a constructor
with a single String
parameter if it finds one; otherwise
it fails.
For legalValues
, the associated value must be either
an array or a Set
, and the elements of the array or set
must be convertible as described for defaultValue
etc.
The following conditions must be met for these fields:
- the values must be of the appropriate type, or be strings that can be converted to the appropriate type as explained above;
- if
legalValues
is present then neitherminValue
normaxValue
must be present; - if
defaultValue
is present then it must satisfy the constraints defined bylegalValues
,minValue
, ormaxValue
when any of these is also present; - if
minValue
andmaxValue
are both present thenminValue
must not be greater thanmaxValue
.
- Since:
- 1.5
- See Also:
- Java Platform documentation on JMX technology, in particular the JMX Specification, version 1.4
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
05/11/2024 14:50:22 Cette version de la page est en cache (à la date du 05/11/2024 14:50:22) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 31/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/management/openmbean/package-summary.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.