Class Outage


  • public class Outage
    extends java.lang.Object
    A JavaBean for holding information about a single outage.
    Since:
    1.8.1
    Version:
    $Id: $
    Author:
    Lawrence Karnowski
    • Field Detail

      • outageId

        protected int outageId
      • nodeId

        protected int nodeId
      • ipAddress

        protected java.lang.String ipAddress
      • hostname

        protected java.lang.String hostname
      • nodeLabel

        protected java.lang.String nodeLabel
      • serviceId

        protected int serviceId
      • serviceName

        protected java.lang.String serviceName
      • lostServiceTime

        protected java.util.Date lostServiceTime
      • regainedServiceTime

        protected java.util.Date regainedServiceTime
      • lostServiceEventId

        protected java.lang.Integer lostServiceEventId
      • regainedServiceEventId

        protected java.lang.Integer regainedServiceEventId
      • lostServiceNotificationId

        protected java.lang.Integer lostServiceNotificationId
      • lostServiceNotificationAcknowledgedBy

        protected java.lang.String lostServiceNotificationAcknowledgedBy
      • suppressTime

        protected java.util.Date suppressTime
      • suppressedBy

        protected java.lang.String suppressedBy
      • building

        protected java.lang.String building
      • location

        protected java.lang.String location
      • eventLocation

        protected java.lang.String eventLocation
      • perspectiveLocation

        protected java.lang.String perspectiveLocation
    • Constructor Detail

      • Outage

        protected Outage()

        Constructor for Outage.

      • Outage

        protected Outage​(int outageId,
                         int nodeId,
                         java.lang.String nodeLabel,
                         java.lang.String ipAddress,
                         java.lang.String hostname,
                         int serviceId,
                         java.lang.String serviceName,
                         java.util.Date lostServiceTime,
                         java.util.Date regainedServiceTime,
                         java.lang.Integer lostServiceEventId,
                         java.lang.Integer regainedServiceEventId,
                         java.lang.Integer lostServiceNotificationId,
                         java.lang.String lostServiceNotificationAcknowledgedBy,
                         java.util.Date suppressTime,
                         java.lang.String suppressedBy)

        Constructor for Outage.

        Parameters:
        outageId - a int.
        nodeId - a int.
        nodeLabel - a String object.
        ipAddress - a String object.
        hostname - a String object.
        serviceId - a int.
        serviceName - a String object.
        lostServiceTime - a Date object.
        regainedServiceTime - a Date object.
        lostServiceEventId - a Integer object.
        regainedServiceEventId - a Integer object.
        lostServiceNotificationId - a Integer object.
        lostServiceNotificationAcknowledgedBy - a String object.
        suppressTime - a Date object.
        suppressedBy - a String object.
      • Outage

        protected Outage​(int outageId,
                         int nodeId,
                         java.lang.String nodeLabel,
                         java.lang.String ipAddress,
                         java.lang.String hostname,
                         int serviceId,
                         java.lang.String serviceName,
                         java.util.Date lostServiceTime,
                         java.util.Date regainedServiceTime,
                         java.lang.Integer lostServiceEventId,
                         java.lang.Integer regainedServiceEventId,
                         java.lang.Integer lostServiceNotificationId,
                         java.lang.String lostServiceNotificationAcknowledgedBy,
                         java.util.Date suppressTime,
                         java.lang.String suppressedBy,
                         java.lang.String building)

        Constructor for Outage.

        Parameters:
        outageId - a int.
        nodeId - a int.
        nodeLabel - a String object.
        ipAddress - a String object.
        hostname - a String object.
        serviceId - a int.
        serviceName - a String object.
        lostServiceTime - a Date object.
        regainedServiceTime - a Date object.
        lostServiceEventId - a Integer object.
        regainedServiceEventId - a Integer object.
        lostServiceNotificationId - a Integer object.
        lostServiceNotificationAcknowledgedBy - a String object.
        suppressTime - a Date object.
        suppressedBy - a String object.
        building - a String object.
    • Method Detail

      • getId

        public int getId()

        getId

        Returns:
        a int.
      • getNodeId

        public int getNodeId()

        Getter for the field nodeId.

        Returns:
        a int.
      • getIpAddress

        public java.lang.String getIpAddress()

        Getter for the field ipAddress.

        Returns:
        a String object.
      • getHostname

        public java.lang.String getHostname()
        can be null
        Returns:
        a String object.
      • getNodeLabel

        public java.lang.String getNodeLabel()
        can be null
        Returns:
        a String object.
      • getServiceId

        public int getServiceId()

        Getter for the field serviceId.

        Returns:
        a int.
      • getServiceName

        public java.lang.String getServiceName()
        can be null
        Returns:
        a String object.
      • getLostServiceTime

        public java.util.Date getLostServiceTime()

        Getter for the field lostServiceTime.

        Returns:
        a Date object.
      • getRegainedServiceTime

        public java.util.Date getRegainedServiceTime()
        can be null
        Returns:
        a Date object.
      • getLostServiceEventId

        public java.lang.Integer getLostServiceEventId()
        can be null
        Returns:
        a Integer object.
      • getRegainedServiceEventId

        public java.lang.Integer getRegainedServiceEventId()
        can be null
        Returns:
        a Integer object.
      • getLostServiceNotificationId

        public java.lang.Integer getLostServiceNotificationId()
        can be null
        Returns:
        a Integer object.
      • getLostServiceNotificationAcknowledgedBy

        public java.lang.String getLostServiceNotificationAcknowledgedBy()
        can be null
        Returns:
        a String object.
      • getSuppressTime

        public java.util.Date getSuppressTime()

        Getter for the field suppressTime.

        Returns:
        a Date object.
      • getSuppressedBy

        public java.lang.String getSuppressedBy()

        Getter for the field suppressedBy.

        Returns:
        a String object.
      • getBuilding

        public java.lang.String getBuilding()
        can be null
        Returns:
        a String object.
      • getTimeDown

        public java.util.Date getTimeDown()
        Deprecated.
        Please use getLostServiceTime instead.

        getTimeDown

        Returns:
        a Date object.
      • getLocation

        public java.lang.String getLocation()
      • setLocation

        public void setLocation​(java.lang.String location)
      • getEventLocation

        public java.lang.String getEventLocation()
      • setEventLocation

        public void setEventLocation​(java.lang.String eventLocation)
      • getPerspectiveLocation

        public java.lang.String getPerspectiveLocation()
      • setPerspectiveLocation

        public void setPerspectiveLocation​(java.lang.String perspectiveLocation)
      • toString

        public java.lang.String toString()

        toString

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