use of org.dcache.util.NetLoggerBuilder in project dcache by dCache.
the class EventLogger method queueBegin.
public static void queueBegin(CellEvent event) {
if (queue.isInfoEnabled() && event.getClass().equals(MessageEvent.class)) {
CellMessage envelope = ((MessageEvent) event).getMessage();
NetLoggerBuilder log = new NetLoggerBuilder(QUEUE_BEGIN);
log.add("uoid", envelope.getUOID());
log.add("lastuoid", envelope.getLastUOID());
log.add("session", envelope.getSession());
log.add("source", envelope.getSourcePath());
log.add("destination", envelope.getDestinationPath());
queue.info(log.toString());
}
}
use of org.dcache.util.NetLoggerBuilder in project dcache by dCache.
the class EventLogger method startedEnd.
public static void startedEnd(String cell) {
if (lifecycle.isInfoEnabled()) {
NetLoggerBuilder log = new NetLoggerBuilder(STARTED_END);
log.add("cell", cell);
lifecycle.info(log.toString());
}
}
use of org.dcache.util.NetLoggerBuilder in project dcache by dCache.
the class EventLogger method postStartupEnd.
public static void postStartupEnd(Cell cell, StartEvent event) {
if (lifecycle.isInfoEnabled()) {
NetLoggerBuilder log = new NetLoggerBuilder(POST_SETUP_END);
log.add("cell", ((CellPath) event.getSource()).getCurrent().getCellName());
log.add("class", cell.getClass().getCanonicalName());
log.add("timeout", event.getTimeout());
lifecycle.info(log.toString());
}
}
use of org.dcache.util.NetLoggerBuilder in project dcache by dCache.
the class EventLogger method prepareSetupBegin.
public static void prepareSetupBegin(Cell cell, StartEvent event) {
if (lifecycle.isInfoEnabled()) {
NetLoggerBuilder log = new NetLoggerBuilder(PREPARE_SETUP_BEGIN);
log.add("cell", ((CellPath) event.getSource()).getCurrent().getCellName());
log.add("class", cell.getClass().getCanonicalName());
log.add("timeout", event.getTimeout());
lifecycle.info(log.toString());
}
}
use of org.dcache.util.NetLoggerBuilder in project dcache by dCache.
the class EventLogger method deliverBegin.
public static void deliverBegin(CellMessage envelope) {
if (deliver.isInfoEnabled()) {
NetLoggerBuilder log = new NetLoggerBuilder(DELIVER_BEGIN);
log.add("uoid", envelope.getUOID());
log.add("lastuoid", envelope.getLastUOID());
log.add("session", envelope.getSession());
log.add("message", getMessage(envelope));
log.add("source", envelope.getSourcePath());
log.add("destination", envelope.getDestinationPath());
deliver.info(log.toString());
}
}
Aggregations