public class XmpCollectionFactory extends Object
Constructor and Description |
---|
XmpCollectionFactory(Reader rdr)
Constructor for XmpCollectionFactory.
|
XmpCollectionFactory(String configFile)
Constructor for XmpCollectionFactory.
|
Modifier and Type | Method and Description |
---|---|
static XmpCollectionFactory |
getInstance()
Getter for the field
instance . |
String |
getRrdPath()
Getter for the field
rrdPath . |
RrdRepository |
getRrdRepository(String collectionName)
given a collection name, fetch its RRD info from the config file via
the XmpDatacollectionConfig class and return an new repository *
|
XmpCollection |
getXmpCollection(String collectionName)
given a collection name, fetch it from the config file via
the XmpDatacollectionConfig class *
|
static void |
init()
init
|
static void |
setInstance(XmpCollectionFactory instance) |
public XmpCollectionFactory(String configFile) throws IOException
Constructor for XmpCollectionFactory.
configFile
- a String
object.IOException
- if any.public XmpCollectionFactory(Reader rdr) throws IOException
Constructor for XmpCollectionFactory.
rdr
- a Reader
object.IOException
- if any.public static void init() throws IOException, FileNotFoundException
init
IOException
- if any.FileNotFoundException
- if any.public static XmpCollectionFactory getInstance()
Getter for the field instance
.
XmpCollectionFactory
object.public static void setInstance(XmpCollectionFactory instance)
public RrdRepository getRrdRepository(String collectionName)
collectionName
- a String
object.RrdRepository
object.public XmpCollection getXmpCollection(String collectionName)
collectionName
- a String
object.XmpCollection
object.Copyright © 2017. All rights reserved.