Class SnmpCollection
- java.lang.Object
-
- org.opennms.netmgt.config.datacollection.SnmpCollection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class SnmpCollection extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
a grouping of SNMP related RRD parms, MIB object groups and sysoid based system definitions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnmpCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIncludeCollection(IncludeCollection includeCollection)
void
addResourceType(ResourceType resourceType)
SnmpCollection
clone()
boolean
equals(java.lang.Object obj)
Groups
getGroups()
MIB object groupsjava.util.List<IncludeCollection>
getIncludeCollections()
java.lang.Integer
getMaxVarsPerPdu()
java.lang.String
getName()
collector namejava.util.List<ResourceType>
getResourceTypes()
Rrd
getRrd()
RRD parmsjava.lang.String
getSnmpStorageFlag()
indicates if collected SNMP data is to be stored for "all" interfaces or only for the "primary" interface.Systems
getSystems()
sysOid-based systemsint
hashCode()
boolean
removeIncludeCollection(IncludeCollection includeCollection)
boolean
removeResourceType(ResourceType resourceType)
void
setGroups(Groups groups)
void
setIncludeCollections(java.util.List<IncludeCollection> includeCollections)
void
setMaxVarsPerPdu(java.lang.Integer maxVarsPerPdu)
void
setName(java.lang.String name)
void
setResourceTypes(java.util.List<ResourceType> resourceTypes)
void
setRrd(Rrd rrd)
void
setSnmpStorageFlag(java.lang.String snmpStorageFlag)
void
setSystems(Systems systems)
java.lang.String
toString()
void
visit(DatacollectionConfigVisitor visitor)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
collector name
-
setName
public void setName(java.lang.String name)
-
getMaxVarsPerPdu
public java.lang.Integer getMaxVarsPerPdu()
-
setMaxVarsPerPdu
public void setMaxVarsPerPdu(java.lang.Integer maxVarsPerPdu)
-
getSnmpStorageFlag
public java.lang.String getSnmpStorageFlag()
indicates if collected SNMP data is to be stored for "all" interfaces or only for the "primary" interface.
-
setSnmpStorageFlag
public void setSnmpStorageFlag(java.lang.String snmpStorageFlag)
-
getRrd
public Rrd getRrd()
RRD parms
-
setRrd
public void setRrd(Rrd rrd)
-
getIncludeCollections
public java.util.List<IncludeCollection> getIncludeCollections()
-
setIncludeCollections
public void setIncludeCollections(java.util.List<IncludeCollection> includeCollections)
-
addIncludeCollection
public void addIncludeCollection(IncludeCollection includeCollection) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
removeIncludeCollection
public boolean removeIncludeCollection(IncludeCollection includeCollection)
-
getResourceTypes
public java.util.List<ResourceType> getResourceTypes()
-
setResourceTypes
public void setResourceTypes(java.util.List<ResourceType> resourceTypes)
-
addResourceType
public void addResourceType(ResourceType resourceType) throws java.lang.IndexOutOfBoundsException
- Throws:
java.lang.IndexOutOfBoundsException
-
removeResourceType
public boolean removeResourceType(ResourceType resourceType)
-
getGroups
public Groups getGroups()
MIB object groups
-
setGroups
public void setGroups(Groups groups)
-
getSystems
public Systems getSystems()
sysOid-based systems
-
setSystems
public void setSystems(Systems systems)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
visit
public void visit(DatacollectionConfigVisitor visitor)
-
clone
public SnmpCollection clone()
- Overrides:
clone
in classjava.lang.Object
-
-