use of org.apache.druid.java.util.emitter.core.LoggingEmitter in project druid by druid-io.
the class LoggingEmitterFactory method makeEmitter.
public Emitter makeEmitter(ObjectMapper objectMapper, Lifecycle lifecycle) {
Emitter retVal = new LoggingEmitter(this, objectMapper);
lifecycle.addManagedInstance(retVal);
return retVal;
}
use of org.apache.druid.java.util.emitter.core.LoggingEmitter in project druid by druid-io.
the class LookupCoordinatorManagerTest method setUpStatic.
@BeforeClass
public static void setUpStatic() {
LoggingEmitter loggingEmitter = EasyMock.createNiceMock(LoggingEmitter.class);
EasyMock.replay(loggingEmitter);
SERVICE_EMITTER = new ServiceEmitter("", "", loggingEmitter) {
@Override
public void emit(Event event) {
EVENT_EMITS.incrementAndGet();
super.emit(event);
}
};
EmittingLogger.registerEmitter(SERVICE_EMITTER);
}
Aggregations