Class Outage


  • public class Outage
    extends 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 String ipAddress
      • hostname

        protected String hostname
      • nodeLabel

        protected String nodeLabel
      • serviceId

        protected int serviceId
      • serviceName

        protected String serviceName
      • lostServiceTime

        protected Date lostServiceTime
      • regainedServiceTime

        protected Date regainedServiceTime
      • lostServiceEventId

        protected Integer lostServiceEventId
      • regainedServiceEventId

        protected Integer regainedServiceEventId
      • lostServiceNotificationId

        protected Integer lostServiceNotificationId
      • lostServiceNotificationAcknowledgedBy

        protected String lostServiceNotificationAcknowledgedBy
      • suppressTime

        protected Date suppressTime
      • suppressedBy

        protected String suppressedBy
      • building

        protected String building
      • location

        protected String location
      • eventLocation

        protected String eventLocation
      • perspectiveLocation

        protected String perspectiveLocation
    • Constructor Detail

      • Outage

        protected Outage()

        Constructor for Outage.

      • Outage

        protected Outage​(int outageId,
                         int nodeId,
                         String nodeLabel,
                         String ipAddress,
                         String hostname,
                         int serviceId,
                         String serviceName,
                         Date lostServiceTime,
                         Date regainedServiceTime,
                         Integer lostServiceEventId,
                         Integer regainedServiceEventId,
                         Integer lostServiceNotificationId,
                         String lostServiceNotificationAcknowledgedBy,
                         Date suppressTime,
                         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,
                         String nodeLabel,
                         String ipAddress,
                         String hostname,
                         int serviceId,
                         String serviceName,
                         Date lostServiceTime,
                         Date regainedServiceTime,
                         Integer lostServiceEventId,
                         Integer regainedServiceEventId,
                         Integer lostServiceNotificationId,
                         String lostServiceNotificationAcknowledgedBy,
                         Date suppressTime,
                         String suppressedBy,
                         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 String getIpAddress()

        Getter for the field ipAddress.

        Returns:
        a String object.
      • getHostname

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

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

        public int getServiceId()

        Getter for the field serviceId.

        Returns:
        a int.
      • getServiceName

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

        public Date getLostServiceTime()

        Getter for the field lostServiceTime.

        Returns:
        a Date object.
      • getRegainedServiceTime

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

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

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

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

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

        public Date getSuppressTime()

        Getter for the field suppressTime.

        Returns:
        a Date object.
      • getSuppressedBy

        public String getSuppressedBy()

        Getter for the field suppressedBy.

        Returns:
        a String object.
      • getBuilding

        public String getBuilding()
        can be null
        Returns:
        a String object.
      • getLocation

        public String getLocation()
      • setLocation

        public void setLocation​(String location)
      • getEventLocation

        public String getEventLocation()
      • setEventLocation

        public void setEventLocation​(String eventLocation)
      • getPerspectiveLocation

        public String getPerspectiveLocation()
      • setPerspectiveLocation

        public void setPerspectiveLocation​(String perspectiveLocation)