Class OnmsMonitoredService

    • Field Detail

      • STATUS_MAP

        public static final java.util.Map<java.lang.String,​java.lang.String> STATUS_MAP
    • Constructor Detail

      • OnmsMonitoredService

        public OnmsMonitoredService()

        Constructor for OnmsMonitoredService.

    • Method Detail

      • getId

        public java.lang.Integer getId()
        Unique identifier for ifService.
        Returns:
        a Integer object.
      • getJsonId

        public java.lang.Integer getJsonId()
      • setId

        public void setId​(java.lang.Integer id)

        setId

        Parameters:
        id - a Integer object.
      • getXmlId

        public java.lang.String getXmlId()
        This id is used for the serialized representation such as json, xml etc.
      • setXmlId

        public void setXmlId​(java.lang.String id)
      • getIpAddress

        public java.net.InetAddress getIpAddress()

        getIpAddress

        Returns:
        a String object.
      • getIpAddressAsString

        public java.lang.String getIpAddressAsString()
        Deprecated.

        getIpAddress

        Returns:
        a String object.
      • getIfIndex

        public java.lang.Integer getIfIndex()

        getIfIndex

        Returns:
        a Integer object.
      • getLastGood

        public java.util.Date getLastGood()

        getLastGood

        Returns:
        a Date object.
      • setLastGood

        public void setLastGood​(java.util.Date lastgood)

        setLastGood

        Parameters:
        lastgood - a Date object.
      • getLastFail

        public java.util.Date getLastFail()

        getLastFail

        Returns:
        a Date object.
      • setLastFail

        public void setLastFail​(java.util.Date lastfail)

        setLastFail

        Parameters:
        lastfail - a Date object.
      • getQualifier

        public java.lang.String getQualifier()

        getQualifier

        Returns:
        a String object.
      • setQualifier

        public void setQualifier​(java.lang.String qualifier)

        setQualifier

        Parameters:
        qualifier - a String object.
      • getStatus

        public java.lang.String getStatus()

        getStatus

        Returns:
        a String object.
      • setStatus

        public void setStatus​(java.lang.String status)

        setStatus

        Parameters:
        status - a String object.
      • getStatusLong

        public java.lang.String getStatusLong()
      • getSource

        public java.lang.String getSource()

        getSource

        Returns:
        a String object.
      • setSource

        public void setSource​(java.lang.String source)

        setSource

        Parameters:
        source - a String object.
      • getNotify

        public java.lang.String getNotify()

        getNotify

        Returns:
        a String object.
      • setNotify

        public void setNotify​(java.lang.String notify)

        setNotify

        Parameters:
        notify - a String object.
      • getMetaData

        public java.util.List<OnmsMetaData> getMetaData()
      • setMetaData

        public void setMetaData​(java.util.List<OnmsMetaData> metaData)
      • addMetaData

        public void addMetaData​(java.lang.String context,
                                java.lang.String key,
                                java.lang.String value)
      • removeMetaData

        public void removeMetaData​(java.lang.String context,
                                   java.lang.String key)
      • removeMetaData

        public void removeMetaData​(java.lang.String context)
      • findMetaDataForContextAndKey

        public java.util.Optional<OnmsMetaData> findMetaDataForContextAndKey​(java.lang.String context,
                                                                             java.lang.String key)
      • getIpInterfaceId

        public java.lang.Integer getIpInterfaceId()
      • getNodeId

        public java.lang.Integer getNodeId()

        getNodeId

        Returns:
        a Integer object.
      • toString

        public java.lang.String toString()

        toString

        Overrides:
        toString in class java.lang.Object
        Returns:
        a String object.
      • getServiceId

        public java.lang.Integer getServiceId()

        getServiceId

        Returns:
        a Integer object.
      • getServiceName

        public java.lang.String getServiceName()

        getServiceName

        Returns:
        a String object.
      • isDown

        public boolean isDown()

        isDown

        Returns:
        a boolean.
      • getCurrentOutages

        public java.util.Set<OnmsOutage> getCurrentOutages()

        getCurrentOutages

        Returns:
        a Set object.
      • setCurrentOutages

        public void setCurrentOutages​(java.util.Set<OnmsOutage> currentOutages)

        setCurrentOutages

        Parameters:
        currentOutages - a Set object.
      • getApplications

        public java.util.Set<OnmsApplication> getApplications()

        getApplications

        Returns:
        a Set object.
      • setApplications

        public void setApplications​(java.util.Set<OnmsApplication> applications)

        setApplications

        Parameters:
        applications - a Set object.
      • addApplication

        public boolean addApplication​(OnmsApplication application)

        addApplication

        Parameters:
        application - a OnmsApplication object.
        Returns:
        a boolean.
      • removeApplication

        public boolean removeApplication​(OnmsApplication application)

        removeApplication

        Parameters:
        application - a OnmsApplication object.
        Returns:
        a boolean.
      • getForeignSource

        public java.lang.String getForeignSource()
      • getForeignId

        public java.lang.String getForeignId()