本文整理了Java中org.opennms.netmgt.xml.event.Event.setLogmsg()
方法的一些代码示例,展示了Event.setLogmsg()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.setLogmsg()
方法的具体详情如下:
包路径:org.opennms.netmgt.xml.event.Event
类名称:Event
方法名:setLogmsg
[英]Sets the value of field 'logmsg'. The field 'logmsg' has the following description: The event logmsg
[中]设置字段“logmsg”的值。字段“logmsg”具有以下描述:事件logmsg
代码示例来源:origin: OpenNMS/opennms
private void ensureLogmsg() {
if (m_event.getLogmsg() == null) {
m_event.setLogmsg(new Logmsg());
}
}
代码示例来源: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
final Logmsg logmsg = new Logmsg();
logmsg.setContent(onmsEvent.getEventLogMsg());
event.setLogmsg(logmsg );
代码示例来源:origin: org.opennms.plugins/opennms-es-rest.main-module
Logmsg logmsg = new Logmsg();
logmsg.setContent(onmsEvent.getEventLogMsg());
event.setLogmsg(logmsg );
代码示例来源:origin: org.opennms.features/org.opennms.features.opennms-es-rest
final Logmsg logmsg = new Logmsg();
logmsg.setContent(onmsEvent.getEventLogMsg());
event.setLogmsg(logmsg );
代码示例来源:origin: OpenNMS/opennms
e.setLogmsg(null);
e.setLogmsg(transform(econf.getLogmsg()));
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
e.setLogmsg(null);
e.setLogmsg(transform(econf.getLogmsg()));
代码示例来源:origin: OpenNMS/opennms
Logmsg msg = new Logmsg();
msg.setContent(alarm.getLogMsg());
event.setLogmsg(msg);
内容来源于网络,如有侵权,请联系作者删除!