Class CatalogueConfig


  • public class CatalogueConfig
    extends Object
    Deals purely with the (de)serialisation of an XML config file for a DatasetCatalogue.
    Author:
    Guy Griffiths
    • Field Detail

      • configFile

        protected File configFile
    • Constructor Detail

      • CatalogueConfig

        protected CatalogueConfig()
      • CatalogueConfig

        public CatalogueConfig​(File configFile)
                        throws IOException,
                               javax.xml.bind.JAXBException
        Creates a NEW config with an empty file
        Parameters:
        configFile -
        Throws:
        IOException
        javax.xml.bind.JAXBException
    • Method Detail

      • loadDatasets

        public void loadDatasets()
      • getCacheSettings

        public CacheInfo getCacheSettings()
      • removeDataset

        public void removeDataset​(DatasetConfig dataset)
      • shutdown

        public static void shutdown()
      • serialise

        public void serialise​(Writer writer)
                       throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • generateSchema

        public void generateSchema​(String path)
                            throws IOException,
                                   javax.xml.bind.JAXBException
        Throws:
        IOException
        javax.xml.bind.JAXBException
      • deserialise

        public static CatalogueConfig deserialise​(Reader xmlConfig)
                                           throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException