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

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

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

Event.getPathoutage介绍

[英]Returns the value of field 'pathoutage'. The field 'pathoutage' has the following description: The path outage information
[中]

代码示例

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

snmpTrapHelper.addVarBinding(trap, ".1.3.6.1.4.1.5813.20.1.18.0", "OctetString", "text", "null");
if (event.getPathoutage() != null)
  snmpTrapHelper.addVarBinding(trap, ".1.3.6.1.4.1.5813.20.1.19.0", "OctetString", "text", event.getPathoutage());
else
  snmpTrapHelper.addVarBinding(trap, ".1.3.6.1.4.1.5813.20.1.19.0", "OctetString", "text", "null");

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

ovent.setEventPathOutage(event.getPathoutage() != null ? EventDatabaseConstants.format(event.getPathoutage(), EVENT_PATHOUTAGE_FIELD_SIZE) : null);

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

ovent.setEventPathOutage(event.getPathoutage() != null ? EventDatabaseConstants.format(event.getPathoutage(), EVENT_PATHOUTAGE_FIELD_SIZE) : null);

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

oe.setEventPathOutage(event.getPathoutage());
try {
  oe.setServiceType(m_serviceTypeDao.findByName(event.getService()));

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

oe.setEventPathOutage(event.getPathoutage());
try {
  oe.setServiceType(m_serviceTypeDao.findByName(event.getService()));

相关文章