- java.lang.Object
-
- javax.management.MBeanServerDelegate
-
- All Implemented Interfaces:
- MBeanServerDelegateMBean, NotificationBroadcaster, NotificationEmitter
public class MBeanServerDelegate extends Object implements MBeanServerDelegateMBean, NotificationEmitter
Represents the MBean server from the management point of view. The MBeanServerDelegate MBean emits the MBeanServerNotifications when an MBean is registered/unregistered in the MBean server.- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field and Description static ObjectName
DELEGATE_NAME
Defines the default ObjectName of the MBeanServerDelegate.
-
Constructor Summary
Constructors Constructor and Description MBeanServerDelegate()
Create a MBeanServerDelegate object.
-
Method Summary
Methods Modifier and Type Method and Description void
addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
Adds a listener to this MBean.String
getImplementationName()
Returns the JMX implementation name (the name of this product).String
getImplementationVendor()
Returns the JMX implementation vendor (the vendor of this product).String
getImplementationVersion()
Returns the JMX implementation version (the version of this product).String
getMBeanServerId()
Returns the MBean server agent identity.MBeanNotificationInfo[]
getNotificationInfo()
Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.String
getSpecificationName()
Returns the full name of the JMX specification implemented by this product.String
getSpecificationVendor()
Returns the vendor of the JMX specification implemented by this product.String
getSpecificationVersion()
Returns the version of the JMX specification implemented by this product.void
removeNotificationListener(NotificationListener listener)
Removes a listener from this MBean.void
removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
Removes a listener from this MBean.void
sendNotification(Notification notification)
Enables the MBean server to send a notification.
-
-
-
Field Detail
-
DELEGATE_NAME
public static final ObjectName DELEGATE_NAME
Defines the default ObjectName of the MBeanServerDelegate.- Since:
- 1.6
-
-
Constructor Detail
-
MBeanServerDelegate
public MBeanServerDelegate()
Create a MBeanServerDelegate object.
-
-
Method Detail
-
getMBeanServerId
public String getMBeanServerId()
Returns the MBean server agent identity.- Specified by:
getMBeanServerId
in interfaceMBeanServerDelegateMBean
- Returns:
- the identity.
-
getSpecificationName
public String getSpecificationName()
Returns the full name of the JMX specification implemented by this product.- Specified by:
getSpecificationName
in interfaceMBeanServerDelegateMBean
- Returns:
- the specification name.
-
getSpecificationVersion
public String getSpecificationVersion()
Returns the version of the JMX specification implemented by this product.- Specified by:
getSpecificationVersion
in interfaceMBeanServerDelegateMBean
- Returns:
- the specification version.
-
getSpecificationVendor
public String getSpecificationVendor()
Returns the vendor of the JMX specification implemented by this product.- Specified by:
getSpecificationVendor
in interfaceMBeanServerDelegateMBean
- Returns:
- the specification vendor.
-
getImplementationName
public String getImplementationName()
Returns the JMX implementation name (the name of this product).- Specified by:
getImplementationName
in interfaceMBeanServerDelegateMBean
- Returns:
- the implementation name.
-
getImplementationVersion
public String getImplementationVersion()
Returns the JMX implementation version (the version of this product).- Specified by:
getImplementationVersion
in interfaceMBeanServerDelegateMBean
- Returns:
- the implementation version.
-
getImplementationVendor
public String getImplementationVendor()
Returns the JMX implementation vendor (the vendor of this product).- Specified by:
getImplementationVendor
in interfaceMBeanServerDelegateMBean
- Returns:
- the implementation vendor.
-
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
Description copied from interface:NotificationBroadcaster
Returns an array indicating, for each notification this MBean may send, the name of the Java class of the notification and the notification type.
It is not illegal for the MBean to send notifications not described in this array. However, some clients of the MBean server may depend on the array being complete for their correct functioning.
- Specified by:
getNotificationInfo
in interfaceNotificationBroadcaster
- Returns:
- the array of possible notifications.
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
Description copied from interface:NotificationBroadcaster
Adds a listener to this MBean.- Specified by:
addNotificationListener
in interfaceNotificationBroadcaster
- Parameters:
listener
- The listener object which will handle the notifications emitted by the broadcaster.filter
- The filter object. If filter is null, no filtering will be performed before handling notifications.handback
- An opaque object to be sent back to the listener when a notification is emitted. This object cannot be used by the Notification broadcaster object. It should be resent unchanged with the notification to the listener.- Throws:
IllegalArgumentException
- Listener parameter is null.- See Also:
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
Description copied from interface:NotificationEmitter
Removes a listener from this MBean. The MBean must have a listener that exactly matches the given
listener
,filter
, andhandback
parameters. If there is more than one such listener, only one is removed.The
filter
andhandback
parameters may be null if and only if they are null in a listener to be removed.- Specified by:
removeNotificationListener
in interfaceNotificationEmitter
- Parameters:
listener
- A listener that was previously added to this MBean.filter
- The filter that was specified when the listener was added.handback
- The handback that was specified when the listener was added.- Throws:
ListenerNotFoundException
- The listener is not registered with the MBean, or it is not registered with the given filter and handback.
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
Description copied from interface:NotificationBroadcaster
Removes a listener from this MBean. If the listener has been registered with different handback objects or notification filters, all entries corresponding to the listener will be removed.- Specified by:
removeNotificationListener
in interfaceNotificationBroadcaster
- Parameters:
listener
- A listener that was previously added to this MBean.- Throws:
ListenerNotFoundException
- The listener is not registered with the MBean.- See Also:
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
,NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
-
sendNotification
public void sendNotification(Notification notification)
Enables the MBean server to send a notification. If the passed notification has a sequence number lesser or equal to 0, then replace it with the delegate's own sequence number.- Parameters:
notification
- The notification to send.
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/management/mbeanserverdelegate.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.