Package javax.management.timer

Examples of javax.management.timer.TimerNotification


   private static final QName NOTIFICATION_ID_QNAME = new QName("", NOTIFICATION_ID);

   protected void onSerialize(SerializationContext context, Notification notification) throws IOException
   {
      super.onSerialize(context, notification);
      TimerNotification serverNotification = (TimerNotification)notification;
      context.serialize(NOTIFICATION_ID_QNAME, null, serverNotification.getNotificationID());
   }
View Full Code Here


   //
   public void compareTimerNotification(Object o1, Object o2)
   {
      compareNotification(o1, o2);

      TimerNotification n1 = (TimerNotification)o1;
      TimerNotification n2 = (TimerNotification)o2;

      if (!n1.getNotificationID().equals(n2.getNotificationID())) throw new RuntimeException();
   }
View Full Code Here

                list);
        sendNotification(n);
    }

    public void triggerTimerNotification() {
        TimerNotification n = new TimerNotification("timer.notification", this, mSequence++, mTimestamp, "timer-notification", 100);
        sendNotification(n);
    }
View Full Code Here

                list);
        sendNotification(n);
    }

    public void triggerTimerNotification() {
        TimerNotification n = new TimerNotification("timer.notification", this, mSequence++, mTimestamp, "timer-notification", 100);
        sendNotification(n);
    }
View Full Code Here

           {
              seq = ++sequenceNumber;
           }

           log.debug("sendNotification: " + rn);
           TimerNotification tn = new TimerNotification(rn.type, objectName,
              seq, rn.nextDate, rn.message, rn.id);
           tn.setUserData(rn.userData);
           sendNotification(tn);
        }
        // Calculate the next date.
        // Except for when we are sending past notifications at start up,
        // it cannot be in the future.
View Full Code Here

    * Handle the notification, just add it to the list
    */
   public void handleNotification(Notification n, Object ignored)
   {
      notifications++;
      TimerNotification tn = (TimerNotification) n;
      if (timer.getNbOccurences(tn.getNotificationID()).longValue() == 1)
         synchronized(timerName)
         {
            timerName.notifyAll();
         }
   }
View Full Code Here

/*     */         {
/* 493 */           seq = ++this.sequenceNumber;
/*     */         }
/*     */
/* 496 */         log.debug("sendNotification: " + rn);
/* 497 */         TimerNotification tn = new TimerNotification(rn.type, this.objectName, seq, rn.nextDate, rn.message, rn.id);
/*     */
/* 499 */         tn.setUserData(rn.userData);
/* 500 */         sendNotification(tn);
/*     */       }
/*     */
/*     */       do
/*     */       {
View Full Code Here

TOP

Related Classes of javax.management.timer.TimerNotification

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.