org.opennms.netmgt.collectd
Class XmpCollector

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

public class XmpCollector
extends Object
implements ServiceCollector


Field Summary
 
Fields inherited from interface org.opennms.netmgt.collectd.ServiceCollector
COLLECTION_FAILED, COLLECTION_SUCCEEDED, COLLECTION_UNKNOWN, statusType
 
Constructor Summary
XmpCollector()
           
 
Method Summary
 CollectionSet collect(CollectionAgent agent, EventProxy eproxy, Map<String,String> parameters)
          Collect data, via XMP, from a particular agent EventProxy is used to send opennms events into the system in case a collection fails or if a system is back working again after a failure (suceed event).
 RrdRepository getRrdRepository(String collectionName)
           
 void initialize(CollectionAgent agent, Map parameters)
          initialize the querying of a particular agent/interface with parameters specific to this agent/interface
 void initialize(Map parameters)
          initialize our XmpCollector with global parameters
 void release()
          Release/stop all querying of agents/interfaces and release state associated with them
 void release(CollectionAgent agent)
          Release/stop querying a particular agent
 String serviceName()
          who am I and what am I ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmpCollector

public XmpCollector()
Method Detail

initialize

public void initialize(Map parameters)
initialize our XmpCollector with global parameters

Specified by:
initialize in interface ServiceCollector

initialize

public void initialize(CollectionAgent agent,
                       Map parameters)
initialize the querying of a particular agent/interface with parameters specific to this agent/interface

Specified by:
initialize in interface ServiceCollector

release

public void release()
Release/stop all querying of agents/interfaces and release state associated with them

Specified by:
release in interface ServiceCollector

release

public void release(CollectionAgent agent)
Release/stop querying a particular agent

Specified by:
release in interface ServiceCollector

serviceName

public String serviceName()
who am I and what am I ?


collect

public CollectionSet collect(CollectionAgent agent,
                             EventProxy eproxy,
                             Map<String,String> parameters)
Collect data, via XMP, from a particular agent EventProxy is used to send opennms events into the system in case a collection fails or if a system is back working again after a failure (suceed event). But otherwise, no events sent if collection succeeds. Collect is called once per agent per collection cycle. Parameters are a map of String Key/String Value passed in. Keys come from collectd config

Specified by:
collect in interface ServiceCollector

getRrdRepository

public RrdRepository getRrdRepository(String collectionName)
Specified by:
getRrdRepository in interface ServiceCollector


Copyright © 2009. All Rights Reserved.