org.opennms.netmgt.collectd
Class HttpCollector

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

public class HttpCollector
extends Object
implements ServiceCollector

Collect data via URI

Version:
$Id: $
Author:
David Hustace

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

Constructor Detail

HttpCollector

public HttpCollector()
Method Detail

collect

public CollectionSet collect(CollectionAgent agent,
                             EventProxy eproxy,
                             Map<String,Object> parameters)
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.

log

protected static ThreadCategory log()

initialize

public void initialize(Map<String,String> parameters)
                throws CollectionInitializationException

initialize

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

initialize

public void initialize(CollectionAgent agent,
                       Map<String,Object> parameters)

initialize

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

release

public void release()

release

Specified by:
release in interface ServiceCollector

release

public void release(CollectionAgent agent)

release

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

getRrdRepository

public RrdRepository getRrdRepository(String collectionName)

getRrdRepository

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


Copyright © 2011. All Rights Reserved.