Class OnmsEvent
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsEntity
-
- org.opennms.netmgt.model.OnmsEvent
-
- All Implemented Interfaces:
Serializable
@Entity public class OnmsEvent extends OnmsEntity implements Serializable
OnmsEvent class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OnmsEvent()default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventParameter(OnmsEventParameter parameter)OnmsAlarmgetAlarm()getAlarmSet<OnmsOutage>getAssociatedServiceLostOutages()getAssociatedServiceLostOutagesSet<OnmsOutage>getAssociatedServiceRegainedOutages()getAssociatedServiceRegainedOutagesOnmsMonitoringSystemgetDistPoller()getDistPollerDategetEventAckTime()getEventAckTimeStringgetEventAckUser()getEventAckUserStringgetEventAutoAction()getEventAutoActionStringgetEventCorrelation()getEventCorrelationDategetEventCreateTime()getEventCreateTimeStringgetEventDescr()getEventDescrStringgetEventDisplay()TODO: make this an EnumStringgetEventForward()getEventForwardStringgetEventHost()getEventHostStringgetEventLog()TODO: Make this an EnumStringgetEventLogGroup()getEventLogGroupStringgetEventLogMsg()getEventLogMsgStringgetEventMouseOverText()getEventMouseOverTextStringgetEventNotification()getEventNotificationStringgetEventOperAction()getEventOperActionStringgetEventOperActionMenuText()getEventOperActionMenuTextStringgetEventOperInstruct()getEventOperInstructList<OnmsEventParameter>getEventParameters()StringgetEventPathOutage()getEventPathOutageIntegergetEventSeverity()getEventSeverityStringgetEventSnmp()getEventSnmpStringgetEventSnmpHost()getEventSnmpHostStringgetEventSource()getEventSourceIntegergetEventSuppressedCount()getEventSuppressedCountDategetEventTime()getEventTimeStringgetEventTTicket()getEventTTicketIntegergetEventTTicketState()getEventTTicketStateStringgetEventUei()getEventUeiIntegergetId()getIdIntegergetIfIndex()getIfIndexInetAddressgetIpAddr()getIpAddrOnmsNodegetNode()getNodeIntegergetNodeId()StringgetNodeLabel()Set<OnmsNotification>getNotifications()getNotificationsOnmsServiceTypegetServiceType()getServiceTypeStringgetSeverityLabel()getSeverityLabelvoidsetAlarm(OnmsAlarm alarm)setAlarmvoidsetAssociatedServiceLostOutages(Set<OnmsOutage> outagesBySvclosteventid)setAssociatedServiceLostOutagesvoidsetAssociatedServiceRegainedOutages(Set<OnmsOutage> outagesBySvcregainedeventid)setAssociatedServiceRegainedOutagesvoidsetDistPoller(OnmsMonitoringSystem distPoller)setDistPollervoidsetEventAckTime(Date eventacktime)setEventAckTimevoidsetEventAckUser(String eventackuser)setEventAckUservoidsetEventAutoAction(String eventautoaction)setEventAutoActionvoidsetEventCorrelation(String eventcorrelation)setEventCorrelationvoidsetEventCreateTime(Date eventcreatetime)setEventCreateTimevoidsetEventDescr(String eventdescr)setEventDescrvoidsetEventDisplay(String eventdisplay)setEventDisplayvoidsetEventForward(String eventforward)setEventForwardvoidsetEventHost(String eventhost)setEventHostvoidsetEventLog(String eventlog)setEventLogvoidsetEventLogGroup(String eventloggroup)setEventLogGroupvoidsetEventLogMsg(String eventlogmsg)setEventLogMsgvoidsetEventMouseOverText(String eventmouseovertext)setEventMouseOverTextvoidsetEventNotification(String eventnotification)setEventNotificationvoidsetEventOperAction(String eventoperaction)setEventOperActionvoidsetEventOperActionMenuText(String eventOperActionMenuText)setEventOperActionMenuTextvoidsetEventOperInstruct(String eventoperinstruct)setEventOperInstructvoidsetEventParameters(List<OnmsEventParameter> eventParameters)voidsetEventParametersFromEvent(Event event)voidsetEventPathOutage(String eventpathoutage)setEventPathOutagevoidsetEventSeverity(Integer severity)setEventSeverityvoidsetEventSnmp(String eventsnmp)setEventSnmpvoidsetEventSnmpHost(String eventsnmphost)setEventSnmpHostvoidsetEventSource(String eventsource)setEventSourcevoidsetEventSuppressedCount(Integer eventsuppressedcount)setEventSuppressedCountvoidsetEventTime(Date eventtime)setEventTimevoidsetEventTTicket(String eventtticket)setEventTTicketvoidsetEventTTicketState(Integer eventtticketstate)setEventTTicketStatevoidsetEventUei(String eventuei)setEventUeivoidsetId(Integer eventid)setIdvoidsetIfIndex(Integer ifIndex)setIfIndexvoidsetIpAddr(InetAddress ipaddr)setIpAddrvoidsetNode(OnmsNode node)setNodevoidsetNotifications(Set<OnmsNotification> notifications)setNotificationsvoidsetServiceType(OnmsServiceType serviceType)setServiceTypevoidsetSeverityLabel(String label)setSeverityLabelStringtoString()toStringvoidvisit(EntityVisitor visitor)visit-
Methods inherited from class org.opennms.netmgt.model.OnmsEntity
hasNewValue
-
-
-
-
Method Detail
-
setEventUei
public void setEventUei(String eventuei)
setEventUei
- Parameters:
eventuei- aStringobject.
-
setEventTime
public void setEventTime(Date eventtime)
setEventTime
- Parameters:
eventtime- aDateobject.
-
setEventHost
public void setEventHost(String eventhost)
setEventHost
- Parameters:
eventhost- aStringobject.
-
setEventSource
public void setEventSource(String eventsource)
setEventSource
- Parameters:
eventsource- aStringobject.
-
getIpAddr
public InetAddress getIpAddr()
getIpAddr
- Returns:
- a
Stringobject.
-
setIpAddr
public void setIpAddr(InetAddress ipaddr)
setIpAddr
- Parameters:
ipaddr- aStringobject.
-
getDistPoller
public OnmsMonitoringSystem getDistPoller()
getDistPoller
- Returns:
- a
OnmsMonitoringSystemobject.
-
setDistPoller
public void setDistPoller(OnmsMonitoringSystem distPoller)
setDistPoller
- Parameters:
distPoller- aOnmsDistPollerobject.
-
setEventSnmpHost
public void setEventSnmpHost(String eventsnmphost)
setEventSnmpHost
- Parameters:
eventsnmphost- aStringobject.
-
getServiceType
public OnmsServiceType getServiceType()
getServiceType
- Returns:
- a
OnmsServiceTypeobject.
-
setServiceType
public void setServiceType(OnmsServiceType serviceType)
setServiceType
- Parameters:
serviceType- aOnmsServiceTypeobject.
-
setEventSnmp
public void setEventSnmp(String eventsnmp)
setEventSnmp
- Parameters:
eventsnmp- aStringobject.
-
getEventParameters
public List<OnmsEventParameter> getEventParameters()
-
setEventParameters
public void setEventParameters(List<OnmsEventParameter> eventParameters)
-
setEventParametersFromEvent
public void setEventParametersFromEvent(Event event)
-
addEventParameter
public void addEventParameter(OnmsEventParameter parameter)
-
setEventCreateTime
public void setEventCreateTime(Date eventcreatetime)
setEventCreateTime
- Parameters:
eventcreatetime- aDateobject.
-
setEventDescr
public void setEventDescr(String eventdescr)
setEventDescr
- Parameters:
eventdescr- aStringobject.
-
setEventLogGroup
public void setEventLogGroup(String eventloggroup)
setEventLogGroup
- Parameters:
eventloggroup- aStringobject.
-
setEventLogMsg
public void setEventLogMsg(String eventlogmsg)
setEventLogMsg
- Parameters:
eventlogmsg- aStringobject.
-
setEventSeverity
public void setEventSeverity(Integer severity)
setEventSeverity
- Parameters:
severity- aIntegerobject.
-
setSeverityLabel
public void setSeverityLabel(String label)
setSeverityLabel
- Parameters:
label- aStringobject.
-
setEventPathOutage
public void setEventPathOutage(String eventpathoutage)
setEventPathOutage
- Parameters:
eventpathoutage- aStringobject.
-
getEventCorrelation
public String getEventCorrelation()
getEventCorrelation
- Returns:
- a
Stringobject.
-
setEventCorrelation
public void setEventCorrelation(String eventcorrelation)
setEventCorrelation
- Parameters:
eventcorrelation- aStringobject.
-
getEventSuppressedCount
public Integer getEventSuppressedCount()
getEventSuppressedCount
- Returns:
- a
Integerobject.
-
setEventSuppressedCount
public void setEventSuppressedCount(Integer eventsuppressedcount)
setEventSuppressedCount
- Parameters:
eventsuppressedcount- aIntegerobject.
-
getEventOperInstruct
public String getEventOperInstruct()
getEventOperInstruct
- Returns:
- a
Stringobject.
-
setEventOperInstruct
public void setEventOperInstruct(String eventoperinstruct)
setEventOperInstruct
- Parameters:
eventoperinstruct- aStringobject.
-
setEventAutoAction
public void setEventAutoAction(String eventautoaction)
setEventAutoAction
- Parameters:
eventautoaction- aStringobject.
-
setEventOperAction
public void setEventOperAction(String eventoperaction)
setEventOperAction
- Parameters:
eventoperaction- aStringobject.
-
getEventOperActionMenuText
public String getEventOperActionMenuText()
getEventOperActionMenuText
- Returns:
- a
Stringobject.
-
setEventOperActionMenuText
public void setEventOperActionMenuText(String eventOperActionMenuText)
setEventOperActionMenuText
- Parameters:
eventOperActionMenuText- aStringobject.
-
getEventNotification
public String getEventNotification()
getEventNotification
- Returns:
- a
Stringobject.
-
setEventNotification
public void setEventNotification(String eventnotification)
setEventNotification
- Parameters:
eventnotification- aStringobject.
-
setEventTTicket
public void setEventTTicket(String eventtticket)
setEventTTicket
- Parameters:
eventtticket- aStringobject.
-
getEventTTicketState
public Integer getEventTTicketState()
getEventTTicketState
- Returns:
- a
Integerobject.
-
setEventTTicketState
public void setEventTTicketState(Integer eventtticketstate)
setEventTTicketState
- Parameters:
eventtticketstate- aIntegerobject.
-
setEventForward
public void setEventForward(String eventforward)
setEventForward
- Parameters:
eventforward- aStringobject.
-
getEventMouseOverText
public String getEventMouseOverText()
getEventMouseOverText
- Returns:
- a
Stringobject.
-
setEventMouseOverText
public void setEventMouseOverText(String eventmouseovertext)
setEventMouseOverText
- Parameters:
eventmouseovertext- aStringobject.
-
setEventLog
public void setEventLog(String eventlog)
setEventLog
- Parameters:
eventlog- aStringobject.
-
setEventDisplay
public void setEventDisplay(String eventdisplay)
setEventDisplay
- Parameters:
eventdisplay- aStringobject.
-
setEventAckUser
public void setEventAckUser(String eventackuser)
setEventAckUser
- Parameters:
eventackuser- aStringobject.
-
setEventAckTime
public void setEventAckTime(Date eventacktime)
setEventAckTime
- Parameters:
eventacktime- aDateobject.
-
getNodeId
public Integer getNodeId()
-
getNodeLabel
public String getNodeLabel()
-
getNotifications
public Set<OnmsNotification> getNotifications()
getNotifications
- Returns:
- a
Setobject.
-
setNotifications
public void setNotifications(Set<OnmsNotification> notifications)
setNotifications
- Parameters:
notifications- aSetobject.
-
getAssociatedServiceRegainedOutages
public Set<OnmsOutage> getAssociatedServiceRegainedOutages()
getAssociatedServiceRegainedOutages
- Returns:
- a
Setobject.
-
setAssociatedServiceRegainedOutages
public void setAssociatedServiceRegainedOutages(Set<OnmsOutage> outagesBySvcregainedeventid)
setAssociatedServiceRegainedOutages
- Parameters:
outagesBySvcregainedeventid- aSetobject.
-
getAssociatedServiceLostOutages
public Set<OnmsOutage> getAssociatedServiceLostOutages()
getAssociatedServiceLostOutages
- Returns:
- a
Setobject.
-
setAssociatedServiceLostOutages
public void setAssociatedServiceLostOutages(Set<OnmsOutage> outagesBySvclosteventid)
setAssociatedServiceLostOutages
- Parameters:
outagesBySvclosteventid- aSetobject.
-
toString
public String toString()
toString
-
visit
public void visit(EntityVisitor visitor)
visit
- Specified by:
visitin classOnmsEntity- Parameters:
visitor- aEntityVisitorobject.
-
-