org.codehaus.activemq.transport.gnet
Class GTransportChannelFactory

java.lang.Object
  extended byorg.codehaus.activemq.transport.gnet.GTransportChannelFactory
All Implemented Interfaces:
TransportChannelFactory

public class GTransportChannelFactory
extends java.lang.Object
implements TransportChannelFactory

An implementation of a TransportChannelFactory which uses the Geronimo network layer for connectivity.

Version:
$Revision: 1.8 $

Constructor Summary
GTransportChannelFactory()
           
 
Method Summary
 TransportChannel create(WireFormat wireFormat, java.net.URI remoteLocation)
          Create a Channel to a remote Node - e.g.
 TransportChannel create(WireFormat wireFormat, java.net.URI remoteLocation, java.net.URI localLocation)
          Create a Channel to a remote Node - e.g.
static void init(org.apache.geronimo.network.SelectorManager sm, org.apache.geronimo.pool.ThreadPool tp, org.apache.geronimo.pool.ClockPool cp)
           
 boolean requiresEmbeddedBroker()
          Does this channel require an embedded broker to perform such as VM or multicast based transports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GTransportChannelFactory

public GTransportChannelFactory()
Method Detail

init

public static void init(org.apache.geronimo.network.SelectorManager sm,
                        org.apache.geronimo.pool.ThreadPool tp,
                        org.apache.geronimo.pool.ClockPool cp)
                 throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

create

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

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

create

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

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

requiresEmbeddedBroker

public boolean requiresEmbeddedBroker()
Description copied from interface: TransportChannelFactory
Does this channel require an embedded broker to perform such as VM or multicast based transports

Specified by:
requiresEmbeddedBroker in interface TransportChannelFactory
Returns:
true if an embedded broker is a requirement of using the channel


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