Examples of loadConfig()


Examples of com.alibaba.druid.filter.Filter.loadConfig()

            }

            Filter jdbcFilter;
            try {
                jdbcFilter = (Filter) filterClass.newInstance();
                jdbcFilter.loadConfig(druidFilterConfig);
            } catch (InstantiationException e) {
                throw new SQLException("load managed jdbc driver event listener error. " + filterItem, e);
            } catch (IllegalAccessException e) {
                throw new SQLException("load managed jdbc driver event listener error. " + filterItem, e);
            }
View Full Code Here

Examples of com.alibaba.druid.filter.Filter.loadConfig()

            }

            Filter jdbcFilter;
            try {
                jdbcFilter = (Filter) filterClass.newInstance();
                jdbcFilter.loadConfig(druidFilterConfig);
            } catch (InstantiationException e) {
                throw new SQLException("load managed jdbc driver event listener error. " + filterItem, e);
            } catch (IllegalAccessException e) {
                throw new SQLException("load managed jdbc driver event listener error. " + filterItem, e);
            }
View Full Code Here

Examples of com.alibaba.druid.filter.config.ConfigFilter.loadConfig()


public class ConfigFilterTest5 extends TestCase {
    public void test_loadClassPath() throws Exception {
        ConfigFilter filter = new ConfigFilter();
        Assert.assertNotNull(filter.loadConfig("classpath:bvt/config/config-0.properties"));
    }
}
View Full Code Here

Examples of com.avast.syringe.config.internal.XmlConfigParser.loadConfig()

            input = new FileInputStream(configFile);
        }

        final XmlConfig xmlConfig;
        try {
            xmlConfig = xmlConfigParser.loadConfig(input);
        } finally {
            input.close();
        }

        Class<?> cls = Thread.currentThread().getContextClassLoader().loadClass(xmlConfig.getClassName());
View Full Code Here

Examples of com.cloudera.flume.agent.LogicalNode.loadConfig()

      RuntimeException, FlumeSpecException {
    LogicalNode agent = new LogicalNode(
        new LogicalNodeContext("phys", "agent"), "agent");
    FlumeConfigData fcd = new FlumeConfigData(0, "asciisynth(" + count + ")",
        agentSink, 1, 1, "flow");
    agent.loadConfig(fcd);
    return agent;
  }

  LogicalNode setupColl(long port, String name, String acc) throws IOException,
      RuntimeException, FlumeSpecException {
View Full Code Here

Examples of com.cloudera.flume.agent.LogicalNode.loadConfig()

    Context ctx = new LogicalNodeContext(new ReportTestingContext(), "phys",
        name);
    LogicalNode coll = new LogicalNode(ctx, name);
    FlumeConfigData fcd2 = new FlumeConfigData(0, "rpcSource(" + port + ")",
        "accumulator(\"" + acc + "\")", 1, 1, "flow");
    coll.loadConfig(fcd2);
    return coll;
  }

  void loopUntilCount(long count, LogicalNode coll, LogicalNode coll2)
      throws InterruptedException {
View Full Code Here

Examples of com.cloudera.flume.agent.LogicalNode.loadConfig()

      RuntimeException, FlumeSpecException {
    LogicalNode agent = new LogicalNode(
        new LogicalNodeContext("phys", "agent"), "agent");
    FlumeConfigData fcd = new FlumeConfigData(0, "asciisynth(" + count + ")",
        agentSink, 1, 1, "flow");
    agent.loadConfig(fcd);
    return agent;
  }

  LogicalNode setupColl(long port, String name, String acc) throws IOException,
      RuntimeException, FlumeSpecException {
View Full Code Here

Examples of com.cloudera.flume.agent.LogicalNode.loadConfig()

    Context ctx = new LogicalNodeContext(new ReportTestingContext(), "phys",
        name);
    LogicalNode coll = new LogicalNode(ctx, name);
    FlumeConfigData fcd2 = new FlumeConfigData(0, "rpcSource(" + port + ")",
        "accumulator(\"" + acc + "\")", 1, 1, "flow");
    coll.loadConfig(fcd2);
    return coll;
  }

  void loopUntilCount(long count, LogicalNode coll, LogicalNode coll2)
      throws InterruptedException {
View Full Code Here

Examples of com.opengamma.integration.tool.config.ConfigLoader.loadConfig()

        ConfigSaver configSaver = new ConfigSaver(remoteConfigMaster, remotePortfolioMaster, new ArrayList<String>(), new ArrayList<String>(), true, true);
        ByteArrayOutputStream byteArrayOutput = new ByteArrayOutputStream();
        PrintStream outputStream = new PrintStream(byteArrayOutput);
        configSaver.saveConfigs(outputStream);
        ConfigLoader configLoader = new ConfigLoader(configMaster, portfolioMaster, true, true, true);
        configLoader.loadConfig(new ByteArrayInputStream(byteArrayOutput.toByteArray()));           
      }
    };
    String[] args = {"-c", _serverUrl };
    remoteServerTool.initAndRun(args, ToolContext.class);
  }
View Full Code Here

Examples of fr.soleil.salsa.bean.SalsaTrajectoryBean.loadConfig()

                    splash.setMessage("Set configuration " + configName);
                    splash.progress(60);
                    LOGGER.info("Load configuration {}", configName);
                    bean.setConfigPath(configName);
                }
                bean.loadConfig();
                splash.setMessage("Frame construction");
                splash.progress(80);
                StringBuilder titleBuilder = new StringBuilder("Salsa ");
                try {
                    ResourceBundle bundle = ResourceBundle.getBundle(ApplicationView.class.getPackage().getName()
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.