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
|
public XmpCollectionFactory(String configFile) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
Constructor for XmpCollectionFactory.
configFile
- a String
object.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.IOException
- if any.public XmpCollectionFactory(Reader rdr) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException
Constructor for XmpCollectionFactory.
rdr
- a Reader
object.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.IOException
- if any.public static void init() throws IOException, FileNotFoundException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
init
IOException
- if any.FileNotFoundException
- if any.org.exolab.castor.xml.MarshalException
- if any.org.exolab.castor.xml.ValidationException
- if any.public static XmpCollectionFactory getInstance()
Getter for the field instance
.
XmpCollectionFactory
object.public RrdRepository getRrdRepository(String collectionName)
collectionName
- a String
object.RrdRepository
object.public XmpCollection getXmpCollection(String collectionName)
collectionName
- a String
object.XmpCollection
object.Copyright © 2016. All rights reserved.