Package com.dianping.cat

Examples of com.dianping.cat.ServerConfigManager


@RunWith(JUnit4.class)
public class DumpUploaderSample extends ComponentTestCase {
  @Before
  public void before() throws Exception {
    ServerConfigManager manager = lookup(ServerConfigManager.class);

    manager.initialize(new File("/data/appdatas/cat/server.xml"));
  }
View Full Code Here


    throw new RuntimeException("Internal error: this should not be reached!");
  }

  @Override
  public void initialize() throws InitializationException {
    ServerConfigManager manager = lookup(ServerConfigManager.class);

    m_defaultDomain = manager.getConsoleDefaultDomain();
  }
View Full Code Here

    return m_name;
  }

  @Override
  public void initialize() throws InitializationException {
    ServerConfigManager manager = lookup(ServerConfigManager.class);

    m_localMode = manager.isLocalMode();
  }
View Full Code Here

  @Test
  public void test() throws Exception {
    CrossAnalyzer analyzer = new CrossAnalyzer();

    analyzer.setIpConvertManager(new IpConvertManager());
    analyzer.setServerConfigManager(new ServerConfigManager());
    analyzer.setReportManager(new MockCrossReportManager());

    MessageTree tree = buildMessage();

    long current = System.currentTimeMillis();
View Full Code Here

      return m_active;
    }
  }

  protected boolean isLocalMode() {
    ServerConfigManager manager = lookup(ServerConfigManager.class);

    return manager.isLocalMode();
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.ServerConfigManager

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.