Class XmpCollectionFactory


  • public class XmpCollectionFactory
    extends java.lang.Object
    • Constructor Detail

      • XmpCollectionFactory

        public XmpCollectionFactory​(java.lang.String configFile)
                             throws java.io.IOException

        Constructor for XmpCollectionFactory.

        Parameters:
        configFile - a String object.
        Throws:
        java.io.IOException - if any.
      • XmpCollectionFactory

        public XmpCollectionFactory​(java.io.Reader rdr)
                             throws java.io.IOException

        Constructor for XmpCollectionFactory.

        Parameters:
        rdr - a Reader object.
        Throws:
        java.io.IOException - if any.
    • Method Detail

      • init

        public static void init()
                         throws java.io.IOException,
                                java.io.FileNotFoundException

        init

        Throws:
        java.io.IOException - if any.
        java.io.FileNotFoundException - if any.
      • getRrdPath

        public java.lang.String getRrdPath()

        Getter for the field rrdPath.

        Returns:
        a String object.
      • getRrdRepository

        public RrdRepository getRrdRepository​(java.lang.String collectionName)
        given a collection name, fetch its RRD info from the config file via the XmpDatacollectionConfig class and return an new repository *
        Parameters:
        collectionName - a String object.
        Returns:
        a RrdRepository object.
      • getXmpCollection

        public XmpCollection getXmpCollection​(java.lang.String collectionName)
        given a collection name, fetch it from the config file via the XmpDatacollectionConfig class *
        Parameters:
        collectionName - a String object.
        Returns:
        a XmpCollection object.