Examples of Notification


Examples of fm.last.citrine.model.Notification

   * Tests that changing a TaskRun's status ends up with the expected number of notifications being sent.
   */
  @Test
  public void testSetTaskRunStatus() {
    Task task = new Task("name", "group", "");
    task.setNotification(new Notification());
    taskManager.save(task);
    TaskRun taskRun = new TaskRun(new Date(), new Date(), "out", "err", "stack", task.getId());
   
    int mailCount = 0;
    // no mail should be sent for following
View Full Code Here

Examples of fr.dyade.aaa.agent.Notification

   * is launched. Messages considered as undeliverable are removed and sent to
   * the DMQ.
   */
  protected void doUnknownAgent(UnknownAgent uA) {
    AgentId client = uA.agent;
    Notification not = uA.not;

    // If the notification is not a delivery, doing nothing.
    if (! (not instanceof QueueMsgReply))
      return;

View Full Code Here

Examples of fr.valhalla.mailcheck.gui.Notification

                if(account.hasNotifications() && kernel.withGUI()) {
                    int msgid = imap.countAllMessages() - 1; // arrays begin at 0
                    String from = imap.getFromAddress(msgid);
                    String subject = imap.getMessageSubject(msgid);
                    String datetime = imap.getMessageDate(msgid);
                    new Thread(new Notification(account.getAccountName(), from, datetime, subject)).start();
                }
            }

            System.out.println(   "\n----------["+ account.getAccountName() +"]----------\n"
                                + "| " + NewMessages + " nouveaux\n"
View Full Code Here

Examples of javax.management.Notification

   public void sendNotification(NotificationBroadcasterSupport source,
          String msg, String attributeName,
          String attributeType, Object oldValue, Object newValue) {
      // Avoid any log.warning or log.severe to prevent looping alert events
      if (isJmxActivated()) {
         Notification n = new AttributeChangeNotification(source,
            sequenceNumber++,
            System.currentTimeMillis(),
            msg,
            attributeName,
            attributeType,
View Full Code Here

Examples of javax.management.Notification

            {
               List notifications = server.pollNotificationListener(id);

               for(Iterator i = notifications.iterator(); i.hasNext(); )
               {
                  Notification n = (Notification)i.next();
                  listener.handleNotification(n, null);
               }

               Thread.sleep(POLL_INTERVAL);
            }
View Full Code Here

Examples of javax.management.Notification

      if (emitter == null)
         return;
     
      try
      {
         Notification notif = new Notification(event, spec, emitter.nextNotificationSequenceNumber());
         notif.setUserData(userData);
         emitter.sendNotification(notif);
      }
      catch (Throwable t)
      {
         log.warn("Error sending notification: " + event, t);
View Full Code Here

Examples of javax.management.Notification

    * will be automatically filled.
    */  
   protected void sendAlarmNotification(
      ObjectName target, String type, int severity, int alarmState, String message, Object userData)
   {
      Notification n = new AlarmNotification(
         type,
         mbeanImpl.getMBeanName(), // source
         target,
         severity,          
         alarmState,        
         this.mbeanImpl.getSequenceNumber(),
         System.currentTimeMillis(),
         message
      );
      n.setUserData(userData);
     
      // send it away
      mbeanImpl.emitNotification(n);
   }
View Full Code Here

Examples of javax.management.Notification

   public void sendAttributeChangeNotification(
      String type, String message, Object userData,
      String attributeName, String attributeType,
      Object oldValue, Object newValue)
   {
      Notification n = new AttributeChangeNotification(
         mbeanImpl.getMBeanName(), // source
         mbeanImpl.getSequenceNumber(),
         System.currentTimeMillis(),
         message,
         attributeName,
         attributeType,
         oldValue,
         newValue
      );
      n.setUserData(userData);
     
      // send it away
      mbeanImpl.emitNotification(n);
   }
View Full Code Here

Examples of javax.management.Notification

    * source, sequenceNumber, timeStamp
    * will be automatically filled in.
    */  
   public void sendNotification(String type, String message, Object userData)
   {
      Notification n = new Notification(
         type,
         mbeanImpl.getMBeanName(), // source
         mbeanImpl.getSequenceNumber(),
         System.currentTimeMillis(),
         message
      );
      n.setUserData(userData);
     
      // send it away
      mbeanImpl.emitNotification(n);
   }
View Full Code Here

Examples of javax.management.Notification

      sbuf.append("</tr>").append("\n");
     
      for (int i = 0; i <  tab.length; i++)
      {
         AlarmTableNotification atn = tab[i];
         Notification n = (Notification)atn.getUserData();
         Object source = AlarmNotification.getEffectiveSource(n);
        
         sbuf.append("<tr>");
         sbuf.append("<td>")
            .append("alarmId: ").append(atn.getAlarmId()).append("<br><br>")
            .append("severity: ").append(AlarmHelper.getSeverityAsString(atn.getSeverity())).append("<br>")
            .append("alarmState: ").append(AlarmHelper.getStateAsString(atn.getAlarmState())).append("<br><br>")
            .append("ackState: ").append(atn.getAckState()).append("<br><br>")
            .append("ackTime: ").append(atn.getAckTime()).append("<br>")
            .append("ackUser: ").append(atn.getAckUser()).append("<br>")
            .append("ackSystem: ").append(atn.getAckSystem()).append("</td>");        
         sbuf.append("<td>")
            .append("source: ").append(source).append("<br>")
            .append("type: ").append(n.getType()).append("<br>")
            .append("timeStamp: ").append(n.getTimeStamp()).append("<br>")
            .append("sequenceNumber: ").append(n.getSequenceNumber()).append("<br><br>")
            .append("message: ").append(substNewLines(n.getMessage())).append("<br><br>")
            .append("userData: ").append(substNewLines(n.getUserData())).append("</td>");
         sbuf.append("</tr>").append("\n");
      }
      sbuf.append("</table>").append("\n");
     
      return sbuf.toString();
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.