Package org.apache.uima.ducc.common.utils

Examples of org.apache.uima.ducc.common.utils.DuccProperties.load()


      if (cps != null) {
          return cps[type];
      }
      DuccProperties props = new DuccProperties();
      try {
          props.load(IDuccEnv.DUCC_CLASSPATH_FILE);
      } catch (Exception e) {
          logger.error("getClasspath", null, "Using full classpath as failed to load " + IDuccEnv.DUCC_CLASSPATH_FILE);
          return System.getProperty("java.class.path");
      }
      // If reload specified don't cache the results (for ease of testing changes to the classpaths)
View Full Code Here


                    int ndx = d.lastIndexOf(".");
                    String stem = d.substring(0, ndx);
                   
                    DuccProperties props = new DuccProperties();
                    String props_filename = serviceFileKey(d);
                    props.load(props_filename);

                   
                    DuccProperties metaprops = new DuccProperties();
                    String meta_filename = serviceFileKey(stem + ".meta");
                    metaprops.load(meta_filename);
View Full Code Here

                    props.load(props_filename);

                   
                    DuccProperties metaprops = new DuccProperties();
                    String meta_filename = serviceFileKey(stem + ".meta");
                    metaprops.load(meta_filename);
                   
                    String sc = metaprops.getProperty("service-class");
                    if ( (sc != null) && ( sc.equals("Implicit") || sc.equals("Submitted") ) ) {
                        logger.info(methodName, null, "Scrubbing", sc, "service", stem);
                        deleteProperties(stem, meta_filename, metaprops, props_filename, props);
View Full Code Here

   *          - property file to read
   * @throws Exception
   */
  public void loadProperties(String componentProperties) throws Exception {
    DuccProperties duccProperties = new DuccProperties();
    duccProperties.load((String) System.getProperty(componentProperties));
    // resolve any placeholders
    enrichSystemPropertiesWith(duccProperties);
    // Compose Broker URL from parts defined in ducc.properties
    composeBrokerUrl();
    adjustEndpointsForSelectedTransport();
View Full Code Here

     */
    PingDriver(String props)
    {       
        DuccProperties dp = new DuccProperties();
        try {
      dp.load(props);
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

View Full Code Here

    private void runSortTester(String propsfile)
    {
        int friendly = 1;
        DuccProperties props = new DuccProperties();
        try {
      props.load(propsfile);
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
            System.exit(1);
    }
View Full Code Here

            StringWriter sw = new StringWriter();
            for ( String s : as ) sw.write(s + "\n");
            StringReader sr = new StringReader(sw.toString());           
            DuccProperties props = new DuccProperties();
            try {
                props.load(sr);
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            meta_timeout = props.getIntProperty("meta_timeout", 5000);
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.