Package org.opennms.netmgt.alarmd.api
Class NorthboundAlarm
- java.lang.Object
-
- org.opennms.netmgt.alarmd.api.NorthboundAlarm
-
- All Implemented Interfaces:
Serializable,Preservable
public class NorthboundAlarm extends Object implements Preservable, Serializable
Wraps the OnmsAlarm into a more generic Alarm instance FIXME: Improve this alarm to support TIP and 3GPP collaboration. FIXME: Most of these fields are not implemented waiting on above fix to be completed.- Author:
- David Hustace, Alejandro Galue
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNorthboundAlarm.AlarmTypeThe Enumeration AlarmType.static classNorthboundAlarm.x733AlarmTypeThe Enumeration x733AlarmType.static classNorthboundAlarm.x733ProbableCauseThe Enumeration x733ProbableCause.
-
Field Summary
Fields Modifier and Type Field Description static NorthboundAlarmSYNC_LOST_ALARMThe Constant SYNC_LOST_ALARM.
-
Constructor Summary
Constructors Constructor Description NorthboundAlarm()Instantiates a new northbound alarm.NorthboundAlarm(OnmsAlarm alarm)Instantiates a new northbound alarm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DategetAckTime()Gets the acknowledge time.StringgetAckUser()Gets the acknowledge user.StringgetAlarmKey()Gets the alarm key.NorthboundAlarm.AlarmTypegetAlarmType()Gets the alarm type.StringgetAppDn()Gets the App DN.StringgetClearKey()Gets the clear key.IntegergetCount()Gets the count.StringgetDesc()Gets the description.List<OnmsEventParameter>getEventParametersCollection()Gets the event parameters collection.DategetFirstOccurrence()Gets the first occurrence.StringgetForeignId()Gets the node foreign id.StringgetForeignSource()Gets the node foreign source.IntegergetId()Gets the ID.StringgetIpAddr()Gets the IP address.DategetLastOccurrence()Gets the last occurrence.StringgetLogMsg()Gets the log message.IntegergetNodeId()Gets the node id.StringgetNodeLabel()Gets the node label.StringgetNodeSysObjectId()Gets the node system object id.StringgetObjectInstance()Gets the object instance.StringgetObjectType()Gets the object type.StringgetOperInst()Gets the operator instructions.StringgetOssKey()Gets the OSS key.StringgetOssState()Gets the OSS state.Map<String,String>getParameters()Gets the parameters.OnmsMonitoringSystemgetPoller()Gets the poller.StringgetService()Gets the service.OnmsSeveritygetSeverity()Gets the severity.DategetSuppressed()Gets the suppressed.StringgetSuppressedBy()Gets the suppressed by.DategetSuppressedUntil()Gets the suppressed until.StringgetTicketId()Gets the ticket id.TroubleTicketStategetTicketState()Gets the ticket state.StringgetUei()Gets the UEI.intgetX733Cause()Gets the x733 cause.StringgetX733Type()Gets the x733 type.inthashCode()booleanisPreserved()Checks if is preserved.voidsetAckTime(Date ackTime)Sets the acknowledge time.voidsetAckUser(String ackUser)Sets the acknowledge user.voidsetAlarmKey(String alarmKey)Sets the alarm key.voidsetAlarmType(NorthboundAlarm.AlarmType alarmType)Sets the alarm type.voidsetAppDn(String appDn)Sets the App DN.voidsetClearKey(String clearKey)Sets the clear key.voidsetCount(Integer count)Sets the count.voidsetDesc(String desc)Sets the description.voidsetEventParametersCollection(List<OnmsEventParameter> eventParametersCollection)Sets the event parameters collection.voidsetEventParametersMap(Map<String,String> eventParametersMap)Sets the event parameters map.voidsetFirstOccurrence(Date firstOccurrence)Sets the first occurrence.voidsetForeignId(String foreignId)Sets the foreign id.voidsetForeignSource(String foreignSource)Sets the foreign source.voidsetId(Integer id)Sets the id.voidsetIpAddr(String ipAddr)Sets the IP address.voidsetLastOccurrence(Date lastOccurrence)Sets the last occurrence.voidsetLogMsg(String logMsg)Sets the log message.voidsetNodeId(Integer nodeId)Sets the node id.voidsetNodeLabel(String nodeLabel)Sets the node label.voidsetNodeSysObjectId(String nodeSysObjectId)Sets the node sys object id.voidsetObjectInstance(String objectInstance)Sets the object instance.voidsetObjectType(String objectType)Sets the object type.voidsetOperInst(String operInst)Sets the operator instructions.voidsetOssKey(String ossKey)Sets the OSS key.voidsetOssState(String ossState)Sets the OSS state.voidsetPoller(OnmsDistPoller poller)Sets the poller.voidsetPreserved(boolean preserved)Sets the preserved.voidsetService(String service)Sets the service.voidsetSeverity(OnmsSeverity severity)Sets the severity.voidsetSuppressed(Date suppressed)Sets the suppressed.voidsetSuppressedBy(String suppressedBy)Sets the suppressed by.voidsetSuppressedUntil(Date suppressedUntil)Sets the suppressed until.voidsetTicketId(String ticketId)Sets the ticket id.voidsetTicketState(TroubleTicketState ticketState)Sets the ticket state.voidsetUei(String uei)Sets the UEI.voidsetx733Cause(int x733Cause)Sets the x733 cause.voidsetx733Type(String x733Type)Sets the x733 type.StringtoString()
-
-
-
Field Detail
-
SYNC_LOST_ALARM
public static final NorthboundAlarm SYNC_LOST_ALARM
The Constant SYNC_LOST_ALARM.
-
-
Constructor Detail
-
NorthboundAlarm
public NorthboundAlarm()
Instantiates a new northbound alarm.
-
NorthboundAlarm
public NorthboundAlarm(OnmsAlarm alarm)
Instantiates a new northbound alarm.- Parameters:
alarm- the alarm
-
-
Method Detail
-
getId
public Integer getId()
Gets the ID.- Returns:
- the ID
-
getUei
public String getUei()
Gets the UEI.- Returns:
- the UEI
-
getAckTime
public Date getAckTime()
Gets the acknowledge time.- Returns:
- the acknowledge time
-
getAckUser
public String getAckUser()
Gets the acknowledge user.- Returns:
- the acknowledge user
-
getAlarmType
public NorthboundAlarm.AlarmType getAlarmType()
Gets the alarm type.- Returns:
- the alarm type
-
getAppDn
public String getAppDn()
Gets the App DN.- Returns:
- the App DN
-
getClearKey
public String getClearKey()
Gets the clear key.- Returns:
- the clear key
-
getCount
public Integer getCount()
Gets the count.- Returns:
- the count
-
getDesc
public String getDesc()
Gets the description.- Returns:
- the description
-
getPoller
public OnmsMonitoringSystem getPoller()
Gets the poller.- Returns:
- the poller
-
getFirstOccurrence
public Date getFirstOccurrence()
Gets the first occurrence.- Returns:
- the first occurrence
-
getIpAddr
public String getIpAddr()
Gets the IP address.- Returns:
- the IP address
-
getLastOccurrence
public Date getLastOccurrence()
Gets the last occurrence.- Returns:
- the last occurrence
-
getLogMsg
public String getLogMsg()
Gets the log message.- Returns:
- the log message
-
getObjectInstance
public String getObjectInstance()
Gets the object instance.- Returns:
- the object instance
-
getObjectType
public String getObjectType()
Gets the object type.- Returns:
- the object type
-
getOperInst
public String getOperInst()
Gets the operator instructions.- Returns:
- the operator instructions
-
getOssKey
public String getOssKey()
Gets the OSS key.- Returns:
- the OSS key
-
getOssState
public String getOssState()
Gets the OSS state.- Returns:
- the OSS state
-
getAlarmKey
public String getAlarmKey()
Gets the alarm key.- Returns:
- the alarm key
-
getService
public String getService()
Gets the service.- Returns:
- the service
-
getSeverity
public OnmsSeverity getSeverity()
Gets the severity.- Returns:
- the severity
-
getSuppressed
public Date getSuppressed()
Gets the suppressed.- Returns:
- the suppressed
-
getSuppressedUntil
public Date getSuppressedUntil()
Gets the suppressed until.- Returns:
- the suppressed until
-
getSuppressedBy
public String getSuppressedBy()
Gets the suppressed by.- Returns:
- the suppressed by
-
getTicketId
public String getTicketId()
Gets the ticket id.- Returns:
- the ticket id
-
getTicketState
public TroubleTicketState getTicketState()
Gets the ticket state.- Returns:
- the ticket state
-
getX733Type
public String getX733Type()
Gets the x733 type.- Returns:
- the x733 type
-
getX733Cause
public int getX733Cause()
Gets the x733 cause.- Returns:
- the x733 cause
-
getParameters
public Map<String,String> getParameters()
Gets the parameters.- Returns:
- the parameters
-
getEventParametersCollection
public List<OnmsEventParameter> getEventParametersCollection()
Gets the event parameters collection.- Returns:
- the event parameters collection
-
isPreserved
public boolean isPreserved()
Description copied from interface:PreservableChecks if is preserved.- Specified by:
isPreservedin interfacePreservable- Returns:
- true, if is preserved
-
setPreserved
public void setPreserved(boolean preserved)
Description copied from interface:PreservableSets the preserved.- Specified by:
setPreservedin interfacePreservable- Parameters:
preserved- the new preserved
-
getNodeId
public Integer getNodeId()
Gets the node id.- Returns:
- the node id
-
getNodeLabel
public String getNodeLabel()
Gets the node label.- Returns:
- the node label
-
getNodeSysObjectId
public String getNodeSysObjectId()
Gets the node system object id.- Returns:
- the node system object id
-
getForeignSource
public String getForeignSource()
Gets the node foreign source.- Returns:
- the node foreign source
-
getForeignId
public String getForeignId()
Gets the node foreign id.- Returns:
- the node foreign id
-
setId
public void setId(Integer id)
Sets the id.- Parameters:
id- the new id
-
setUei
public void setUei(String uei)
Sets the UEI.- Parameters:
uei- the new UEI
-
setNodeId
public void setNodeId(Integer nodeId)
Sets the node id.- Parameters:
nodeId- the new node id
-
setNodeLabel
public void setNodeLabel(String nodeLabel)
Sets the node label.- Parameters:
nodeLabel- the new node label
-
setNodeSysObjectId
public void setNodeSysObjectId(String nodeSysObjectId)
Sets the node sys object id.- Parameters:
nodeSysObjectId- the new node sys object id
-
setForeignSource
public void setForeignSource(String foreignSource)
Sets the foreign source.- Parameters:
foreignSource- the new foreign source
-
setForeignId
public void setForeignId(String foreignId)
Sets the foreign id.- Parameters:
foreignId- the new foreign id
-
setAckTime
public void setAckTime(Date ackTime)
Sets the acknowledge time.- Parameters:
ackTime- the new acknowledge time
-
setAckUser
public void setAckUser(String ackUser)
Sets the acknowledge user.- Parameters:
ackUser- the new acknowledge user
-
setAlarmType
public void setAlarmType(NorthboundAlarm.AlarmType alarmType)
Sets the alarm type.- Parameters:
alarmType- the new alarm type
-
setAppDn
public void setAppDn(String appDn)
Sets the App DN.- Parameters:
appDn- the new App DN
-
setClearKey
public void setClearKey(String clearKey)
Sets the clear key.- Parameters:
clearKey- the new clear key
-
setCount
public void setCount(Integer count)
Sets the count.- Parameters:
count- the new count
-
setDesc
public void setDesc(String desc)
Sets the description.- Parameters:
desc- the new description
-
setPoller
public void setPoller(OnmsDistPoller poller)
Sets the poller.- Parameters:
poller- the new poller
-
setFirstOccurrence
public void setFirstOccurrence(Date firstOccurrence)
Sets the first occurrence.- Parameters:
firstOccurrence- the new first occurrence
-
setIpAddr
public void setIpAddr(String ipAddr)
Sets the IP address.- Parameters:
ipAddr- the new IP address
-
setLastOccurrence
public void setLastOccurrence(Date lastOccurrence)
Sets the last occurrence.- Parameters:
lastOccurrence- the new last occurrence
-
setLogMsg
public void setLogMsg(String logMsg)
Sets the log message.- Parameters:
logMsg- the new log message
-
setObjectInstance
public void setObjectInstance(String objectInstance)
Sets the object instance.- Parameters:
objectInstance- the new object instance
-
setObjectType
public void setObjectType(String objectType)
Sets the object type.- Parameters:
objectType- the new object type
-
setOperInst
public void setOperInst(String operInst)
Sets the operator instructions.- Parameters:
operInst- the new operator instructions
-
setOssKey
public void setOssKey(String ossKey)
Sets the OSS key.- Parameters:
ossKey- the new OSS key
-
setOssState
public void setOssState(String ossState)
Sets the OSS state.- Parameters:
ossState- the new OSS state
-
setAlarmKey
public void setAlarmKey(String alarmKey)
Sets the alarm key.- Parameters:
alarmKey- the new alarm key
-
setService
public void setService(String service)
Sets the service.- Parameters:
service- the new service
-
setSeverity
public void setSeverity(OnmsSeverity severity)
Sets the severity.- Parameters:
severity- the new severity
-
setSuppressed
public void setSuppressed(Date suppressed)
Sets the suppressed.- Parameters:
suppressed- the new suppressed
-
setSuppressedUntil
public void setSuppressedUntil(Date suppressedUntil)
Sets the suppressed until.- Parameters:
suppressedUntil- the new suppressed until
-
setSuppressedBy
public void setSuppressedBy(String suppressedBy)
Sets the suppressed by.- Parameters:
suppressedBy- the new suppressed by
-
setTicketId
public void setTicketId(String ticketId)
Sets the ticket id.- Parameters:
ticketId- the new ticket id
-
setTicketState
public void setTicketState(TroubleTicketState ticketState)
Sets the ticket state.- Parameters:
ticketState- the new ticket state
-
setx733Type
public void setx733Type(String x733Type)
Sets the x733 type.- Parameters:
x733Type- the new x733 type
-
setx733Cause
public void setx733Cause(int x733Cause)
Sets the x733 cause.- Parameters:
x733Cause- the new x733 cause
-
setEventParametersMap
public void setEventParametersMap(Map<String,String> eventParametersMap)
Sets the event parameters map.- Parameters:
eventParametersMap- the event parameters map
-
setEventParametersCollection
public void setEventParametersCollection(List<OnmsEventParameter> eventParametersCollection)
Sets the event parameters collection.- Parameters:
eventParametersCollection- the new event parameters collection
-
-