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.
Modifier and Type | Field and Description |
---|---|
static String |
PM_GROUPS_FILENAME
The Constant PM_GROUPS_FILENAME.
|
static String |
XML_LAST_FILENAME
The Constant XML_LAST_FILENAME.
|
Constructor and Description |
---|
Sftp3gppXmlCollectionHandler() |
Modifier and Type | Method and Description |
---|---|
XmlCollectionSet |
collect(CollectionAgent agent,
XmlDataCollection collection,
Map<String,Object> parameters)
Collect.
|
String |
get3gppFormat(String resourceType)
Gets the 3GPP resource format.
|
Map<String,String> |
get3gppProperties(String format,
String measInfoId)
Gets the 3GPP properties based on measInfoId.
|
protected String |
parseUrl(String unformattedUrl,
CollectionAgent agent,
Integer collectionStep,
long currentTimestamp)
Parses the URL.
|
protected void |
processXmlResource(XmlCollectionResource resource,
AttributeGroupType attribGroupType)
Process XML resource.
|
fillCollectionSet, getCollectionResource, getNodeDao, getRrdRepository, getServiceName, getTimeStamp, getXmlDocument, getXmlDocument, getXmlResourceType, log, parseRequest, parseString, parseUrl, setNodeDao, setRrdRepository, setServiceName
public static final String PM_GROUPS_FILENAME
public static final String XML_LAST_FILENAME
public XmlCollectionSet collect(CollectionAgent agent, XmlDataCollection collection, Map<String,Object> parameters) throws CollectionException
XmlCollectionHandler
agent
- the collection agentcollection
- the XML collection configurationparameters
- the collector parametersCollectionException
- the collection exceptionprotected void processXmlResource(XmlCollectionResource resource, AttributeGroupType attribGroupType)
AbstractXmlCollectionHandler
processXmlResource
in class AbstractXmlCollectionHandler
resource
- the collection resourceattribGroupType
- the attribute group typeprotected String parseUrl(String unformattedUrl, CollectionAgent agent, Integer collectionStep, long currentTimestamp) throws IllegalArgumentException
unformattedUrl
- the unformatted URLagent
- the agentcollectionStep
- the collection step (in seconds)currentTimestamp
- the current timestampIllegalArgumentException
public String get3gppFormat(String resourceType)
resourceType
- the resource typeCopyright © 2015. All Rights Reserved.