Package org.opennms.protocols.xml.vtdxml
Class Sftp3gppVTDXmlCollectionHandler
- java.lang.Object
-
- org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
-
- org.opennms.protocols.xml.vtdxml.AbstractVTDXmlCollectionHandler
-
- org.opennms.protocols.xml.vtdxml.Sftp3gppVTDXmlCollectionHandler
-
- All Implemented Interfaces:
XmlCollectionHandler
public class Sftp3gppVTDXmlCollectionHandler extends AbstractVTDXmlCollectionHandler
The custom implementation of the interface XmlCollectionHandler for 3GPP XML Data.This supports the processing of several files ordered by filename, and the timestamp between files won't be taken in consideration.
The state will be persisted on disk by saving the name of the last successfully processed file.
This implementation contains basically the same implementation for the method from Sftp3gppXmlCollectionHandler, but using the VTD-XML parser instead of DOM parser for faster performance.
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description Sftp3gppVTDXmlCollectionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionSetcollect(CollectionAgent agent, XmlDataCollection collection, Map<String,Object> parameters)Collect.protected voidfillCollectionSet(String urlString, Request request, CollectionAgent agent, CollectionSetBuilder builder, XmlSource source)Fill collection set.protected voidprocessXmlResource(CollectionSetBuilder builder, Resource resource, String resourceTypeName, String group)Process XML resource.-
Methods inherited from class org.opennms.protocols.xml.vtdxml.AbstractVTDXmlCollectionHandler
fillCollectionSet, getTimeStamp, getVTDXmlDocument, getVTDXmlDocument
-
Methods inherited from class org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
applyXsltTransformation, fillCollectionSet, getBlobStore, getCollectionResource, getResourceStorageDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, parseRequest, parseString, parseUrl, preProcessHtml, setBlobStore, setResourceStorageDao, setRrdRepository, setServiceName
-
-
-
-
Method Detail
-
collect
public CollectionSet collect(CollectionAgent agent, XmlDataCollection collection, Map<String,Object> parameters) throws CollectionException
Description copied from interface:XmlCollectionHandlerCollect.- Specified by:
collectin interfaceXmlCollectionHandler- Overrides:
collectin classAbstractXmlCollectionHandler- Parameters:
agent- the collection agentcollection- the XML collection configurationparameters- the collector parameters- Returns:
- the XML collection set
- Throws:
CollectionException- the collection exception
-
fillCollectionSet
protected void fillCollectionSet(String urlString, Request request, CollectionAgent agent, CollectionSetBuilder builder, XmlSource source) throws Exception
Description copied from class:AbstractXmlCollectionHandlerFill collection set.- Specified by:
fillCollectionSetin classAbstractXmlCollectionHandler- Parameters:
urlString- the URL stringrequest- the requestagent- the collection agentsource- the XML source- Throws:
Exception- the exception
-
processXmlResource
protected void processXmlResource(CollectionSetBuilder builder, Resource resource, String resourceTypeName, String group)
Description copied from class:AbstractXmlCollectionHandlerProcess XML resource.- Specified by:
processXmlResourcein classAbstractXmlCollectionHandlerresource- the collection resource
-
-