Class Downtime

  • All Implemented Interfaces:
    Serializable

    public class Downtime
    extends Object
    implements Serializable
    Downtime model. This determines the rates at which addresses are to be polled when they remain down for extended periods. Usually polling is done at lower rates when a node is down until a certain amount of downtime at which the node is marked 'deleted'.
    See Also:
    Serialized Form
    • Constructor Detail

      • Downtime

        public Downtime()
      • Downtime

        public Downtime​(long interval,
                        long begin,
                        long end)
      • Downtime

        public Downtime​(long begin,
                        String delete)
    • Method Detail

      • getBegin

        public Long getBegin()
        Start of the interval.
      • setBegin

        public void setBegin​(Long begin)
      • setBegin

        public void setBegin​(Integer begin)
      • getEnd

        public Long getEnd()
        End of the interval.
      • setEnd

        public void setEnd​(Long end)
      • setEnd

        public void setEnd​(Integer end)
      • hasEnd

        public boolean hasEnd()
      • getDelete

        public String getDelete()
        Attribute that determines if service is to be deleted when down continuously since the start time.
      • setDelete

        public void setDelete​(String delete)
      • getInterval

        public Long getInterval()
        Interval at which service is to be polled between the specified start and end when service has been continuously down.
      • setInterval

        public void setInterval​(Long interval)
      • setInterval

        public void setInterval​(Integer interval)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object