All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.naming.remote.server.DefaultRemoteNamingServerLogger Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

There is a newer version: 32.0.0.Final
Show newest version
package org.jboss.naming.remote.server;

import java.io.IOException;
import org.jboss.logging.Logger;
import org.jboss.remoting3.Channel;

/**
 * @author John Bailey
 */
public class DefaultRemoteNamingServerLogger implements RemoteNamingServerLogger{
    private static final Logger log = Logger.getLogger(RemoteNamingService.class.getPackage().getName());

    public static DefaultRemoteNamingServerLogger INSTANCE = new DefaultRemoteNamingServerLogger();

    private DefaultRemoteNamingServerLogger() {
    }

    public void failedToSendHeader(final IOException exception) {
        log.error("Unable to send header, closing channel", exception);
    }

    public void failedToDetermineClientVersion(final IOException exception) {
        log.error("Error determining version selected by client.", exception);
    }

    public void closingChannel(final Channel channel, final Throwable error) {
        log.errorf(error, "Closing channel %s due to an error", channel);
    }

    public void closingChannelOnChannelEnd(final Channel channel) {
        log.debugf("Channel end notification received, closing channel %s", channel);
    }

    public void unnexpectedError(final Throwable t) {
        log.warn("Unexpected internal error", t);
    }

    public void nullCorrelationId(final Throwable t) {
        log.error("null correlationId so error not sent to client", t);
    }

    public void failedToSendExceptionResponse(final IOException ioe) {
        log.error("Failed to send exception response to client", ioe);
    }

    public void unexpectedParameterType(byte expected, byte actual) {
        log.errorf("Unexpected parameter type - excpected: %d  received: %d", expected, actual);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy