Package org.apache.oodt.cas.pge.writers

Examples of org.apache.oodt.cas.pge.writers.SciPgeConfigFileWriter


      }

      // Load writer and write file.
      logger.fine("Loading writer class for sci pge config file ["
            + dynamicConfigFile.getFilePath() + "]...");
      SciPgeConfigFileWriter writer = createSciPgeConfigFileWriter(
            dynamicConfigFile.getWriterClass(), logger);
      logger.fine("Loaded writer [" + writer.getClass().getCanonicalName()
            + "] for sci pge config file [" + dynamicConfigFile.getFilePath()
            + "]...");
      logger.info("Writing sci pge config file [" + dynamicConfigFile.getFilePath()
                  + "]...");
      File configFile = writer.createConfigFile(dynamicConfigFile.getFilePath(),
            pgeMetadata.asMetadata(), logger, dynamicConfigFile.getArgs());
      if (!configFile.exists()) {
         throw new Exception("Writer failed to create config file ["
               + configFile + "], exists returned false");
      }
View Full Code Here


            throws Exception {
        File parentDir = new File(dynamicConfigFile.getFilePath())
                .getParentFile();
        if (!parentDir.exists())
            parentDir.mkdirs();
        SciPgeConfigFileWriter writer = (SciPgeConfigFileWriter) Class.forName(
                dynamicConfigFile.getWriterClass()).newInstance();
        writer.createConfigFile(dynamicConfigFile.getFilePath(),
                this.pgeMetadata.getMetadata(), dynamicConfigFile.getArgs());
    }
View Full Code Here

      }

      // Load writer and write file.
      logger.fine("Loading writer class for science PGE file ["
            + dynamicConfigFile.getFilePath() + "]...");
      SciPgeConfigFileWriter writer = createSciPgeConfigFileWriter(
            dynamicConfigFile.getWriterClass(), logger);
      logger.fine("Loaded writer [" + writer.getClass().getCanonicalName()
            + "] for science PGE file [" + dynamicConfigFile.getFilePath()
            + "]...");
      logger.info("Writing science PGE file [" + dynamicConfigFile.getFilePath()
                  + "]...");
      File configFile = writer.createConfigFile(dynamicConfigFile.getFilePath(),
            pgeMetadata.asMetadata(), dynamicConfigFile.getArgs());
      if (!configFile.exists()) {
         throw new Exception("Writer failed to create config file ["
               + configFile + "], exists returned false");
      }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.pge.writers.SciPgeConfigFileWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.