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

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

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

Event.setDescr介绍

[英]Sets the value of field 'descr'. The field 'descr' has the following description: The event description
[中]设置字段“descr”的值。字段“descr”具有以下描述:事件描述

代码示例

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

/**
 * <p>setDescription</p>
 *
 * @param descr a {@link java.lang.String} object.
 * @return a {@link org.opennms.netmgt.model.events.EventBuilder} object.
 */
public EventBuilder setDescription(final String descr) {
  m_event.setDescr(descr);
  return this;
}

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

private Event cloneEvent(Event srcEvent) {
  Event clonedEvent = EventTranslatorConfigFactory.cloneEvent(srcEvent);
  /* since alarmData and severity are computed based on translated information in 
   * eventd using the data from eventconf, we unset it here to eventd
   * can reset to the proper new settings.
   */ 
  clonedEvent.setAlarmData(null);
  clonedEvent.setSeverity(null);
  /* the reasoning for alarmData and severity also applies to description (see NMS-4038). */
  clonedEvent.setDescr(null);
  if (!m_mapping.getPreserveSnmpData()) { // NMS-8374
    clonedEvent.setSnmp(null);
  }
  return clonedEvent;
}

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

strRet = m_eventUtil.expandParms(event.getDescr(), event,decode);
if (strRet != null) {
  event.setDescr(strRet);
  strRet = null;

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

strRet = m_eventUtil.expandParms(event.getDescr(), event,decode);
if (strRet != null) {
  event.setDescr(strRet);
  strRet = null;

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

if (onmsEvent.getEventCreateTime() != null ) event.setCreationTime(onmsEvent.getEventCreateTime());
if (onmsEvent.getSeverityLabel() !=null ) event.setSeverity(onmsEvent.getSeverityLabel());
if (onmsEvent.getEventDescr() !=null ) event.setDescr(onmsEvent.getEventDescr());
if (onmsEvent.getEventHost() !=null ) event.setHost(onmsEvent.getEventHost());

代码示例来源:origin: org.opennms.plugins/opennms-es-rest.main-module

if (onmsEvent.getEventDescr() !=null ) event.setDescr(onmsEvent.getEventDescr());
if (onmsEvent.getEventHost()!=null ) event.setHost(onmsEvent.getEventHost());

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

if (onmsEvent.getEventCreateTime() != null ) event.setCreationTime(onmsEvent.getEventCreateTime());
if (onmsEvent.getSeverityLabel() !=null ) event.setSeverity(onmsEvent.getSeverityLabel());
if (onmsEvent.getEventDescr() !=null ) event.setDescr(onmsEvent.getEventDescr());
if (onmsEvent.getEventHost() !=null ) event.setHost(onmsEvent.getEventHost());

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

e.setDescr(null);
e.setDescr(econf.getDescr());

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

e.setDescr(null);
e.setDescr(econf.getDescr());

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

event.setDescr(alarm.getDescription());

相关文章