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

Method getProducer

cat-client/src/main/java/com/dianping/cat/Cat.java:164–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 }
163
164 public static MessageProducer getProducer() {
165 try {
166 checkAndInitialize();
167
168 MessageProducer producer = s_instance.m_producer;
169
170 if (producer != null) {
171 return producer;
172 } else {
173 return NullMessageProducer.NULL_MESSAGE_PRODUCER;
174 }
175 } catch (Exception e) {
176 errorHandler(e);
177 return NullMessageProducer.NULL_MESSAGE_PRODUCER;
178 }
179 }
180
181 // this should be called during application initializing
182 public static void initialize(ClientConfig config) {

Callers 15

testSendMethod · 0.95
sendMaxMessageMethod · 0.95
sendMessageMethod · 0.95
sendErrorMethod · 0.95
sendEventMethod · 0.95
sendMetricMethod · 0.95

Calls 2

checkAndInitializeMethod · 0.95
errorHandlerMethod · 0.95

Tested by 15

testSendMethod · 0.76
sendMaxMessageMethod · 0.76
sendMessageMethod · 0.76
sendErrorMethod · 0.76
sendEventMethod · 0.76
sendMetricMethod · 0.76