Examples of AttributeChangeNotificationBuilder


Examples of com.sun.appserv.management.util.jmx.AttributeChangeNotificationBuilder

  {
    NotificationBuilder  builder  = null;
   
    if ( notificationType.equals( AttributeChangeNotification.ATTRIBUTE_CHANGE ) )
    {
      builder  = new AttributeChangeNotificationBuilder( getObjectName() );
    }
    else
    {
      builder  = new NotificationBuilder( notificationType, getObjectName() );
    }
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.AttributeChangeNotificationBuilder

    final String  msg,
    final String  attrType,
    final Object  oldValue,
    final Attribute  newAttr)
  {
    final AttributeChangeNotificationBuilder builder  =
    (AttributeChangeNotificationBuilder)
      getNotificationBuilder( AttributeChangeNotification.ATTRIBUTE_CHANGE );
   
    final AttributeChangeNotification  n  =
      builder.buildAttributeChange( msg, newAttr.getName(), attrType, oldValue, newAttr.getValue() );
     
    sendNotification( n );
  }
View Full Code Here

Examples of org.glassfish.admin.amx.util.jmx.AttributeChangeNotificationBuilder

    protected NotificationBuilder createNotificationBuilder(final String notificationType) {
        NotificationBuilder builder = null;

        if (notificationType.equals(AttributeChangeNotification.ATTRIBUTE_CHANGE)) {
            builder = new AttributeChangeNotificationBuilder(getObjectName());
        } else {
            builder = new NotificationBuilder(notificationType, getObjectName());
        }

        return (builder);
View Full Code Here

Examples of org.glassfish.admin.amx.util.jmx.AttributeChangeNotificationBuilder

            final Object newValue) {
        //
        // do not send a Notification when nothing has changed
        //
        if (oldValue != null && !oldValue.equals(newValue)) {
            final AttributeChangeNotificationBuilder builder =
                    (AttributeChangeNotificationBuilder) getNotificationBuilder(AttributeChangeNotification.ATTRIBUTE_CHANGE);

            final AttributeChangeNotification n =
                    builder.buildAttributeChange(msg, name, attrType, when, oldValue, newValue);

            System.out.println("AttributeChangeNotification: " + AttributeChangeNotificationStringifier.DEFAULT.stringify(n));
            sendNotification(n);
        }
    }
View Full Code Here

Examples of org.glassfish.admin.amx.util.jmx.AttributeChangeNotificationBuilder

    protected NotificationBuilder createNotificationBuilder(final String notificationType) {
        NotificationBuilder builder = null;

        if (notificationType.equals(AttributeChangeNotification.ATTRIBUTE_CHANGE)) {
            builder = new AttributeChangeNotificationBuilder(getObjectName());
        } else {
            builder = new NotificationBuilder(notificationType, getObjectName());
        }

        return (builder);
View Full Code Here

Examples of org.glassfish.admin.amx.util.jmx.AttributeChangeNotificationBuilder

            final Object newValue) {
        //
        // do not send a Notification when nothing has changed
        //
        if (oldValue != null && !oldValue.equals(newValue)) {
            final AttributeChangeNotificationBuilder builder =
                    (AttributeChangeNotificationBuilder) getNotificationBuilder(AttributeChangeNotification.ATTRIBUTE_CHANGE);

            final AttributeChangeNotification n =
                    builder.buildAttributeChange(msg, name, attrType, when, oldValue, newValue);

            //System.out.println("AttributeChangeNotification: " + AttributeChangeNotificationStringifier.DEFAULT.stringify(n));
            logger.log(Level.INFO, AMXLoggerInfo.attributeChangeNotification, AttributeChangeNotificationStringifier.DEFAULT.stringify(n));
            sendNotification(n);
        }
View Full Code Here

Examples of org.glassfish.admin.amx.util.jmx.AttributeChangeNotificationBuilder

            final Object newValue) {
        //
        // do not send a Notification when nothing has changed
        //
        if (oldValue != null && !oldValue.equals(newValue)) {
            final AttributeChangeNotificationBuilder builder =
                    (AttributeChangeNotificationBuilder) getNotificationBuilder(AttributeChangeNotification.ATTRIBUTE_CHANGE);

            final AttributeChangeNotification n =
                    builder.buildAttributeChange(msg, name, attrType, when, oldValue, newValue);

            //System.out.println("AttributeChangeNotification: " + AttributeChangeNotificationStringifier.DEFAULT.stringify(n));
            logger.log(Level.INFO,"amx.AttributeChangeNotification", AttributeChangeNotificationStringifier.DEFAULT.stringify(n));
            sendNotification(n);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.