Package com.dianping.cat.configuration

Examples of com.dianping.cat.configuration.ClientConfigManager


  @Override
  public void setUp() throws Exception {
    super.setUp();

    ClientConfigManager configManager = lookup(ClientConfigManager.class);
    configManager.initialize(getConfigurationFile());

    m_queue.clear();
    defineComponent(TransportManager.class, null, MockTransportManager.class);

    MockTransportManager transportManager = (MockTransportManager) lookup(TransportManager.class);
View Full Code Here


    // tracking thread start/stop
    Threads.addListener(new CatThreadListener(ctx));

    File clientConfigFile = ctx.getAttribute("cat-client-config-file");
    ClientConfigManager clientConfigManager = ctx.lookup(ClientConfigManager.class);

    clientConfigManager.initialize(clientConfigFile);

    // warm up Cat
    Cat.getInstance().setContainer(((DefaultModuleContext) ctx).getContainer());

    // bring up TransportManager
    ctx.lookup(TransportManager.class);

    if (clientConfigManager.isCatEnabled()) {
      // start status update task
      StatusUpdateTask statusUpdateTask = ctx.lookup(StatusUpdateTask.class);

      Threads.forGroup("cat").start(statusUpdateTask);
      LockSupport.parkNanos(10 * 1000 * 1000L); // wait 10 ms
View Full Code Here

TOP

Related Classes of com.dianping.cat.configuration.ClientConfigManager

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.