本文整理了Java中org.opennms.netmgt.xml.event.Event.getAutoaction()
方法的一些代码示例,展示了Event.getAutoaction()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.getAutoaction()
方法的具体详情如下:
包路径:org.opennms.netmgt.xml.event.Event
类名称:Event
方法名:getAutoaction
[英]Method getAutoaction.Returns the contents of the collection in an Array.
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
[中]方法getAutoaction。返回数组中集合的内容。
注意:为了防止集合内容在另一个线程中发生更改,我们将正确类型的0长度数组传递到API调用中。这样我们就知道返回的数组的长度完全正确。
代码示例来源:origin: OpenNMS/opennms
if (event.getAutoaction() != null) {
expandParms(event.getAutoaction(), event);
代码示例来源:origin: OpenNMS/opennms
ovent.setEventAutoAction(event.getAutoactionCount() > 0 ? AutoAction.format(event.getAutoaction(), EVENT_AUTOACTION_FIELD_SIZE) : null);
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
ovent.setEventAutoAction(event.getAutoactionCount() > 0 ? AutoAction.format(event.getAutoaction(), EVENT_AUTOACTION_FIELD_SIZE) : null);
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
if (event.getAutoaction() != null) {
expandParms(event.getAutoaction(), event);
代码示例来源:origin: OpenNMS/opennms
private void process(final Event event) throws EventProcessorException {
LOG.debug("Writing event: {}", event);
final OnmsEvent oe = new OnmsEvent();
oe.setEventAutoAction((event.getAutoactionCount() > 0) ? AutoAction.format(event.getAutoaction(), EVENT_AUTOACTION_FIELD_SIZE) : null);
oe.setEventCorrelation((event.getCorrelation() != null) ? org.opennms.netmgt.dao.util.Correlation.format(event.getCorrelation(), EVENT_CORRELATION_FIELD_SIZE) : null);
oe.setEventCreateTime(event.getCreationTime());
代码示例来源:origin: org.opennms/opennms-dao-mock
private void process(final Event event) throws EventProcessorException {
LOG.debug("Writing event: {}", event);
final OnmsEvent oe = new OnmsEvent();
oe.setEventAutoAction((event.getAutoactionCount() > 0) ? AutoAction.format(event.getAutoaction(), EVENT_AUTOACTION_FIELD_SIZE) : null);
oe.setEventCorrelation((event.getCorrelation() != null) ? org.opennms.netmgt.dao.util.Correlation.format(event.getCorrelation(), EVENT_CORRELATION_FIELD_SIZE) : null);
oe.setEventCreateTime(event.getCreationTime());
内容来源于网络,如有侵权,请联系作者删除!