public class Sftp3gppXmlCollectionHandler extends AbstractXmlCollectionHandler
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.
Constructor and Description |
---|
Sftp3gppXmlCollectionHandler() |
Modifier and Type | Method and 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.
|
applyXsltTransformation, fillCollectionSet, getCollectionResource, getResourceStorageDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, parseRequest, parseString, parseUrl, preProcessHtml, setResourceStorageDao, setRrdRepository, setServiceName
public CollectionSet collect(CollectionAgent agent, XmlDataCollection collection, Map<String,Object> parameters) throws CollectionException
XmlCollectionHandler
collect
in interface XmlCollectionHandler
collect
in class AbstractXmlCollectionHandler
agent
- the collection agentcollection
- the XML collection configurationparameters
- the collector parametersCollectionException
- the collection exceptionprotected void fillCollectionSet(String urlString, Request request, CollectionAgent agent, CollectionSetBuilder builder, XmlSource source) throws Exception
AbstractXmlCollectionHandler
fillCollectionSet
in class AbstractXmlCollectionHandler
urlString
- the URL stringrequest
- the requestagent
- the collection agentsource
- the XML sourceException
- the exceptionprotected void processXmlResource(CollectionSetBuilder builder, Resource resource, String resourceTypeName, String group)
AbstractXmlCollectionHandler
processXmlResource
in class AbstractXmlCollectionHandler
resource
- the collection resourceCopyright © 2021. All rights reserved.