org.opennms.protocols.xml.collector
Class DefaultXmlCollectionHandler

java.lang.Object
  extended by org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
      extended by org.opennms.protocols.xml.collector.DefaultXmlCollectionHandler
All Implemented Interfaces:
XmlCollectionHandler

public class DefaultXmlCollectionHandler
extends AbstractXmlCollectionHandler

The default implementation of the interface XmlCollectionHandler based on AbstractXmlCollectionHandler.

Author:
Alejandro Galue

Constructor Summary
DefaultXmlCollectionHandler()
           
 
Method Summary
 XmlCollectionSet collect(CollectionAgent agent, XmlDataCollection collection, Map<String,Object> parameters)
          Collect.
protected  void processXmlResource(XmlCollectionResource collectionResource, AttributeGroupType attribGroupType)
          Process XML resource.
 
Methods inherited from class org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
fillCollectionSet, getCollectionResource, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlResourceType, log, parseUrl, setRrdRepository, setServiceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXmlCollectionHandler

public DefaultXmlCollectionHandler()
Method Detail

collect

public XmlCollectionSet collect(CollectionAgent agent,
                                XmlDataCollection collection,
                                Map<String,Object> parameters)
                         throws CollectionException
Description copied from interface: XmlCollectionHandler
Collect.

Parameters:
agent - the collection agent
collection - the XML collection configuration
parameters - the collector parameters
Returns:
the XML collection set
Throws:
CollectionException - the collection exception

processXmlResource

protected void processXmlResource(XmlCollectionResource collectionResource,
                                  AttributeGroupType attribGroupType)
Description copied from class: AbstractXmlCollectionHandler
Process XML resource.

Specified by:
processXmlResource in class AbstractXmlCollectionHandler
Parameters:
collectionResource - the collection resource
attribGroupType - the attribute group type


Copyright © 2011. All Rights Reserved.