org.opennms.netmgt.model
Class OnmsEvent

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsEntity
      extended by org.opennms.netmgt.model.OnmsEvent
All Implemented Interfaces:
Serializable

public class OnmsEvent
extends OnmsEntity
implements Serializable

See Also:
Serialized Form

Constructor Summary
OnmsEvent()
          default constructor
OnmsEvent(Integer eventid, String eventuei, Date eventtime, String eventsource, OnmsDistPoller distPoller, Date eventcreatetime, Integer eventseverity, String eventlog, String eventdisplay, OnmsNode node, Set<OnmsNotification> notifications, Set<OnmsOutage> outagesBySvcregainedeventid, Set<OnmsOutage> outagesBySvclosteventid, Set alarms)
          minimal constructor
OnmsEvent(Integer eventid, String eventuei, Date eventtime, String eventhost, String eventsource, String ipaddr, OnmsDistPoller distPoller, String eventsnmphost, OnmsServiceType service, String eventsnmp, String eventparms, Date eventcreatetime, String eventdescr, String eventloggroup, String eventlogmsg, Integer eventseverity, String eventpathoutage, String eventcorrelation, Integer eventsuppressedcount, String eventoperinstruct, String eventautoaction, String eventoperaction, String eventoperactionmenutext, String eventnotification, String eventtticket, Integer eventtticketstate, String eventforward, String eventmouseovertext, String eventlog, String eventdisplay, String eventackuser, Date eventacktime, OnmsAlarm alarm, OnmsNode node, Set<OnmsNotification> notifications, Set<OnmsOutage> outagesBySvcregainedeventid, Set<OnmsOutage> outagesBySvclosteventid)
          full constructor
 
