Examples of buildNew()


Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

    final NotificationBuilder  builder  =
      new NotificationBuilder( testEmitListener.TEST_TYPE, TEST_SOURCE );
   
    final testEmitListener  listener  = new testEmitListener();
    nes.addNotificationListener( listener, null, null);
    final Notification  notif  = builder.buildNew( TEST_MESSAGE);
    builder.putMapData( notif, TEST_KEY, TEST_VALUE );
   
    // call emitNotification() and verify it was emitted
    nes.emitNotification( notif );
    while( listener.getLast() == null )
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

    listener.clear();
    long  start  = now();
    final int  ITER  = 200;
    for( int i = 0; i < ITER; ++i)
    {
      final Notification  temp  = builder.buildNew( TEST_MESSAGE);
        builder.putMapData( notif, TEST_KEY, TEST_VALUE );
      nes.emitNotification( temp );
    }
    printElapsedIter( "Emitted Notifications", start, ITER );
    start  = now();
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

  issueDeploymentStartedNotification( final Object deployID )
  {
    final NotificationBuilder  builder  =
      getNotificationBuilder( DEPLOYMENT_STARTED_NOTIFICATION_TYPE );
   
    final Notification  notif  = builder.buildNew( );
    builder.putMapData( notif, NOTIF_DEPLOYMENT_ID_KEY, (Serializable)deployID );
   
    issueNotification( deployID, notif );
  }
 
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

    final DeploymentStatus  deploymentStatus )
  {
    final NotificationBuilder  builder  =
      getNotificationBuilder( DEPLOYMENT_COMPLETED_NOTIFICATION_TYPE );
   
    final Notification  notif  = builder.buildNew( );
    builder.putMapData( notif, NOTIF_DEPLOYMENT_ID_KEY, (Serializable)deployID );
    builder.putMapData( notif, NOTIF_DEPLOYMENT_COMPLETED_STATUS_KEY, (Serializable)deploymentStatus.asMap() );
   
    issueNotification( deployID, notif );
  }
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

    final DeploymentProgress  progress)
  {
    final NotificationBuilder  builder  =
      getNotificationBuilder( DEPLOYMENT_PROGRESS_NOTIFICATION_TYPE );
   
    final Notification  notif  = builder.buildNew( );
    builder.putMapData( notif, NOTIF_DEPLOYMENT_ID_KEY, (Serializable)deployID );
    builder.putMapData( notif, NOTIF_DEPLOYMENT_PROGRESS_KEY, (Serializable)progress.asMap() );
   
    issueNotification( deployID, notif );
  }
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

    final Serializable  value)
  {
    final NotificationBuilder  builder  =
      getNotificationBuilder( notificationType );
     
    final Notification  notif  = builder.buildNew( message );
    NotificationBuilder.putMapData( notif, key, value );
     
    sendNotification( notif );
  }
 
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

  issueDeploymentAbortedNotification( final Object deployID )
  {
    final NotificationBuilder  builder  =
      getNotificationBuilder( DEPLOYMENT_ABORTED_NOTIFICATION_TYPE );
   
    final Notification  notif  = builder.buildNew( );
    builder.putMapData( notif, NOTIF_DEPLOYMENT_ID_KEY, (Serializable)deployID );
   
    issueNotification( deployID, notif );
  }
View Full Code Here

Examples of com.sun.appserv.management.util.jmx.NotificationBuilder.buildNew()

         
      final long start    = System.currentTimeMillis();
     
      for( int i = 0; i < howMany; ++i )
      {
          final Notification  notif = builder.buildNew( "test Notification" );
         
          sendNotification( notif );
      }
     
      final long elapsed = System.currentTimeMillis() - start;
View Full Code Here

Examples of org.glassfish.admin.amx.util.jmx.NotificationBuilder.buildNew()

            final String key,
            final Serializable value) {
        final NotificationBuilder builder =
                getNotificationBuilder(notificationType);

        final Notification notif = builder.buildNew(message);
        NotificationBuilder.putMapData(notif, key, value);

        sendNotification(notif);
    }
View Full Code Here

Examples of org.glassfish.admin.amx.util.jmx.NotificationBuilder.buildNew()

            final String key,
            final Serializable value) {
        final NotificationBuilder builder =
                getNotificationBuilder(notificationType);

        final Notification notif = builder.buildNew(message);
        NotificationBuilder.putMapData(notif, key, value);

        sendNotification(notif);
    }
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.