Examples of addAlert()


Examples of com.dianping.cat.home.alert.summary.entity.Category.addAlert()

    }

    Collection<com.dianping.cat.home.alert.summary.entity.Alert> alerts = convertToAlert(edges, date);
    Iterator<com.dianping.cat.home.alert.summary.entity.Alert> it = alerts.iterator();
    while (it.hasNext()) {
      category.addAlert(it.next());
    }

    return category;
  }
View Full Code Here

Examples of com.dianping.cat.report.task.alert.sender.AlertManager.addAlert()

    AlertEntity entity = new AlertEntity();
    entity.setDate(new Date()).setContent("test").setLevel("error");
    entity.setMetric("testMetric").setType(AlertType.Network.getName()).setGroup("testGroup");

    try {
      manager.addAlert(entity);
      TimeUnit.SECONDS.sleep(1);
    } catch (Exception ex) {

    }
View Full Code Here

Examples of com.subgraph.vega.api.model.alerts.IScanInstance.addAlert()

      }
      for (String hl: caseInsensitiveRegexHighlights) {
        alert.addRegexCaseInsensitiveHighlight(hl);
      }

      scan.addAlert(alert);
    }
  }
 
  public List<String> getFileExtensionList() {
    return scanState.getFileExtensionList();
View Full Code Here

Examples of com.subgraph.vega.ui.scanner.alerts.IAlertTreeNode.addAlert()

  @Override
  public void addAlert(IScanAlert alert) {
    final IAlertTreeNode node = getNodeForAlert(alert);
    if(node != null) {
      node.addAlert(alert);
    }
  }
 
  @Override
  public void removeAlert(IScanAlert alert) {
View Full Code Here

Examples of org.apache.helix.api.accessor.ClusterAccessor.addAlert()

  void addAlert(String[] optValues) {
    String clusterName = optValues[0];
    String alertName = optValues[1];
    ClusterAccessor accessor = clusterAccessor(clusterName);
    accessor.addAlert(alertName);
  }

  void dropAlert(String[] optValues) {
    String clusterName = optValues[0];
    String alertName = optValues[1];
View Full Code Here

Examples of org.criticalfailure.torchlight.core.application.services.AlertService.addAlert()

          logger.error("Unable to save campaign: " + c + ": " + e.getLocalizedMessage(), e);
         
          AlertService alertService = (AlertService)ServiceUtils.getService(bundleContext, AlertService.class.getName());
          logger.trace("alertService: " + alertService);
         
          alertService.addAlert(new Alert(Alert.Type.ERROR, "campaign.editor", Messages.getString("campaign.editor.save.error.message") + ": " + e.getLocalizedMessage()));
         
          // notify user
          MessageDialog.openError(getEditorSite().getShell(), Messages.getString("campaign.editor.save.error.title"), Messages.getString("campaign.editor.save.error.message") + ": " + e.getLocalizedMessage());
    }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.application.services.AlertService.addAlert()

            catch(DataAccessException e) {
                logger.error("Exception while getting versions: " + e.getLocalizedMessage(), e);

                // add error to Alerts
                AlertService alertService = (AlertService)ServiceUtils.getService(bundleContext, AlertService.class.getName());
                alertService.addAlert(new Alert(Alert.Type.ERROR, "campaign.editor", e.getLocalizedMessage()));
            }
            version.addSelectionListener(new SelectionListener() {
                public void widgetDefaultSelected(SelectionEvent e) {
                    widgetSelected(e);
                }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.application.services.AlertService.addAlert()

            catch(DataAccessException e) {
                logger.error("Exception while getting settings: " + e.getLocalizedMessage(), e);

                // add error to Alerts
                AlertService alertService = (AlertService)ServiceUtils.getService(bundleContext, AlertService.class.getName());
                alertService.addAlert(new Alert(Alert.Type.ERROR, "campaign.editor", e.getLocalizedMessage()));
            }
            setting.addSelectionListener(new SelectionListener() {
                public void widgetDefaultSelected(SelectionEvent e) {
                    widgetSelected(e);
                }
View Full Code Here

Examples of org.jmanage.core.config.ApplicationConfig.addAlert()

            alertConfig = new AlertConfig(AlertConfig.getNextAlertId(),
                    form.getAlertName(),
                    form.getAlertDelivery(),
                    form.getEmailAddress());
            alertConfig.setAlertSourceConfig(getAlertSourceConfig(context,form));
            appConfig.addAlert(alertConfig);
        }else{
            alertConfig = appConfig.findAlertById(form.getAlertId());
            alertConfig.setAlertName(form.getAlertName());
            alertConfig.setAlertDelivery(form.getAlertDelivery());
            if(form.getEmailAddress()!=null){
View Full Code Here

Examples of org.parosproxy.paros.model.HistoryReference.addAlert()

        // If the hRef has been created before msg gets updated then
        // the alerts wont have been stored in the db, so double check
        // and add in if missing
        // TODO of course this wont help if the href doesnt exist...
        alert.setSourceHistoryId(hRef.getHistoryId());
        hRef.addAlert(alert);
        extHist.getHistoryList().notifyItemChanged(hRef);
      }
        // Raise the alert
      extScan.alertFound(alert);
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.