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

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

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

Event.getMask介绍

[英]Returns the value of field 'mask'. The field 'mask' has the following description: The event mask which helps to uniquely identify an event
[中]返回字段“掩码”的值。字段“掩码”具有以下描述:有助于唯一标识事件的事件掩码

代码示例

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

b.append(" Logmsg: " + event.getLogmsg() + "\n");
if (event.getMask() != null) {
  b.append(" Mask: " + event.getMask() + "\n");

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

/**
 * Constructor for this class
 *
 * @param event
 *            the event that this will be the key for
 */
public EventKey(org.opennms.netmgt.xml.event.Event event) {
  super();
  m_hashCode = 1;
  org.opennms.netmgt.xml.event.Mask mask = event.getMask();
  if ((mask == null) || mask.getMaskelementCount() == 0) {
    String uei = event.getUei();
    if (uei != null) {
      put(TAG_UEI, uei);
    }
  } else {
    for (org.opennms.netmgt.xml.event.Maskelement maskelement : mask.getMaskelementCollection()) {
      String name = maskelement.getMename();
      String value = getMaskElementValue(event, name);
      put(name, value);
    }
  }
}

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

e.setMask(null);
if (e.getMask() == null && econf.getMask() != null) {
  e.setMask(transform(econf.getMask()));

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

e.setMask(null);
if (e.getMask() == null && econf.getMask() != null) {
  e.setMask(transform(econf.getMask()));

相关文章