Class Package

  • All Implemented Interfaces:
    java.io.Serializable

    public class Package
    extends java.lang.Object
    implements java.io.Serializable
    Package encapsulating addresses, services to be polled for these addresses, etc..
    See Also:
    Serialized Form
    • Constructor Detail

      • Package

        public Package()
      • Package

        public Package​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Name or identifier for this package.
      • setName

        public void setName​(java.lang.String name)
      • getRemote

        @Deprecated
        public java.lang.Boolean getRemote()
        Deprecated.
      • setRemote

        @Deprecated
        public void setRemote​(java.lang.Boolean remote)
        Deprecated.
      • getPerspectiveOnly

        public boolean getPerspectiveOnly()
      • setPerspectiveOnly

        public void setPerspectiveOnly​(java.lang.Boolean perspectiveOnly)
      • getFilter

        public Filter getFilter()
        A rule which addresses belonging to this package must pass. This package is applied only to addresses that pass this filter.
      • setFilter

        public void setFilter​(java.lang.String filter)
      • setFilter

        public void setFilter​(Filter filter)
      • getSpecifics

        public java.util.List<java.lang.String> getSpecifics()
      • setSpecifics

        public void setSpecifics​(java.util.List<java.lang.String> specifics)
      • addSpecific

        public void addSpecific​(java.lang.String specific)
                         throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • removeSpecific

        public boolean removeSpecific​(java.lang.String specific)
      • getIncludeRanges

        public java.util.List<IncludeRange> getIncludeRanges()
      • setIncludeRanges

        public void setIncludeRanges​(java.util.List<IncludeRange> includeRanges)
      • addIncludeRange

        public void addIncludeRange​(IncludeRange includeRange)
                             throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • addIncludeRange

        public void addIncludeRange​(java.lang.String begin,
                                    java.lang.String end)
      • removeIncludeRange

        public boolean removeIncludeRange​(IncludeRange includeRange)
      • getExcludeRanges

        public java.util.List<ExcludeRange> getExcludeRanges()
      • setExcludeRanges

        public void setExcludeRanges​(java.util.List<ExcludeRange> excludeRanges)
      • addExcludeRange

        public void addExcludeRange​(ExcludeRange excludeRange)
                             throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • removeExcludeRange

        public boolean removeExcludeRange​(ExcludeRange excludeRange)
      • getIncludeUrls

        public java.util.List<java.lang.String> getIncludeUrls()
      • setIncludeUrls

        public void setIncludeUrls​(java.util.List<java.lang.String> includeUrls)
      • addIncludeUrl

        public void addIncludeUrl​(java.lang.String includeUrl)
                           throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • removeIncludeUrl

        public boolean removeIncludeUrl​(java.lang.String includeUrl)
      • getRrd

        public Rrd getRrd()
        RRD parameters for response time data.
      • setRrd

        public void setRrd​(Rrd rrd)
      • getServices

        public java.util.List<Service> getServices()
      • setServices

        public void setServices​(java.util.List<Service> services)
      • addService

        public void addService​(Service service)
                        throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • removeService

        public boolean removeService​(Service service)
      • getService

        public Service getService​(java.lang.String serviceName)
      • getOutageCalendars

        public java.util.List<java.lang.String> getOutageCalendars()
      • setOutageCalendars

        public void setOutageCalendars​(java.util.List<java.lang.String> outageCalendars)
      • addOutageCalendar

        public void addOutageCalendar​(java.lang.String outageCalendar)
                               throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • removeOutageCalendar

        public boolean removeOutageCalendar​(java.lang.String outageCalendar)
      • getDowntimes

        public java.util.List<Downtime> getDowntimes()
      • setDowntimes

        public void setDowntimes​(java.util.List<Downtime> downtimes)
      • addDowntime

        public void addDowntime​(Downtime downtime)
                         throws java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.IndexOutOfBoundsException
      • removeDowntime

        public boolean removeDowntime​(Downtime downtime)
      • 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
      • toString

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

        public java.util.Optional<Package.ServiceMatch> findService​(java.lang.String svcName)