本文整理了Java中org.opennms.netmgt.xml.event.Events.setEvent()
方法的一些代码示例,展示了Events.setEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Events.setEvent()
方法的具体详情如下:
包路径:org.opennms.netmgt.xml.event.Events
类名称:Events
方法名:setEvent
暂无
代码示例来源:origin: OpenNMS/opennms
private Log createLog(List<Event> eventList) {
final Header header = new Header();
header.setCreated(StringUtils.toStringEfficiently(new Date()));
final Events events = new Events();
events.setEvent(eventList);
final Log log = new Log();
log.setEvents(events);
log.setHeader(header);
return log;
}
代码示例来源:origin: org.opennms.features/org.opennms.features.opennms-es-rest
private Log createLog(List<Event> eventList) {
final Header header = new Header();
header.setCreated(StringUtils.toStringEfficiently(new Date()));
final Events events = new Events();
events.setEvent(eventList);
final Log log = new Log();
log.setEvents(events);
log.setHeader(header);
return log;
}
代码示例来源:origin: stackoverflow.com
for (int i=0;i<day1.length;i++)
{
Events event= new Events();
event.setEvent(day1[i]);
event.setVenue(day1venue[i]);
event.setTime(timings[i]);
event.setDetails("This is Pantheon 2016\n Play it safe and have a good time. Live long and prosper");
event.setFavourite(false);
}
代码示例来源:origin: OpenNMS/opennms
public Log getLog() {
Event event = getEvent();
Events events = new Events();
events.setEvent(new Event[]{event});
Header header = new Header();
header.setCreated(StringUtils.toStringEfficiently(event.getCreationTime()));
Log log = new Log();
log.setHeader(header);
log.setEvents(events);
return log;
}
内容来源于网络,如有侵权,请联系作者删除!