use of reactor.bus.Event in project cloudbreak by hortonworks.
the class LogContextAspects method buildLogContextForPersistenceHandler.
@Before("com.sequenceiq.cloudbreak.logger.LogContextAspects.interceptResourcePersistenceHandlerAcceptMethod()")
public void buildLogContextForPersistenceHandler(JoinPoint joinPoint) {
Event<ResourceNotification> event = (Event<ResourceNotification>) joinPoint.getArgs()[0];
CloudContext cloudContext = event.getData().getCloudContext();
buildMdcContext(cloudContext, event);
LOGGER.debug("A Resource persistence handler's 'accept' method has been intercepted: {}, MDC logger context is built.", joinPoint.toShortString());
}
Aggregations