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 |
---|---|
XmlCollectionSet |
collect(CollectionAgent agent,
XmlDataCollection collection,
Map<String,Object> parameters)
Collect.
|
protected void |
fillCollectionSet(String urlString,
Request request,
CollectionAgent agent,
XmlCollectionSet collectionSet,
XmlSource source)
Fill collection set.
|
protected void |
processXmlResource(XmlCollectionResource resource,
AttributeGroupType attribGroupType)
Process XML resource.
|
applyXsltTransformation, fillCollectionSet, getCollectionResource, getNodeDao, getResourceStorageDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, getXmlResourceType, parseRequest, parseString, parseUrl, preProcessHtml, setNodeDao, setResourceStorageDao, setRrdRepository, setServiceName
public XmlCollectionSet 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, XmlCollectionSet collectionSet, XmlSource source) throws Exception
AbstractXmlCollectionHandler
fillCollectionSet
in class AbstractXmlCollectionHandler
urlString
- the URL stringrequest
- the requestagent
- the collection agentcollectionSet
- the collection setsource
- the XML sourceException
- the exceptionprotected void processXmlResource(XmlCollectionResource resource, AttributeGroupType attribGroupType)
AbstractXmlCollectionHandler
processXmlResource
in class AbstractXmlCollectionHandler
resource
- the collection resourceattribGroupType
- the attribute group typeCopyright © 2017. All rights reserved.