Method Summary
 OnmsAlarm getAlarm()
           
 Set<OnmsOutage> getAssociatedServiceLostOutages()
           
 Set<OnmsOutage> getAssociatedServiceRegainedOutages()
           
 OnmsDistPoller getDistPoller()
           
 Date getEventAckTime()
           
 String getEventAckUser()
           
 String getEventAutoAction()
           
 String getEventCorrelation()
           
 Date getEventCreateTime()
           
 String getEventDescr()
           
 String getEventDisplay()
          TODO: make this an Enum
 String getEventForward()
           
 String getEventHost()
           
 String getEventLog()
          TODO: Make this an Enum
 String getEventLogGroup()
           
 String getEventLogMsg()
           
 String getEventMouseOverText()
           
 String getEventNotification()
           
 String getEventOperAction()
           
 String getEventOperActionMenuText()
           
 String getEventOperInstruct()
           
 String getEventParms()
           
 String getEventPathOutage()
           
 Integer getEventSeverity()
           
 String getEventSnmp()
           
 String getEventSnmpHost()
           
 String getEventSource()
           
 Integer getEventSuppressedCount()
           
 Date getEventTime()
           
 String getEventTTicket()
           
 Integer getEventTTicketState()
           
 String getEventUei()
           
 Integer getId()
           
 String getIpAddr()
           
 OnmsNode getNode()
           
 Set<OnmsNotification> getNotifications()
           
 OnmsServiceType getServiceType()
           
 void setAlarm(OnmsAlarm alarm)
           
 void setAssociatedServiceLostOutages(Set<OnmsOutage> outagesBySvclosteventid)
           
 void setAssociatedServiceRegainedOutages(Set<OnmsOutage> outagesBySvcregainedeventid)
           
 void setDistPoller(OnmsDistPoller distPoller)
           
 void setEventAckTime(Date eventacktime)
           
 void setEventAckUser(String eventackuser)
           
 void setEventAutoAction(String eventautoaction)
           
 void setEventCorrelation(String eventcorrelation)
           
 void setEventCreateTime(Date eventcreatetime)
           
 void setEventDescr(String eventdescr)
           
 void setEventDisplay(String eventdisplay)
           
 void setEventForward(String eventforward)
           
 void setEventHost(String eventhost)
           
 void setEventLog(String eventlog)
           
 void setEventLogGroup(String eventloggroup)
           
 void setEventLogMsg(String eventlogmsg)
           
 void setEventMouseOverText(String eventmouseovertext)
           
 void setEventNotification(String eventnotification)
           
 void setEventOperAction(String eventoperaction)
           
 void setEventOperActionMenuText(String eventOperActionMenuText)
           
 void setEventOperInstruct(String eventoperinstruct)
           
 void setEventParms(String eventparms)
           
 void setEventPathOutage(String eventpathoutage)
           
 void setEventSeverity(Integer severity)
           
 void setEventSnmp(String eventsnmp)
           
 void setEventSnmpHost(String eventsnmphost)
           
 void setEventSource(String eventsource)
           
 void setEventSuppressedCount(Integer eventsuppressedcount)
           
 void setEventTime(Date eventtime)
           
 void setEventTTicket(String eventtticket)
           
 void setEventTTicketState(Integer eventtticketstate)
           
 void setEventUei(String eventuei)
           
 void setId(Integer eventid)
           
 void setIpAddr(String ipaddr)
           
 void setNode(OnmsNode node)
           
 void setNotifications(Set<OnmsNotification> notifications)
           
 void setServiceType(OnmsServiceType serviceType)
           
 String toString()
           
 void visit(EntityVisitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OnmsEvent

public OnmsEvent(Integer eventid,
                 String eventuei,
                 Date eventtime,
                 String eventhost,
                 String eventsource,
                 String ipaddr,
                 OnmsDistPoller distPoller,
                 String eventsnmphost,
                 OnmsServiceType service,
                 String eventsnmp,
                 String eventparms,
                 Date eventcreatetime,
                 String eventdescr,
                 String eventloggroup,
                 String eventlogmsg,
                 Integer eventseverity,
                 String eventpathoutage,
                 String eventcorrelation,
                 Integer eventsuppressedcount,
                 String eventoperinstruct,
                 String eventautoaction,
                 String eventoperaction,
                 String eventoperactionmenutext,
                 String eventnotification,
                 String eventtticket,
                 Integer eventtticketstate,
                 String eventforward,
                 String eventmouseovertext,
                 String eventlog,
                 String eventdisplay,
                 String eventackuser,
                 Date eventacktime,
                 OnmsAlarm alarm,
                 OnmsNode node,
                 Set<OnmsNotification> notifications,
                 Set<OnmsOutage> outagesBySvcregainedeventid,
                 Set<OnmsOutage> outagesBySvclosteventid)
full constructor


OnmsEvent

public OnmsEvent()
default constructor


OnmsEvent

public OnmsEvent(Integer eventid,
                 String eventuei,
                 Date eventtime,
                 String eventsource,
                 OnmsDistPoller distPoller,
                 Date eventcreatetime,
                 Integer eventseverity,
                 String eventlog,
                 String eventdisplay,
                 OnmsNode node,
                 Set<OnmsNotification> notifications,
                 Set<OnmsOutage> outagesBySvcregainedeventid,
                 Set<OnmsOutage> outagesBySvclosteventid,
                 Set alarms)
minimal constructor

Method Detail

getId

public Integer getId()

setId

public void setId(Integer eventid)

getEventUei

public String getEventUei()

setEventUei

public void setEventUei(String eventuei)

getEventTime

public Date getEventTime()

setEventTime

public void setEventTime(Date eventtime)

getEventHost

public String getEventHost()

setEventHost

public void setEventHost(String eventhost)

getEventSource

public String getEventSource()

setEventSource

public void setEventSource(String eventsource)

getIpAddr

public String getIpAddr()

setIpAddr

public void setIpAddr(String ipaddr)

getDistPoller

public OnmsDistPoller getDistPoller()

setDistPoller

public void setDistPoller(OnmsDistPoller distPoller)

getEventSnmpHost

public String getEventSnmpHost()

setEventSnmpHost

public void setEventSnmpHost(String eventsnmphost)

getServiceType

public OnmsServiceType getServiceType()

setServiceType

public void setServiceType(OnmsServiceType serviceType)

getEventSnmp

public String getEventSnmp()

setEventSnmp

public void setEventSnmp(String eventsnmp)

getEventParms

public String getEventParms()

setEventParms

public void setEventParms(String eventparms)

getEventCreateTime

public Date getEventCreateTime()

setEventCreateTime

public void setEventCreateTime(Date eventcreatetime)

getEventDescr

public String getEventDescr()

setEventDescr

public void setEventDescr(String eventdescr)

getEventLogGroup

public String getEventLogGroup()

setEventLogGroup

public void setEventLogGroup(String eventloggroup)

getEventLogMsg

public String getEventLogMsg()

setEventLogMsg

public void setEventLogMsg(String eventlogmsg)

getEventSeverity

public Integer getEventSeverity()

setEventSeverity

public void setEventSeverity(Integer severity)

getEventPathOutage

public String getEventPathOutage()

setEventPathOutage

public void setEventPathOutage(String eventpathoutage)

getEventCorrelation

public String getEventCorrelation()

setEventCorrelation

public void setEventCorrelation(String eventcorrelation)

getEventSuppressedCount

public Integer getEventSuppressedCount()

setEventSuppressedCount

public void setEventSuppressedCount(Integer eventsuppressedcount)

getEventOperInstruct

public String getEventOperInstruct()

setEventOperInstruct

public void setEventOperInstruct(String eventoperinstruct)

getEventAutoAction

public String getEventAutoAction()

setEventAutoAction

public void setEventAutoAction(String eventautoaction)

getEventOperAction

public String getEventOperAction()

setEventOperAction

public void setEventOperAction(String eventoperaction)

getEventOperActionMenuText

public String getEventOperActionMenuText()

setEventOperActionMenuText

public void setEventOperActionMenuText(String eventOperActionMenuText)

getEventNotification

public String getEventNotification()

setEventNotification

public void setEventNotification(String eventnotification)

getEventTTicket

public String getEventTTicket()

setEventTTicket

public void setEventTTicket(String eventtticket)

getEventTTicketState

public Integer getEventTTicketState()

setEventTTicketState

public void setEventTTicketState(Integer eventtticketstate)

getEventForward

public String getEventForward()

setEventForward

public void setEventForward(String eventforward)

getEventMouseOverText

public String getEventMouseOverText()

setEventMouseOverText

public void setEventMouseOverText(String eventmouseovertext)

getEventLog

public String getEventLog()
TODO: Make this an Enum


setEventLog

public void setEventLog(String eventlog)

getEventDisplay

public String getEventDisplay()
TODO: make this an Enum


setEventDisplay

public void setEventDisplay(String eventdisplay)

getEventAckUser

public String getEventAckUser()

setEventAckUser

public void setEventAckUser(String eventackuser)

getEventAckTime

public Date getEventAckTime()

setEventAckTime

public void setEventAckTime(Date eventacktime)

getAlarm

public OnmsAlarm getAlarm()

setAlarm

public void setAlarm(OnmsAlarm alarm)

getNode

public OnmsNode getNode()

setNode

public void setNode(OnmsNode node)

getNotifications

public Set<OnmsNotification> getNotifications()

setNotifications

public void setNotifications(Set<OnmsNotification> notifications)

getAssociatedServiceRegainedOutages

public Set<OnmsOutage> getAssociatedServiceRegainedOutages()

setAssociatedServiceRegainedOutages

public void setAssociatedServiceRegainedOutages(Set<OnmsOutage> outagesBySvcregainedeventid)

getAssociatedServiceLostOutages

public Set<OnmsOutage> getAssociatedServiceLostOutages()

setAssociatedServiceLostOutages

public void setAssociatedServiceLostOutages(Set<OnmsOutage> outagesBySvclosteventid)

toString

public String toString()
Overrides:
toString in class Object

visit

public void visit(EntityVisitor visitor)
Specified by:
visit in class OnmsEntity


Copyright © 2009. All Rights Reserved.