Examples of Config


Examples of com.crashnote.core.config.helper.Config

    @Override
    protected Config readConf() {

        // create dynamic config file .. (ONLY enable client if running on AppEngine, local requests can just be passed through then)
        final String enabled = new AppengineUtil().isRunningOnAppengine() ? "true" : "false";
        final Config appengineConf = getConfStr("crashnote { enabled = " + enabled + ", request { ignore-localhost = false } }");

        // .. and add it to the application conf
        return super.readConf()
                .withFallback(appengineConf);
    }
View Full Code Here

Examples of com.crashnote.external.config.Config

    /** For use ONLY by library internals, DO NOT TOUCH not guaranteed ABI */
    public static Config defaultReference(final ClassLoader loader) {
        return computeCachedConfig(loader, "defaultReference", new Callable<Config>() {
            @Override
            public Config call() {
                final Config unresolvedResources = Parseable
                        .newResources("reference.conf",
                                ConfigParseOptions.defaults().setClassLoader(loader))
                        .parse().toConfig();
                return systemPropertiesAsConfig().withFallback(unresolvedResources).resolve();
            }
View Full Code Here

Examples of com.dianping.cat.core.config.Config

  }

  @Override
  public void initialize() throws InitializationException {
    try {
      Config config = m_configDao.findByName(CONFIG_NAME, ConfigEntity.READSET_FULL);
      String content = config.getContent();

      m_configId = config.getId();
      m_company = DefaultSaxParser.parse(content);
      m_modifyTime = config.getModifyDate().getTime();
    } catch (DalNotFoundException e) {
      try {
        String content = Files.forIO().readFrom(
              this.getClass().getResourceAsStream("/config/default-product-line-config.xml"), "utf-8");
        Config config = m_configDao.createLocal();

        config.setName(CONFIG_NAME);
        config.setContent(content);
        m_configDao.insert(config);

        m_configId = config.getId();
        m_company = DefaultSaxParser.parse(content);
        m_modifyTime = new Date().getTime();
      } catch (Exception ex) {
        Cat.logError(ex);
      }
View Full Code Here

Examples of com.dianping.cat.home.rule.entity.Config

    int maxMinute = 0;
    List<Condition> conditions = new ArrayList<Condition>();
    Iterator<Config> iterator = configs.iterator();

    while (iterator.hasNext()) {
      Config config = iterator.next();

      if (judgeCurrentInConfigRange(config)) {
        List<Condition> tmpConditions = config.getConditions();
        conditions.addAll(tmpConditions);

        for (Condition con : tmpConditions) {
          int tmpMinute = con.getMinute();
View Full Code Here

Examples of com.ericsson.ssa.config.Config

        Boolean.getBoolean("org.glassfish.sip.disableReporters");
   
    private static Logger log = LogUtil.SIP_LOGGER.getLogger();

    public static boolean isStackConfigDefined() {
        Config config = ConfigFactory.getConfig();
        String layerOrder = config.get(STACK_CONFIG, LAYER_ORDER_KEY);
        return layerOrder!=null && layerOrder.trim().length()>0;       
    }       
View Full Code Here

Examples of com.etsy.pushbot.config.Config

      }
      catch(Throwable t) {
        System.err.println(t.getMessage());
        t.printStackTrace();
      }
      return new Config();
  }
View Full Code Here

Examples of com.firefly.net.Config

  private static Log log = LogFactory.getInstance().getLog("firefly-system");

  @Test
  public void testHello() {
    Server server = new TcpServer();
    Config config = new Config();
    config.setHandleThreads(100);
    config.setDecoder(new StringLineDecoder());
    config.setEncoder(new StringLineEncoder());
    config.setHandler(new SendFileHandler());
    server.setConfig(config);
    server.start("localhost", 9900);

    final int LOOP = 50;
    ExecutorService executorService = Executors.newFixedThreadPool(LOOP);
View Full Code Here

Examples of com.firefly.schedule.common.Config

public class TestRun {
 
  @Test
  public void run(){
    Config config = new Config();
    config.setOpenHeart(true);
    Schedule schedule = new TestSchedule();
    schedule.setConfig(config);
    schedule.start();
    try {
      Thread.sleep(100000000);
View Full Code Here

Examples of com.firefly.server.http.Config

public class ServerBootstrap {
  private static Log log = LogFactory.getInstance().getLog("firefly-system");

  public static void start(String serverHome, String host, int port) {
    Config config = new Config(serverHome, host, port);
    start(config);
  }
View Full Code Here

Examples of com.firefly.template.Config

public class TestConfig {
 
  @Test
  public void test() {
    Config config = new Config();
    config.setViewPath("/page");
    Assert.assertThat(config.getCompiledPath(), is("/page/_compiled_view"));
   
    config.setViewPath("/page2/");
    Assert.assertThat(config.getCompiledPath(), is("/page2/_compiled_view"));
  }
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.