MCPcopy Index your code
hub / github.com/dianping/cat / checkAndInitialize

Method checkAndInitialize

lib/java/src/main/java/com/dianping/cat/Cat.java:67–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 private static void checkAndInitialize() {
68 try {
69 if (!init) {
70 ClientConfig clientConfig = getSpiClientConfig();
71 if (clientConfig == null) {
72 initializeInternal();
73 } else {
74 initializeInternal(clientConfig);
75 }
76 }
77 } catch (Exception e) {
78 errorHandler(e);
79 }
80 }
81
82 private static ClientConfig getSpiClientConfig() {
83 ServiceLoader<ClientConfigProvider> clientConfigProviders = ServiceLoader.load(ClientConfigProvider.class);

Callers 5

getManagerMethod · 0.95
getProducerMethod · 0.95
initializeMethod · 0.95
logMetricForCountMethod · 0.95
logMetricForDurationMethod · 0.95

Calls 3

getSpiClientConfigMethod · 0.95
initializeInternalMethod · 0.95
errorHandlerMethod · 0.95

Tested by

no test coverage detected