| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2011-2013 ForgeRock AS |
| | | * Portions copyright 2011-2014 ForgeRock AS |
| | | */ |
| | | |
| | | package org.forgerock.opendj.grizzly; |
| | | |
| | | import static com.forgerock.opendj.util.StaticUtils.DEFAULT_LOG; |
| | | |
| | | import java.io.IOException; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.glassfish.grizzly.nio.transport.TCPNIOTransport; |
| | | import org.glassfish.grizzly.nio.transport.TCPNIOTransportBuilder; |
| | | import org.glassfish.grizzly.strategies.SameThreadIOStrategy; |
| | |
| | | * options. |
| | | */ |
| | | final class DefaultTCPNIOTransport extends ReferenceCountedObject<TCPNIOTransport> { |
| | | |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | static final DefaultTCPNIOTransport DEFAULT_TRANSPORT = new DefaultTCPNIOTransport(); |
| | | |
| | | private DefaultTCPNIOTransport() { |
| | |
| | | instance.shutdownNow(); |
| | | } catch (final IOException e) { |
| | | // TODO: I18N |
| | | DEFAULT_LOG.warn("An error occurred while shutting down the Grizzly transport", e); |
| | | logger.warn(LocalizableMessage.raw("An error occurred while shutting down the Grizzly transport", e)); |
| | | } |
| | | } |
| | | |