Package org.apache.uima.ducc.common

Examples of org.apache.uima.ducc.common.NodeConfiguration.readConfiguration()


      String methodName = "initClasses";
        String me = Scheduler.class.getName() + ".Config";
        DuccLogger initLogger = new DuccLogger(me, COMPONENT_NAME);
        NodeConfiguration nc = new NodeConfiguration(filename, initLogger);
    try {
      nc.readConfiguration();
    } catch (Throwable e) {
            logger.error(methodName, null, e);
            logger.error(methodName, null, "Scheduler exits: unable to read configuration.");
            System.exit(1);
    }
View Full Code Here


    NodeConfiguration nc = null;
    String class_definitions = null;
    try {
      class_definitions =  System.getProperty(DUCC_HOME) + "/"+resources+"/"+SystemPropertyResolver.getStringProperty(DuccPropertiesResolver.ducc_rm_class_definitions, scheduler+"."+classes);
      nc = new NodeConfiguration(class_definitions, logger);
      nc.readConfiguration();
    }
    catch(Throwable t) {
      logger.error(location, jobid, t);
      logger.error(location, jobid, class_definitions);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.