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

Method createMessageId

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

Source from the content-addressed store, hash-verified

96 }
97
98 public static String createMessageId() {
99 if (isEnabled()) {
100 try {
101 return Cat.getProducer().createMessageId();
102 } catch (Exception e) {
103 errorHandler(e);
104 return NullMessageProducer.NULL_MESSAGE_PRODUCER.createMessageId();
105 }
106 } else {
107 return NullMessageProducer.NULL_MESSAGE_PRODUCER.createMessageId();
108 }
109 }
110
111 public static void enable() {
112 enabled = true;

Callers 3

forForkMethod · 0.95
forForkMethod · 0.95
joinMethod · 0.95

Calls 4

isEnabledMethod · 0.95
getProducerMethod · 0.95
errorHandlerMethod · 0.95
createMessageIdMethod · 0.65

Tested by

no test coverage detected