Codota Logo
EventBuilder.setDescription
Code IndexAdd Codota to your IDE (free)

How to use
setDescription
method
in
org.opennms.netmgt.model.events.EventBuilder

Best Java code snippets using org.opennms.netmgt.model.events.EventBuilder.setDescription (Showing top 2 results out of 315)

  • Common ways to obtain EventBuilder
private void myMethod () {
EventBuilder e =
  • Codota IconString uei;String str;new EventBuilder(uei, str)
  • Codota IconString uei;String source;new EventBuilder(uei, source)
  • Smart code suggestions by Codota
}
origin: OpenNMS/opennms

/**
 * Sends and event related to a notification
 *
 * @param uei
 *            the UEI for the event
 */
private void sendNotifEvent(String uei, String logMessage, String description) {
  try {
    EventBuilder bldr = new EventBuilder(uei, "notifd");
    bldr.setLogMessage(logMessage);
    bldr.setDescription(description);
    getEventManager().sendNow(bldr.getEvent());
  } catch (Throwable t) {
    LOG.error("Could not send event {}", uei, t);
  }
}
origin: OpenNMS/opennms

bldr.setDescription("High threshold exceeded for %service% datasource %parm[ds]% on interface %interface%, parms: %parm[all]%");
bldr.setLogMessage("High threshold exceeded for %service% datasource %parm[ds]% on interface %interface%, parms: %parm[all]%");
bldr.setNodeid(0);
org.opennms.netmgt.model.eventsEventBuildersetDescription

Javadoc

setDescription

Popular methods of EventBuilder

  • <init>
    Constructor for EventBuilder.
  • getEvent
  • addParam
  • setInterface
  • setNodeid
  • setTime
  • setService
  • setHost
  • setSeverity
  • setLogMessage
    setLogMessage
  • setIfIndex
  • setParam
    setParam
  • setIfIndex,
  • setParam,
  • setUei,
  • setAlarmData,
  • setDistPoller,
  • setField,
  • setIpInterface,
  • setLogDest,
  • setParms

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getSystemService (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • JList (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now