Class Sftp3gppXmlCollectionHandler
- java.lang.Object
-
- org.opennms.protocols.xml.collector.AbstractXmlCollectionHandler
-
- org.opennms.protocols.xml.collector.Sftp3gppXmlCollectionHandler
-
- All Implemented Interfaces:
XmlCollectionHandler
public class Sftp3gppXmlCollectionHandler extends AbstractXmlCollectionHandler
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.
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description Sftp3gppXmlCollectionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionSet
collect(CollectionAgent agent, XmlDataCollection collection, Map<String,Object> parameters)
Collect.protected void
fillCollectionSet(String urlString, Request request, CollectionAgent agent, CollectionSetBuilder builder, XmlSource source)
Fill collection set.protected void
processXmlResource(CollectionSetBuilder builder, Resource resource, String resourceTypeName, String group)
Process XML resource.-
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:XmlCollectionHandler
Collect.- Specified by:
collect
in interfaceXmlCollectionHandler
- Overrides:
collect
in 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:AbstractXmlCollectionHandler
Fill collection set.- Specified by:
fillCollectionSet
in 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:AbstractXmlCollectionHandler
Process XML resource.- Specified by:
processXmlResource
in classAbstractXmlCollectionHandler
resource
- the collection resource
-
-