org.activemq.transport.tcp
Class SfTransportChannelFactory

java.lang.Object
  extended byorg.activemq.transport.TransportChannelFactorySupport
      extended byorg.activemq.transport.tcp.TcpTransportChannelFactory
          extended byorg.activemq.transport.tcp.SfTransportChannelFactory
All Implemented Interfaces:
TransportChannelFactory

public class SfTransportChannelFactory
extends TcpTransportChannelFactory

A factory of TcpTransportChannelFactory instances using a SocketFactory

Version:
$Revision: 1.1.1.1 $

Constructor Summary
SfTransportChannelFactory(SocketFactory socketFactory)
           
 
Method Summary
 TransportChannel create(WireFormat wireFormat, URI remoteLocation)
          Create a Channel to a remote Node - e.g.
 TransportChannel create(WireFormat wireFormat, URI remoteLocation, URI localLocation)
          Create a Channel to a remote Node - e.g.
protected  Socket createSocket(URI remoteLocation)
           
protected  Socket createSocket(URI remoteLocation, URI localLocation)
           
 
Methods inherited from class org.activemq.transport.tcp.TcpTransportChannelFactory
requiresEmbeddedBroker
 
Methods inherited from class org.activemq.transport.TransportChannelFactorySupport
populateProperties, populateProperties, populateProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SfTransportChannelFactory

public SfTransportChannelFactory(SocketFactory socketFactory)
Method Detail

create

public TransportChannel create(WireFormat wireFormat,
                               URI remoteLocation)
                        throws JMSException
Create a Channel to a remote Node - e.g. a Broker

Specified by:
create in interface TransportChannelFactory
Overrides:
create in class TcpTransportChannelFactory
Parameters:
wireFormat -
remoteLocation -
Returns:
the TransportChannel bound to the remote node
Throws:
JMSException

create

public TransportChannel create(WireFormat wireFormat,
                               URI remoteLocation,
                               URI localLocation)
                        throws JMSException
Create a Channel to a remote Node - e.g. a Broker

Specified by:
create in interface TransportChannelFactory
Overrides:
create in class TcpTransportChannelFactory
Parameters:
wireFormat -
remoteLocation -
localLocation - - e.g. local InetAddress and local port
Returns:
the TransportChannel bound to the remote node
Throws:
JMSException

createSocket

protected Socket createSocket(URI remoteLocation)
                       throws IOException
Throws:
IOException

createSocket

protected Socket createSocket(URI remoteLocation,
                              URI localLocation)
                       throws IOException
Throws:
IOException


Copyright © 2004-2007 Protique, Ltd.. All Rights Reserved.