站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

MBeanServerNotification (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management
Class MBeanServerNotification

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.management.Notification
          extended byjavax.management.MBeanServerNotification
All Implemented Interfaces:
Serializable

public class MBeanServerNotification
extends Notification

A notification sent by the MBeanServer delegate when an MBean is registered or unregisterd.

NOTE: The values from the spec are wrong, the real values are REGISTRATION_NOTIFICATION = "JMX.mbean.registered" UNREGISTRATION_NOTIFICATION = "JMX.mbean.registered"

Revisions:

20020315 Adrian Brock:

20020711 Adrian Brock:

  • Serialization

Version:
$Revision: 1.5 $
Author:
Adrian Brock.
See Also:
Serialized Form

Field Summary
static String REGISTRATION_NOTIFICATION
          Notification type sent at MBean registration
static String UNREGISTRATION_NOTIFICATION
          Notification type sent at MBean registration
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MBeanServerNotification(String type, Object source, long sequence, ObjectName objectName)
          Construct a new MBeanServer notification
 
Method Summary
 ObjectName getMBeanName()
          Get the object name of the mbean being (un)registered
 String toString()
           
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getSource, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGISTRATION_NOTIFICATION

public static final String REGISTRATION_NOTIFICATION
Notification type sent at MBean registration

See Also:
Constant Field Values

UNREGISTRATION_NOTIFICATION

public static final String UNREGISTRATION_NOTIFICATION
Notification type sent at MBean registration

See Also:
Constant Field Values
Constructor Detail

MBeanServerNotification

public MBeanServerNotification(String type,
                               Object source,
                               long sequence,
                               ObjectName objectName)
Construct a new MBeanServer notification

Parameters:
type - the type of notification to construct
source - the source of the notification
sequence - the sequence number of the notification
objectName - the object name of the mbean being (un)registered
Method Detail

getMBeanName

public ObjectName getMBeanName()
Get the object name of the mbean being (un)registered

Returns:
the object name

toString

public String toString()
Overrides:
toString in class Notification
Returns:
human readable string.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.