Package org.glassfish.admin.amx.util.jmx

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


            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

    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

            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

            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

Related Classes of org.glassfish.admin.amx.util.jmx.AttributeChangeNotificationBuilder

Copyright © 2018 www.massapicom. 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.