org.opennms.netmgt.xml.event.Event.setParmCollection()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(130)

本文整理了Java中org.opennms.netmgt.xml.event.Event.setParmCollection()方法的一些代码示例,展示了Event.setParmCollection()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.setParmCollection()方法的具体详情如下:
包路径:org.opennms.netmgt.xml.event.Event
类名称:Event
方法名:setParmCollection

Event.setParmCollection介绍

暂无

代码示例

代码示例来源:origin: OpenNMS/opennms

/**
 * <p>setParms</p>
 *
 * @param parms a list of parameters.
 * @return the event builder
 */
public EventBuilder setParms(final List<Parm> parms) {
  m_event.setParmCollection(parms);
  return this;
}

代码示例来源:origin: OpenNMS/opennms

private Event createEventWithParms(String uei, List<Parm> parms) {
  Event e = MockEventUtil.createEventBuilder("Automation", uei).getEvent();
  e.setHost("localhost");
  
  e.setParmCollection(parms);
  Logmsg logmsg = new Logmsg();
  logmsg.setContent("Testing Passive Status Keeper with down status");
  e.setLogmsg(logmsg);
  return e;
}

代码示例来源:origin: OpenNMS/opennms

private Event createEventWithParms(String uei, List<Parm> parms) {
  Event e = MockEventUtil.createEventBuilder("Test", uei).getEvent();
  e.setHost("localhost");
  
  e.setParmCollection(parms);
  Logmsg logmsg = new Logmsg();
  logmsg.setContent("Testing Passive Status Keeper with down status");
  e.setLogmsg(logmsg);
  return e;
}

代码示例来源:origin: OpenNMS/opennms

teWithNullParms.setParmCollection(null);
assertTrue(m_config.translateEvent(teWithNullParms).isEmpty());
teWithNoParms.setParmCollection(new ArrayList<Parm>());
assertTrue(m_config.translateEvent(teWithNoParms).isEmpty());

代码示例来源:origin: OpenNMS/opennms

teWithNullParms.setParmCollection(null);
assertTrue(m_config.translateEvent(teWithNullParms).isEmpty());
teWithNoParms.setParmCollection(new ArrayList<Parm>());
assertTrue(m_config.translateEvent(teWithNoParms).isEmpty());

代码示例来源:origin: OpenNMS/opennms

parmColl.add(parm);
event.setParmCollection(parmColl);

代码示例来源:origin: org.opennms.plugins/opennms-es-rest.main-module

parmColl.add(parm);
event.setParmCollection(parmColl);

代码示例来源:origin: org.opennms.features/org.opennms.features.opennms-es-rest

parmColl.add(parm);
event.setParmCollection(parmColl);

代码示例来源:origin: OpenNMS/opennms

e.setParmCollection(new ArrayList<>(econf.getParameters().size()));

代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon

e.setParmCollection(new ArrayList<>(econf.getParameters().size()));

相关文章