本文整理了Java中org.opennms.netmgt.xml.event.Event.getTticket()
方法的一些代码示例,展示了Event.getTticket()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Event.getTticket()
方法的具体详情如下:
包路径:org.opennms.netmgt.xml.event.Event
类名称:Event
方法名:getTticket
[英]Returns the value of field 'tticket'. The field 'tticket' has the following description: The trouble ticket info
[中]返回字段“tticket”的值。“tticket”字段具有以下描述:故障单信息
代码示例来源:origin: OpenNMS/opennms
@Override
public String getValue(String parm, String parsedParm, Event event, EventUtil eventUtil) {
Tticket ticket = event.getTticket();
return ticket == null ? "" : ticket.getContent();
}
},
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
@Override
public String getValue(String parm, String parsedParm, Event event, EventUtil eventUtil) {
Tticket ticket = event.getTticket();
return ticket == null ? "" : ticket.getContent();
}
},
代码示例来源:origin: OpenNMS/opennms
/**
* {@inheritDoc}
*
* This method is invoked by the EventIpcManager when a new event is
* available for processing. Each event's autoactions and trouble tickets
* are queued to be run
*/
@Override
public void onEvent(Event event) {
if (event == null) {
return;
}
// Handle autoactions
//
Enumeration<Autoaction> walker = event.enumerateAutoaction();
while (walker.hasMoreElements()) {
Autoaction aact = walker.nextElement();
if ("on".equalsIgnoreCase(aact.getState())) {
m_execQ.add(aact.getContent()); // java.lang.String
}
LOG.debug("Added event \'{}\' to execute autoaction \'{}\'", event.getUei(), aact.getContent());
}
// Handle trouble tickets
//
if (event.getTticket() != null && event.getTticket().getState().equalsIgnoreCase("on")) {
m_execQ.add(event.getTticket().getContent()); // java.lang.String
LOG.debug("Added event \'{}\' to execute tticket \'{}\'", event.getUei(), event.getTticket().getContent());
}
} // end onMessage()
代码示例来源:origin: OpenNMS/opennms
b.append(" Time: " + event.getTime() + "\n");
if (event.getTticket() != null) {
b.append(" Tticket: " + event.getTticket() + "\n");
代码示例来源:origin: OpenNMS/opennms
"Y",
"Y",
e.getTticket() == null ? "" : e.getTticket().getContent(),
Integer.valueOf(e.getTticket() == null ? "0" : e.getTticket().getState()),
e.getLogmsg() == null? null : e.getLogmsg().getContent()
};
代码示例来源:origin: org.opennms.core.test-api/org.opennms.core.test-api.db
"Y",
"Y",
e.getTticket() == null ? "" : e.getTticket().getContent(),
Integer.valueOf(e.getTticket() == null ? "0" : e.getTticket().getState()),
e.getLogmsg() == null? null : e.getLogmsg().getContent()
};
代码示例来源:origin: OpenNMS/opennms
if (event.getTticket() != null) {
expandParms(event.getTticket(), event);
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
if (event.getTticket() != null) {
expandParms(event.getTticket(), event);
代码示例来源:origin: OpenNMS/opennms
if (event.getTticket() != null) {
ovent.setEventTTicket(EventDatabaseConstants.format(event.getTticket().getContent(), EVENT_TTICKET_FIELD_SIZE));
ovent.setEventTTicketState("on".equals(event.getTticket().getState()) ? 1 : 0);
} else {
ovent.setEventTTicket(null);
代码示例来源:origin: org.opennms/opennms-dao-mock
oe.setEventTime(event.getTime());
if (event.getTticket() != null) {
oe.setEventTTicket(EventDatabaseConstants.format(event.getTticket().getContent(), EVENT_TTICKET_FIELD_SIZE));
oe.setEventTTicketState(event.getTticket().getState().equals("on") ? 1 : 0);
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
if (event.getTticket() != null) {
ovent.setEventTTicket(EventDatabaseConstants.format(event.getTticket().getContent(), EVENT_TTICKET_FIELD_SIZE));
ovent.setEventTTicketState("on".equals(event.getTticket().getState()) ? 1 : 0);
} else {
ovent.setEventTTicket(null);
代码示例来源:origin: OpenNMS/opennms
oe.setEventTime(event.getTime());
if (event.getTticket() != null) {
oe.setEventTTicket(EventDatabaseConstants.format(event.getTticket().getContent(), EVENT_TTICKET_FIELD_SIZE));
oe.setEventTTicketState(event.getTticket().getState().equals("on") ? 1 : 0);
代码示例来源:origin: OpenNMS/opennms
e.setTticket(null);
if (e.getTticket() == null && econf.getTticket() != null) {
e.setTticket(transform(econf.getTticket()));
代码示例来源:origin: org.opennms.features.events/org.opennms.features.events.daemon
e.setTticket(null);
if (e.getTticket() == null && econf.getTticket() != null) {
e.setTticket(transform(econf.getTticket()));
内容来源于网络,如有侵权,请联系作者删除!