org.opennms.netmgt.collectd
Class JdbcCollector

java.lang.Object
  extended by org.opennms.netmgt.collectd.JdbcCollector
All Implemented Interfaces:
ServiceCollector

public class JdbcCollector
extends Object
implements ServiceCollector


Field Summary
 
Fields inherited from interface org.opennms.netmgt.collectd.ServiceCollector
COLLECTION_FAILED, COLLECTION_SUCCEEDED, COLLECTION_UNKNOWN, statusType
 
Constructor Summary
JdbcCollector()
           
 
Method Summary
 CollectionSet collect(CollectionAgent agent, EventProxy eproxy, Map<String,Object> parameters)
          Invokes a collection on the object.
 JdbcDataCollectionConfigDao getJdbcCollectionDao()
           
 RrdRepository getRrdRepository(String collectionName)
          getRrdRepository
 void initialize(CollectionAgent agent, Map<String,Object> parameters)
          initialize
 void initialize(Map<String,String> parameters)
          initialize
 void release()
          release
 void release(CollectionAgent agent)
          release
 void setJdbcCollectionDao(JdbcDataCollectionConfigDao jdbcCollectionDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcCollector

public JdbcCollector()
Method Detail

getJdbcCollectionDao

public JdbcDataCollectionConfigDao getJdbcCollectionDao()

setJdbcCollectionDao

public void setJdbcCollectionDao(JdbcDataCollectionConfigDao jdbcCollectionDao)

initialize

public void initialize(Map<String,String> parameters)
Description copied from interface: ServiceCollector

initialize

Specified by:
initialize in interface ServiceCollector
Parameters:
parameters - a Map object.

release

public void release()
Description copied from interface: ServiceCollector

release

Specified by:
release in interface ServiceCollector

initialize

public void initialize(CollectionAgent agent,
                       Map<String,Object> parameters)
Description copied from interface: ServiceCollector

initialize

Specified by:
initialize in interface ServiceCollector
Parameters:
agent - a CollectionAgent object.
parameters - a Map object.

release

public void release(CollectionAgent agent)
Description copied from interface: ServiceCollector

release

Specified by:
release in interface ServiceCollector
Parameters:
agent - a CollectionAgent object.

collect

public CollectionSet collect(CollectionAgent agent,
                             EventProxy eproxy,
                             Map<String,Object> parameters)
                      throws CollectionException
Description copied from interface: ServiceCollector
Invokes a collection on the object.

Specified by:
collect in interface ServiceCollector
Parameters:
agent - a CollectionAgent object.
eproxy - a EventProxy object.
parameters - a Map object.
Returns:
a CollectionSet object.
Throws:
CollectionException - if any.

getRrdRepository

public RrdRepository getRrdRepository(String collectionName)
Description copied from interface: ServiceCollector

getRrdRepository

Specified by:
getRrdRepository in interface ServiceCollector
Parameters:
collectionName - a String object.
Returns:
a RrdRepository object.


Copyright © 2011. All Rights Reserved.