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

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

Best Java code snippets using org.opennms.netmgt.model.events.EventBuilder.setIfIndex (Showing top 4 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

  LOG.error("cannot parse json object ipaddr="+ipaddr,e);
if (ifindex!=null) eb.setIfIndex(Integer.parseInt(ifindex));
origin: OpenNMS/opennms

private static EventBuilder createInterfaceEventBuilder(String uei, String source, long nodeId, String ipAddr, int ifIndex, long txNo) {
  EventBuilder bldr = new EventBuilder(uei, source);
  
  if (ipAddr != null && ipAddr.length() != 0) {
    bldr.setInterface(addr(ipAddr));
  }
  
  bldr.setNodeid(nodeId);
  if (ifIndex != -1) {
    bldr.setIfIndex(ifIndex);
  }
  bldr.addParam(EventConstants.PARM_TRANSACTION_NO, txNo);
  return bldr;
}
origin: OpenNMS/opennms

eventBuilder.addParam(SyntaxToEvent.processSyntax(name.toString(), value));
if (EventConstants.OID_SNMP_IFINDEX.isPrefixOf(name)) {
  eventBuilder.setIfIndex(value.toInt());
origin: org.opennms.features.events/org.opennms.features.events.traps

eventBuilder.addParam(SyntaxToEvent.processSyntax(name.toString(), value));
if (EventConstants.OID_SNMP_IFINDEX.isPrefixOf(name)) {
  eventBuilder.setIfIndex(value.toInt());
org.opennms.netmgt.model.eventsEventBuildersetIfIndex

Javadoc

setInterface

Popular methods of EventBuilder

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

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • 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