org.apache.activemq.transport.nio
Class NIOTransport

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.transport.TransportSupport
          extended by org.apache.activemq.transport.TransportThreadSupport
              extended by org.apache.activemq.transport.tcp.TcpTransport
                  extended by org.apache.activemq.transport.nio.NIOTransport
All Implemented Interfaces:
Runnable, Service, Transport

public class NIOTransport
extends TcpTransport

An implementation of the Transport interface using raw tcp/ip

Version:
$Revision$

Field Summary
 
Fields inherited from class org.apache.activemq.transport.tcp.TcpTransport
buffOut, closeAsync, connectionTimeout, dataIn, dataOut, dynamicManagement, ioBufferSize, jmxPort, localLocation, logWriterName, minmumWireFormatVersion, remoteLocation, socket, socketBufferSize, socketFactory, soTimeout, startLogging, stoppedLatch, trace, useLocalHost, wireFormat
 
Constructor Summary
NIOTransport(WireFormat wireFormat, Socket socket)
           
NIOTransport(WireFormat wireFormat, SocketFactory socketFactory, URI remoteLocation, URI localLocation)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop(ServiceStopper stopper)
           
protected  void initializeStreams()
           
 
Methods inherited from class org.apache.activemq.transport.tcp.TcpTransport
closeStreams, connect, doRun, getConnectionTimeout, getIoBufferSize, getJmxPort, getKeepAlive, getLogWriterName, getMinmumWireFormatVersion, getReceiveCounter, getRemoteAddress, getSocketBufferSize, getSoTimeout, getTcpNoDelay, initialiseSocket, isCloseAsync, isDynamicManagement, isStartLogging, isTrace, isUseLocalHost, narrow, oneway, readCommand, resolveHostName, run, setCloseAsync, setConnectionTimeout, setDynamicManagement, setIoBufferSize, setJmxPort, setKeepAlive, setLogWriterName, setMinmumWireFormatVersion, setSocketBufferSize, setSocketOptions, setSoTimeout, setStartLogging, setTcpNoDelay, setTrace, setUseLocalHost, stop, toString
 
Methods inherited from class org.apache.activemq.transport.TransportThreadSupport
getStackSize, isDaemon, setDaemon, setStackSize
 
Methods inherited from class org.apache.activemq.transport.TransportSupport
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, onException, reconnect, request, request, setTransportListener
 
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, removeServiceListener, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.transport.Transport
asyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, reconnect, request, request, setTransportListener
 
Methods inherited from interface org.apache.activemq.Service
start
 

Constructor Detail

NIOTransport

public NIOTransport(WireFormat wireFormat,
                    SocketFactory socketFactory,
                    URI remoteLocation,
                    URI localLocation)
             throws UnknownHostException,
                    IOException
Throws:
UnknownHostException
IOException

NIOTransport

public NIOTransport(WireFormat wireFormat,
                    Socket socket)
             throws IOException
Throws:
IOException
Method Detail

initializeStreams

protected void initializeStreams()
                          throws IOException
Overrides:
initializeStreams in class TcpTransport
Throws:
IOException

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class TcpTransport
Throws:
Exception

doStop

protected void doStop(ServiceStopper stopper)
               throws Exception
Overrides:
doStop in class TcpTransport
Throws:
Exception


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.