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 CollectionSetcollect(CollectionAgent agent, Map<String,Object> parameters)Invokes a collection on the object.TcaDataCollectionConfigDaogetConfigDao()Gets the TCA Data Collection Configuration DAO.ResourceStorageDaogetResourceStorageDao()RrdRepositorygetRrdRepository(String collectionName)Retrieve theRrdRepositoryconfiguration for the given collection.voidinitialize()Initialize the collector.voidsetBlobStore(BlobStore blobStore)voidsetConfigDao(TcaDataCollectionConfigDao configDao)Sets the TCA Data Collection Configuration DAO.voidsetLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)voidsetResourceStorageDao(ResourceStorageDao resourceStorageDao)voidsetResourceTypesDao(ResourceTypesDao resourceTypesDao)-
Methods inherited from class org.opennms.netmgt.collection.api.AbstractServiceCollector
getEffectiveLocation, getRuntimeAttributes, marshalParameters, unmarshalParameters, validateAgent
-
-
-
-
Method Detail
-
initialize
public void initialize() throws CollectionInitializationExceptionDescription copied from interface:ServiceCollectorInitialize 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:
initializein interfaceServiceCollector- Overrides:
initializein classAbstractServiceCollector- Throws:
CollectionInitializationException
-
collect
public CollectionSet collect(CollectionAgent agent, Map<String,Object> parameters) throws CollectionException
Description copied from interface:ServiceCollectorInvokes a collection on the object. This call will be performed in both OpenNMS and Minion.- Parameters:
agent- aorg.opennms.netmgt.collectd.CollectionAgentobject.parameters- aMapobject.- Returns:
- a
org.opennms.netmgt.config.collector.CollectionSetobject. - Throws:
CollectionException
-
getRrdRepository
public RrdRepository getRrdRepository(String collectionName)
Description copied from interface:ServiceCollectorRetrieve theRrdRepositoryconfiguration for the given collection. This call will always be performed in OpenNMS.- Parameters:
collectionName- aStringobject.- Returns:
- a
RrdRepositoryobject.
-
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)
-
setBlobStore
public void setBlobStore(BlobStore blobStore)
-
-