Search in sources :

Example 26 with NetLoggerBuilder

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());
    }
}
Also used : NetLoggerBuilder(org.dcache.util.NetLoggerBuilder)

Example 27 with NetLoggerBuilder

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());
    }
}
Also used : NetLoggerBuilder(org.dcache.util.NetLoggerBuilder)

Example 28 with NetLoggerBuilder

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());
    }
}
Also used : NetLoggerBuilder(org.dcache.util.NetLoggerBuilder)

Example 29 with NetLoggerBuilder

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());
    }
}
Also used : NetLoggerBuilder(org.dcache.util.NetLoggerBuilder)

Example 30 with NetLoggerBuilder

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());
    }
}
Also used : NetLoggerBuilder(org.dcache.util.NetLoggerBuilder)

Aggregations

NetLoggerBuilder (org.dcache.util.NetLoggerBuilder)35 Stopwatch (com.google.common.base.Stopwatch)1 CharStreams (com.google.common.io.CharStreams)1 CellPath (dmg.cells.nucleus.CellPath)1 AuthorizedString (dmg.util.AuthorizedString)1 CertificateUtils (eu.emi.security.authn.x509.impl.CertificateUtils)1 PEM (eu.emi.security.authn.x509.impl.CertificateUtils.Encoding.PEM)1 OpensslNameUtils (eu.emi.security.authn.x509.impl.OpensslNameUtils)1 HAProxyMessage (io.netty.handler.codec.haproxy.HAProxyMessage)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 Reader (java.io.Reader)1 StringReader (java.io.StringReader)1 InetSocketAddress (java.net.InetSocketAddress)1 UTF_8 (java.nio.charset.StandardCharsets.UTF_8)1 RemoteException (java.rmi.RemoteException)1 X509Certificate (java.security.cert.X509Certificate)1 ArrayList (java.util.ArrayList)1 Calendar (java.util.Calendar)1