Class PackageConfig
- java.lang.Object
-
- org.opennms.netmgt.telemetry.config.model.PackageConfig
-
- All Implemented Interfaces:
PackageDefinition
public class PackageConfig extends java.lang.Object implements PackageDefinition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PackageConfig.Filter
static class
PackageConfig.Rrd
-
Constructor Summary
Constructors Constructor Description PackageConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
PackageConfig.Filter
getFilter()
java.lang.String
getFilterRule()
The filter rule is used to match which sources should belong to this package.java.lang.String
getName()
java.util.Map<java.lang.String,java.lang.String>
getParameterMap()
Package specific parameters.java.util.List<Parameter>
getParameters()
PackageConfig.Rrd
getRrd()
The RRD settings are use to control the control of RRD files, when applicable.int
hashCode()
void
setFilter(PackageConfig.Filter filter)
void
setName(java.lang.String name)
void
setParameters(java.util.List<Parameter> parameters)
void
setRrd(PackageConfig.Rrd rrd)
java.lang.String
toString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getFilter
public PackageConfig.Filter getFilter()
-
setFilter
public void setFilter(PackageConfig.Filter filter)
-
getFilterRule
public java.lang.String getFilterRule()
Description copied from interface:PackageDefinition
The filter rule is used to match which sources should belong to this package. If the rule isnull
, then all sources should match.- Specified by:
getFilterRule
in interfacePackageDefinition
- Returns:
- the filter rule
-
getRrd
public PackageConfig.Rrd getRrd()
Description copied from interface:PackageDefinition
The RRD settings are use to control the control of RRD files, when applicable.- Specified by:
getRrd
in interfacePackageDefinition
- Returns:
- the rrd settings
-
setRrd
public void setRrd(PackageConfig.Rrd rrd)
-
getParameters
public java.util.List<Parameter> getParameters()
-
setParameters
public void setParameters(java.util.List<Parameter> parameters)
-
getParameterMap
public java.util.Map<java.lang.String,java.lang.String> getParameterMap()
Description copied from interface:PackageDefinition
Package specific parameters.- Specified by:
getParameterMap
in interfacePackageDefinition
- Returns:
- the parameter map
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-