Methods Summary |
---|
public void | addNotifType(java.lang.String notifType)Add a new notification type to the set managed by an MBean.
synchronized (notifTypes) {
String results[] = new String[notifTypes.length + 1];
System.arraycopy(notifTypes, 0, results, 0, notifTypes.length);
results[notifTypes.length] = notifType;
notifTypes = results;
this.info = null;
}
|
public javax.management.MBeanNotificationInfo | createNotificationInfo()Create and return a ModelMBeanNotificationInfo object that
corresponds to the attribute described by this instance.
// Return our cached information (if any)
if (info != null)
return (info);
// Create and return a new information object
info = new MBeanNotificationInfo
(getNotifTypes(), getName(), getDescription());
//Descriptor descriptor = info.getDescriptor();
//addFields(descriptor);
//info.setDescriptor(descriptor);
return (info);
|
public java.lang.String[] | getNotifTypes()The set of notification types for this MBean.
return (this.notifTypes);
|
public void | setDescription(java.lang.String description)Override the description property setter.
// ------------------------------------------------------------- Properties
super.setDescription(description);
this.info = null;
|
public void | setName(java.lang.String name)Override the name property setter.
super.setName(name);
this.info = null;
|
public java.lang.String | toString()Return a string representation of this notification descriptor.
StringBuffer sb = new StringBuffer("NotificationInfo[");
sb.append("name=");
sb.append(name);
sb.append(", description=");
sb.append(description);
sb.append(", notifTypes=");
sb.append(notifTypes.length);
sb.append("]");
return (sb.toString());
|