Class Package

    • Constructor Detail

      • Package

        public Package()
      • Package

        public Package​(Package pkg)
        Copy constructor.
        Parameters:
        pkg -
    • Method Detail

      • getName

        public String getName()
        The name or identifier for this package
      • setName

        public void setName​(String name)
      • 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​(Filter filter)
      • getSpecifics

        public List<String> getSpecifics()
      • setSpecifics

        public void setSpecifics​(List<String> specifics)
      • removeSpecific

        public boolean removeSpecific​(String specific)
      • hasSpecific

        public boolean hasSpecific​(byte[] addr)
      • setIncludeRanges

        public void setIncludeRanges​(List<IncludeRange> ranges)
      • removeIncludeRange

        public boolean removeIncludeRange​(IncludeRange range)
      • hasIncludeRange

        public boolean hasIncludeRange​(String addr)
      • setExcludeRanges

        public void setExcludeRanges​(List<ExcludeRange> ranges)
      • removeExcludeRange

        public boolean removeExcludeRange​(ExcludeRange range)
      • hasExcludeRange

        public boolean hasExcludeRange​(String addr)
      • getIncludeUrls

        public List<String> getIncludeUrls()
      • setIncludeUrlCollection

        public void setIncludeUrlCollection​(List<String> urls)
      • removeIncludeUrl

        public boolean removeIncludeUrl​(String url)
      • hasSpecificUrl

        public boolean hasSpecificUrl​(String iface,
                                      boolean hasSpecific)
      • getStoreByIfAlias

        public String getStoreByIfAlias()
        Flag for storing collected data by domain/ifAlias. Defaults to false. Allowable values are true, false.
      • setStoreByIfAlias

        public void setStoreByIfAlias​(String storeByIfAlias)
      • getStoreByNodeID

        public String getStoreByNodeID()
        Flag for storing collected data by nodeid/interface name. Defaults to normal. Allowable values are true, false, normal.
      • setStoreByNodeID

        public void setStoreByNodeID​(String storeByNodeID)
      • getStorFlagOverride

        public String getStorFlagOverride()
        RFlag for controlling how interfaces are selected for data collection by domain/ifAlias. If true, storage will occur for any interface on the node found to have an valid ifAlias. Otherwise data will be stored only if the interface is configured for data collection. Defaults to false.
      • setStorFlagOverride

        public void setStorFlagOverride​(String storFlagOverride)
      • getIfAliasDomain

        public String getIfAliasDomain()
        The name of the domain covered by this collection package. Defaults to package name.
      • setIfAliasDomain

        public void setIfAliasDomain​(String ifAliasDomain)
      • getIfAliasComment

        public String getIfAliasComment()
        A character or string for terminating ifAlias text. In effect, any text beginning with this character or string becomes a comment and is not considered part of the ifAlias when naming storage files and displaying data. Defaults to null.
      • setIfAliasComment

        public void setIfAliasComment​(String ifAliasComment)
      • setServices

        public void setServices​(List<Service> services)
      • removeService

        public boolean removeService​(Service service)
      • serviceInPackageAndEnabled

        public boolean serviceInPackageAndEnabled​(String svcName)
        Returns true if the service is part of the package and the status of the service is set to "on". Returns false if the service is not in the package or it is but the status of the service is set to "off".
        Parameters:
        svcName - The service name to lookup.
        Returns:
        a boolean.
      • getOutageCalendars

        public List<String> getOutageCalendars()
      • setOutageCalendars

        public void setOutageCalendars​(List<String> calendars)
      • removeOutageCalendar

        public boolean removeOutageCalendar​(String calendar)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isRemote

        public boolean isRemote()
      • setRemote

        public void setRemote​(boolean remote)