Class NorthboundAlarm

  • All Implemented Interfaces:
    java.io.Serializable, Preservable

    public class NorthboundAlarm
    extends java.lang.Object
    implements Preservable, java.io.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
    • 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 java.lang.Integer getId()
        Gets the ID.
        Returns:
        the ID
      • getUei

        public java.lang.String getUei()
        Gets the UEI.
        Returns:
        the UEI
      • getAckTime

        public java.util.Date getAckTime()
        Gets the acknowledge time.
        Returns:
        the acknowledge time
      • getAckUser

        public java.lang.String getAckUser()
        Gets the acknowledge user.
        Returns:
        the acknowledge user
      • getAppDn

        public java.lang.String getAppDn()
        Gets the App DN.
        Returns:
        the App DN
      • getClearKey

        public java.lang.String getClearKey()
        Gets the clear key.
        Returns:
        the clear key
      • getCount

        public java.lang.Integer getCount()
        Gets the count.
        Returns:
        the count
      • getDesc

        public java.lang.String getDesc()
        Gets the description.
        Returns:
        the description
      • getFirstOccurrence

        public java.util.Date getFirstOccurrence()
        Gets the first occurrence.
        Returns:
        the first occurrence
      • getIpAddr

        public java.lang.String getIpAddr()
        Gets the IP address.
        Returns:
        the IP address
      • getLastOccurrence

        public java.util.Date getLastOccurrence()
        Gets the last occurrence.
        Returns:
        the last occurrence
      • getLogMsg

        public java.lang.String getLogMsg()
        Gets the log message.
        Returns:
        the log message
      • getObjectInstance

        public java.lang.String getObjectInstance()
        Gets the object instance.
        Returns:
        the object instance
      • getObjectType

        public java.lang.String getObjectType()
        Gets the object type.
        Returns:
        the object type
      • getOperInst

        public java.lang.String getOperInst()
        Gets the operator instructions.
        Returns:
        the operator instructions
      • getOssKey

        public java.lang.String getOssKey()
        Gets the OSS key.
        Returns:
        the OSS key
      • getOssState

        public java.lang.String getOssState()
        Gets the OSS state.
        Returns:
        the OSS state
      • getAlarmKey

        public java.lang.String getAlarmKey()
        Gets the alarm key.
        Returns:
        the alarm key
      • getService

        public java.lang.String getService()
        Gets the service.
        Returns:
        the service
      • getSeverity

        public OnmsSeverity getSeverity()
        Gets the severity.
        Returns:
        the severity
      • getSuppressed

        public java.util.Date getSuppressed()
        Gets the suppressed.
        Returns:
        the suppressed
      • getSuppressedUntil

        public java.util.Date getSuppressedUntil()
        Gets the suppressed until.
        Returns:
        the suppressed until
      • getSuppressedBy

        public java.lang.String getSuppressedBy()
        Gets the suppressed by.
        Returns:
        the suppressed by
      • getTicketId

        public java.lang.String getTicketId()
        Gets the ticket id.
        Returns:
        the ticket id
      • getTicketState

        public TroubleTicketState getTicketState()
        Gets the ticket state.
        Returns:
        the ticket state
      • getX733Type

        public java.lang.String getX733Type()
        Gets the x733 type.
        Returns:
        the x733 type
      • getX733Cause

        public int getX733Cause()
        Gets the x733 cause.
        Returns:
        the x733 cause
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.String> getParameters()
        Gets the parameters.
        Returns:
        the parameters
      • getEventParametersCollection

        public java.util.List<OnmsEventParameter> getEventParametersCollection()
        Gets the event parameters collection.
        Returns:
        the event parameters collection
      • isPreserved

        public boolean isPreserved()
        Description copied from interface: Preservable
        Checks if is preserved.
        Specified by:
        isPreserved in interface Preservable
        Returns:
        true, if is preserved
      • setPreserved

        public void setPreserved​(boolean preserved)
        Description copied from interface: Preservable
        Sets the preserved.
        Specified by:
        setPreserved in interface Preservable
        Parameters:
        preserved - the new preserved
      • getNodeId

        public java.lang.Integer getNodeId()
        Gets the node id.
        Returns:
        the node id
      • getNodeLabel

        public java.lang.String getNodeLabel()
        Gets the node label.
        Returns:
        the node label
      • getNodeSysObjectId

        public java.lang.String getNodeSysObjectId()
        Gets the node system object id.
        Returns:
        the node system object id
      • getForeignSource

        public java.lang.String getForeignSource()
        Gets the node foreign source.
        Returns:
        the node foreign source
      • getForeignId

        public java.lang.String getForeignId()
        Gets the node foreign id.
        Returns:
        the node foreign id
      • setId

        public void setId​(java.lang.Integer id)
        Sets the id.
        Parameters:
        id - the new id
      • setUei

        public void setUei​(java.lang.String uei)
        Sets the UEI.
        Parameters:
        uei - the new UEI
      • setNodeId

        public void setNodeId​(java.lang.Integer nodeId)
        Sets the node id.
        Parameters:
        nodeId - the new node id
      • setNodeLabel

        public void setNodeLabel​(java.lang.String nodeLabel)
        Sets the node label.
        Parameters:
        nodeLabel - the new node label
      • setNodeSysObjectId

        public void setNodeSysObjectId​(java.lang.String nodeSysObjectId)
        Sets the node sys object id.
        Parameters:
        nodeSysObjectId - the new node sys object id
      • setForeignSource

        public void setForeignSource​(java.lang.String foreignSource)
        Sets the foreign source.
        Parameters:
        foreignSource - the new foreign source
      • setForeignId

        public void setForeignId​(java.lang.String foreignId)
        Sets the foreign id.
        Parameters:
        foreignId - the new foreign id
      • setAckTime

        public void setAckTime​(java.util.Date ackTime)
        Sets the acknowledge time.
        Parameters:
        ackTime - the new acknowledge time
      • setAckUser

        public void setAckUser​(java.lang.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​(java.lang.String appDn)
        Sets the App DN.
        Parameters:
        appDn - the new App DN
      • setClearKey

        public void setClearKey​(java.lang.String clearKey)
        Sets the clear key.
        Parameters:
        clearKey - the new clear key
      • setCount

        public void setCount​(java.lang.Integer count)
        Sets the count.
        Parameters:
        count - the new count
      • setDesc

        public void setDesc​(java.lang.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​(java.util.Date firstOccurrence)
        Sets the first occurrence.
        Parameters:
        firstOccurrence - the new first occurrence
      • setIpAddr

        public void setIpAddr​(java.lang.String ipAddr)
        Sets the IP address.
        Parameters:
        ipAddr - the new IP address
      • setLastOccurrence

        public void setLastOccurrence​(java.util.Date lastOccurrence)
        Sets the last occurrence.
        Parameters:
        lastOccurrence - the new last occurrence
      • setLogMsg

        public void setLogMsg​(java.lang.String logMsg)
        Sets the log message.
        Parameters:
        logMsg - the new log message
      • setObjectInstance

        public void setObjectInstance​(java.lang.String objectInstance)
        Sets the object instance.
        Parameters:
        objectInstance - the new object instance
      • setObjectType

        public void setObjectType​(java.lang.String objectType)
        Sets the object type.
        Parameters:
        objectType - the new object type
      • setOperInst

        public void setOperInst​(java.lang.String operInst)
        Sets the operator instructions.
        Parameters:
        operInst - the new operator instructions
      • setOssKey

        public void setOssKey​(java.lang.String ossKey)
        Sets the OSS key.
        Parameters:
        ossKey - the new OSS key
      • setOssState

        public void setOssState​(java.lang.String ossState)
        Sets the OSS state.
        Parameters:
        ossState - the new OSS state
      • setAlarmKey

        public void setAlarmKey​(java.lang.String alarmKey)
        Sets the alarm key.
        Parameters:
        alarmKey - the new alarm key
      • setService

        public void setService​(java.lang.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​(java.util.Date suppressed)
        Sets the suppressed.
        Parameters:
        suppressed - the new suppressed
      • setSuppressedUntil

        public void setSuppressedUntil​(java.util.Date suppressedUntil)
        Sets the suppressed until.
        Parameters:
        suppressedUntil - the new suppressed until
      • setSuppressedBy

        public void setSuppressedBy​(java.lang.String suppressedBy)
        Sets the suppressed by.
        Parameters:
        suppressedBy - the new suppressed by
      • setTicketId

        public void setTicketId​(java.lang.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​(java.lang.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​(java.util.Map<java.lang.String,​java.lang.String> eventParametersMap)
        Sets the event parameters map.
        Parameters:
        eventParametersMap - the event parameters map
      • setEventParametersCollection

        public void setEventParametersCollection​(java.util.List<OnmsEventParameter> eventParametersCollection)
        Sets the event parameters collection.
        Parameters:
        eventParametersCollection - the new event parameters collection
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object