-
- All Known Subinterfaces:
- ModelMBean
- All Known Implementing Classes:
- RequiredModelMBean, StandardEmitterMBean, StandardMBean
public interface DynamicMBean
Defines the methods that should be implemented by a Dynamic MBean (MBean that exposes a dynamic management interface).- Since:
- 1.5
-
-
Method Summary
Methods Modifier and Type Method and Description Object
getAttribute(String attribute)
Obtain the value of a specific attribute of the Dynamic MBean.AttributeList
getAttributes(String[] attributes)
Get the values of several attributes of the Dynamic MBean.MBeanInfo
getMBeanInfo()
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.Object
invoke(String actionName, Object[] params, String[] signature)
Allows an action to be invoked on the Dynamic MBean.void
setAttribute(Attribute attribute)
Set the value of a specific attribute of the Dynamic MBean.AttributeList
setAttributes(AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean.
-
-
-
Method Detail
-
getAttribute
Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
Obtain the value of a specific attribute of the Dynamic MBean.- Parameters:
attribute
- The name of the attribute to be retrieved- Returns:
- The value of the attribute retrieved.
- Throws:
AttributeNotFoundException
MBeanException
- Wraps ajava.lang.Exception
thrown by the MBean's getter.ReflectionException
- Wraps ajava.lang.Exception
thrown while trying to invoke the getter.- See Also:
setAttribute(javax.management.Attribute)
-
setAttribute
void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
Set the value of a specific attribute of the Dynamic MBean.- Parameters:
attribute
- The identification of the attribute to be set and the value it is to be set to.- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
- Wraps ajava.lang.Exception
thrown by the MBean's setter.ReflectionException
- Wraps ajava.lang.Exception
thrown while trying to invoke the MBean's setter.- See Also:
getAttribute(java.lang.String)
-
getAttributes
AttributeList getAttributes(String[] attributes)
Get the values of several attributes of the Dynamic MBean.- Parameters:
attributes
- A list of the attributes to be retrieved.- Returns:
- The list of attributes retrieved.
- See Also:
setAttributes(javax.management.AttributeList)
-
setAttributes
AttributeList setAttributes(AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean.- Parameters:
attributes
- A list of attributes: The identification of the attributes to be set and the values they are to be set to.- Returns:
- The list of attributes that were set, with their new values.
- See Also:
getAttributes(java.lang.String[])
-
invoke
Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
Allows an action to be invoked on the Dynamic MBean.- Parameters:
actionName
- The name of the action to be invoked.params
- An array containing the parameters to be set when the action is invoked.signature
- An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.- Returns:
- The object returned by the action, which represents the result of invoking the action on the MBean specified.
- Throws:
MBeanException
- Wraps ajava.lang.Exception
thrown by the MBean's invoked method.ReflectionException
- Wraps ajava.lang.Exception
thrown while trying to invoke the method
-
getMBeanInfo
MBeanInfo getMBeanInfo()
Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.- Returns:
- An instance of
MBeanInfo
allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.
-
-
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
21/11/2024 22:00:53 Cette version de la page est en cache (à la date du 21/11/2024 22:00:53) 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/dynamicmbean.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.