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

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

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

Events.getEventCount介绍

[英]Method getEventCount.
[中]

代码示例

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

@Override
public void sendNow(final Log log) {
  if (log != null && log.getEvents() != null && log.getEvents().getEventCount() > 0) {
    m_events.addAll(log.getEvents().getEventCollection());
  }
}

代码示例来源:origin: org.opennms/opennms-provisiond

@Override
public void sendNow(final Log log) {
  if (log != null && log.getEvents() != null && log.getEvents().getEventCount() > 0) {
    m_events.addAll(log.getEvents().getEventCollection());
  }
}

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

eventsSent += log.getEvents().getEventCount();
eventOffset = eventOffset + events.size();

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

eventsSent += log.getEvents().getEventCount();
eventOffset = eventOffset + events.size();

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

public void run() {
  Events events = m_eventLog.getEvents();
  if (events == null || events.getEventCount() <= 0) {
      try {
        eventProcessor.process(m_eventLog, m_synchronous);
        logSizes.update(events.getEventCount());
      } catch (EventProcessorException e) {
        LOG.warn("Unable to process event using processor {}; not processing with any later processors.", eventProcessor, e);

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

public void run() {
  Events events = m_eventLog.getEvents();
  if (events == null || events.getEventCount() <= 0) {
      try {
        eventProcessor.process(m_eventLog, m_synchronous);
        logSizes.update(events.getEventCount());
      } catch (EventProcessorException e) {
        LOG.warn("Unable to process event using processor {}; not processing with any later processors.", eventProcessor, e);

相关文章