本文整理了Java中org.opennms.netmgt.xml.event.Event.setParmCollection()
方法的一些代码示例,展示了Event.setParmCollection()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.setParmCollection()
方法的具体详情如下:
包路径:org.opennms.netmgt.xml.event.Event
类名称: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()));
内容来源于网络,如有侵权,请联系作者删除!