Package org.opennms.netmgt.config.poller
Class Package
- java.lang.Object
-
- org.opennms.netmgt.config.poller.Package
-
- All Implemented Interfaces:
Serializable
public class Package extends Object implements Serializable
Package encapsulating addresses, services to be polled for these addresses, etc..- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Package.ServiceMatch
-
Method Summary
-
-
-
Constructor Detail
-
Package
public Package()
-
Package
public Package(String name)
-
-
Method Detail
-
getName
public String getName()
Name or identifier for this package.
-
setName
public void setName(String name)
-
getRemote
@Deprecated public Boolean getRemote()
Deprecated.
-
setRemote
@Deprecated public void setRemote(Boolean remote)
Deprecated.
-
getPerspectiveOnly
public boolean getPerspectiveOnly()
-
setPerspectiveOnly
public void setPerspectiveOnly(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(String filter)
-
setFilter
public void setFilter(Filter filter)
-
addSpecific
public void addSpecific(String specific) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeSpecific
public boolean removeSpecific(String specific)
-
getIncludeRanges
public List<IncludeRange> getIncludeRanges()
-
setIncludeRanges
public void setIncludeRanges(List<IncludeRange> includeRanges)
-
addIncludeRange
public void addIncludeRange(IncludeRange includeRange) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeIncludeRange
public boolean removeIncludeRange(IncludeRange includeRange)
-
getExcludeRanges
public List<ExcludeRange> getExcludeRanges()
-
setExcludeRanges
public void setExcludeRanges(List<ExcludeRange> excludeRanges)
-
addExcludeRange
public void addExcludeRange(ExcludeRange excludeRange) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeExcludeRange
public boolean removeExcludeRange(ExcludeRange excludeRange)
-
addIncludeUrl
public void addIncludeUrl(String includeUrl) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeIncludeUrl
public boolean removeIncludeUrl(String includeUrl)
-
getRrd
public Rrd getRrd()
RRD parameters for response time data.
-
setRrd
public void setRrd(Rrd rrd)
-
addService
public void addService(Service service) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeService
public boolean removeService(Service service)
-
addOutageCalendar
public void addOutageCalendar(String outageCalendar) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeOutageCalendar
public boolean removeOutageCalendar(String outageCalendar)
-
addDowntime
public void addDowntime(Downtime downtime) throws IndexOutOfBoundsException
- Throws:
IndexOutOfBoundsException
-
removeDowntime
public boolean removeDowntime(Downtime downtime)
-
findService
public Optional<Package.ServiceMatch> findService(String svcName)
-
-