Package org.opennms.netmgt.collectd.tca
Class TcaCollector
- java.lang.Object
-
- org.opennms.netmgt.collection.api.AbstractServiceCollector
-
- org.opennms.netmgt.collectd.tca.TcaCollector
-
- All Implemented Interfaces:
ServiceCollector
public class TcaCollector extends AbstractServiceCollector
The Class TcaCollector.A collector specialized to retrieve special SNMP data from Juniper TCA Devices.
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description TcaCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionSet
collect(CollectionAgent agent, java.util.Map<java.lang.String,java.lang.Object> parameters)
Invokes a collection on the object.TcaDataCollectionConfigDao
getConfigDao()
Gets the TCA Data Collection Configuration DAO.ResourceStorageDao
getResourceStorageDao()
RrdRepository
getRrdRepository(java.lang.String collectionName)
Retrieve theRrdRepository
configuration for the given collection.void
initialize()
Initialize the collector.void
setConfigDao(TcaDataCollectionConfigDao configDao)
Sets the TCA Data Collection Configuration DAO.void
setLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)
void
setResourceStorageDao(ResourceStorageDao resourceStorageDao)
void
setResourceTypesDao(ResourceTypesDao resourceTypesDao)
-
Methods inherited from class org.opennms.netmgt.collection.api.AbstractServiceCollector
getEffectiveLocation, getRuntimeAttributes, marshalParameters, unmarshalParameters, validateAgent
-
-
-
-
Method Detail
-
initialize
public void initialize() throws CollectionInitializationException
Description copied from interface:ServiceCollector
Initialize the collector. This call will be invoked in OpenNMS before any other calls to the collector are made. This function may be invoked several times during the lifetime or the collector.- Specified by:
initialize
in interfaceServiceCollector
- Overrides:
initialize
in classAbstractServiceCollector
- Throws:
CollectionInitializationException
-
collect
public CollectionSet collect(CollectionAgent agent, java.util.Map<java.lang.String,java.lang.Object> parameters) throws CollectionException
Description copied from interface:ServiceCollector
Invokes a collection on the object. This call will be performed in both OpenNMS and Minion.- Parameters:
agent
- aorg.opennms.netmgt.collectd.CollectionAgent
object.parameters
- aMap
object.- Returns:
- a
org.opennms.netmgt.config.collector.CollectionSet
object. - Throws:
CollectionException
-
getRrdRepository
public RrdRepository getRrdRepository(java.lang.String collectionName)
Description copied from interface:ServiceCollector
Retrieve theRrdRepository
configuration for the given collection. This call will always be performed in OpenNMS.- Parameters:
collectionName
- aString
object.- Returns:
- a
RrdRepository
object.
-
getConfigDao
public TcaDataCollectionConfigDao getConfigDao()
Gets the TCA Data Collection Configuration DAO.- Returns:
- the TCA Data Collection Configuration DAO
-
setConfigDao
public void setConfigDao(TcaDataCollectionConfigDao configDao)
Sets the TCA Data Collection Configuration DAO.- Parameters:
configDao
- the new TCA Data Collection Configuration DAO
-
getResourceStorageDao
public ResourceStorageDao getResourceStorageDao()
-
setResourceStorageDao
public void setResourceStorageDao(ResourceStorageDao resourceStorageDao)
-
setResourceTypesDao
public void setResourceTypesDao(ResourceTypesDao resourceTypesDao)
-
setLocationAwareSnmpClient
public void setLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)
-
-