Examples of Notification


Examples of org.graylog2.notifications.Notification

            LOG.debug("Version check reports current version: " + parsedResponse);

            if (reportedVersion.greaterMinor(ServerVersion.VERSION)) {
                LOG.debug("Reported version is higher than ours ({}). Writing notification.", ServerVersion.VERSION);

                Notification notification = notificationService.buildNow()
                        .addSeverity(Notification.Severity.NORMAL)
                        .addType(Notification.Type.OUTDATED_VERSION)
                        .addDetail("current_version", parsedResponse.toString());
                notificationService.publishIfFirst(notification);
            } else {
View Full Code Here

Examples of org.hornetq.core.server.management.Notification

         if (filterString != null)
         {
            props.putSimpleStringProperty(ManagementHelper.HDR_FILTERSTRING, filterString);
         }

         Notification notification = new Notification(null, CONSUMER_CREATED, props);

         managementService.sendNotification(notification);
      }
   }
View Full Code Here

Examples of org.hoteia.qalingo.core.domain.Notification

  private final Logger logger = LoggerFactory.getLogger(getClass());

  public Notification getNotificationById(final Long notificationId, Object... params) {
        Criteria criteria = createDefaultCriteria(Notification.class);
        criteria.add(Restrictions.eq("id", notificationId));
        Notification notification = (Notification) criteria.uniqueResult();
        return notification;
  }
View Full Code Here

Examples of org.intalio.tempo.workflow.task.Notification

  Task getRandomSampleTask() throws Exception {
    String id = "id_" + (ID_COUNTER++);
    URI uri = new URI("http://hellonico.net");
    switch (type) {
    case NOTIFICATION:
      return new Notification(id, uri, xml.parseXML("<hello/>"));
    case PIPA:
      return new PIPATask(id, uri, uri, uri, "initOperationSOAPAction");
    case PA:
      return new PATask(id, new URI("http://hellonico.net"), "processId",
          "soap", xml.parseXML("<hello/>"));
    default:
      int rand = random.nextInt(3);
      switch (rand) {
      case 0:
        return new PATask(id, new URI("http://hellonico.net"),
            "processId", "soap", xml.parseXML("<hello/>"));
      case 1:
        return new PIPATask(id, uri, uri, uri,
            "initOperationSOAPAction");
      default:
        return new Notification(id, uri, xml.parseXML("<hello/>"));
      }
    }
  }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.Notification

            public void handle(final Buffer buffer) {
                try {
                    final String endpointToken = request.params().get("endpoint");
                    final String payload = buffer.toString();
                    logger.info("Notification endpointToken  [" + endpointToken + "] " + payload);
                    final Notification notification = simplePushServer.handleNotification(endpointToken, payload);
                    final NotificationMessage notificationMessage = new NotificationMessageImpl(notification.ack());
                    vertx.eventBus().send(writeHandlerMap.get(notification.uaid()), new Buffer(toJson(notificationMessage)));
                    request.response().setStatusCode(200);
                    request.response().end();
                } catch (final Exception e) {
                    logger.error(e);
                    request.response().setStatusCode(400);
View Full Code Here

Examples of org.jbpm.task.Notification

   
    public static List<Notification> readNotificationList(ObjectInput in) throws IOException, ClassNotFoundException  {
        int size = in.readInt();
        List<Notification> list = new ArrayList<Notification>(size);
        for ( int i = 0; i < size; i++ ) {
            Notification item = null;
            switch( NotificationType.valueOfin.readUTF() ) ) {
                case Default : {
                    item = new Notification();
                    break;
                }
                case Email : {
                    item = new EmailNotification();
                    break;
                }
            }
            
            item.readExternal( in );
            list.add( item );
        }
        return list;
    }    
View Full Code Here

Examples of org.mule.munit.runner.mule.result.notification.Notification

        out.flush();
    }

    public void notify(TestResult testResult)
    {
        Notification notification = null;
        if (testResult.getNumberOfErrors() > 0)
        {
            out.println("ERROR - The test " + testResult.getTestName() + " finished with an Error.");
            out.flush();
            notification = testResult.getError();
        }
        else if (testResult.getFailure() != null)
        {
            out.println("FAILURE - The test " + testResult.getTestName() + " finished with a Failure.");
            out.flush();
            notification = testResult.getFailure();
        }

        if (notification != null)
        {
            out.println(notification.getShortMessage());

            if (debugMode)
            {
                out.println(notification.getFullMessage());
            }
            out.flush();
        }
        else if (testResult.isSkipped())
        {
View Full Code Here

Examples of org.oasis_open.docs.ws_tx.wsat._2006._06.Notification

    public void commitOperation(
        @WebParam(name = "Commit", targetNamespace = "http://docs.oasis-open.org/ws-tx/wsat/2006/06", partName = "parameters")
        Notification parameters)
    {
        MessageContext ctx = webServiceCtx.getMessageContext();
        final Notification commit = parameters;
        final AddressingProperties inboundAddressProperties
            = (AddressingProperties)ctx.get(JAXWSAConstants.SERVER_ADDRESSING_PROPERTIES_INBOUND);
        final ArjunaContext arjunaContext = ArjunaContext.getCurrentContext(ctx);

        TaskManager.getManager().queueTask(new Task() {
View Full Code Here

Examples of org.ogce.expbuilder.model.Notification

        try{
        statement = connection.prepareStatement(ExperimentBuilderConstants.MONITORING_SQL);
        statement.setString(1, "%" + workflowID + "%");
        results = statement.executeQuery();
       while (results.next()) {
         Notification notif = new Notification();
         notif.setWorkflowId(results.getString("templateId"));
          notif.setTemplateId(results.getString("templateId"));
         notif.setStatus(results.getString("status"));
         long startTime = results.getLong("startTime");
        if(startTime != 0){
          notif.setStartTime(new Date(startTime));
      }
          long endTime = results.getLong("endTime");
          if(endTime != 0){
            notif.setEndTime(new Date(endTime));
          }
          notifs.add(notif);
         }
        } catch (Exception e) {
            log.error("Failed to query for experiment (notifications)" + e.getMessage(), e);
View Full Code Here

Examples of org.openide.awt.Notification

        /**
         * Show message with the specified type and action listener
         */
        public static void show(String title, String message, MessageType type, ActionListener actionListener) {
            Notification newNotification =
                    NotificationDisplayer.getDefault().notify(title, type.getIcon(), message, actionListener);
            notifications.add(newNotification);
        }
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.