|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.transport.TransportFactory
public abstract class TransportFactory
Constructor Summary | |
---|---|
TransportFactory()
|
Method Summary | |
---|---|
static TransportServer |
bind(BrokerService brokerService,
URI location)
|
static TransportServer |
bind(String brokerId,
URI location)
Deprecated. |
static TransportServer |
bind(URI location)
|
Transport |
compositeConfigure(Transport transport,
WireFormat format,
Map options)
Similar to configure(...) but this avoid adding in the MutexTransport and ResponseCorrelator transport layers so that the resulting transport can more efficiently be used as part of a composite transport. |
static Transport |
compositeConnect(URI location)
Creates a slimmed down transport that is more efficient so that it can be used by composite transports like reliable and HA. |
static Transport |
compositeConnect(URI location,
Executor ex)
Creates a slimmed down transport that is more efficient so that it can be used by composite transports like reliable and HA. |
Transport |
configure(Transport transport,
WireFormat wf,
Map options)
Fully configures and adds all need transport filters so that the transport can be used by the JMS client. |
static Transport |
connect(URI location)
Creates a normal transport. |
static Transport |
connect(URI location,
Executor ex)
Creates a normal transport. |
protected Transport |
createTransport(URI location,
WireFormat wf)
Factory method to create a new transport |
protected WireFormat |
createWireFormat(Map<String,String> options)
|
protected WireFormatFactory |
createWireFormatFactory(Map<String,String> options)
|
abstract TransportServer |
doBind(URI location)
|
Transport |
doCompositeConnect(URI location)
|
Transport |
doCompositeConnect(URI location,
Executor ex)
|
Transport |
doConnect(URI location)
|
Transport |
doConnect(URI location,
Executor ex)
|
protected String |
getDefaultWireFormatType()
|
static void |
registerTransportFactory(String scheme,
TransportFactory tf)
Allow registration of a transport factory without wiring via META-INF classes |
Transport |
serverConfigure(Transport transport,
WireFormat format,
HashMap options)
Fully configures and adds all need transport filters so that the transport can be used by the ActiveMQ message broker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransportFactory()
Method Detail |
---|
public abstract TransportServer doBind(URI location) throws IOException
IOException
public Transport doConnect(URI location, Executor ex) throws Exception
Exception
public Transport doCompositeConnect(URI location, Executor ex) throws Exception
Exception
public static Transport connect(URI location) throws Exception
location
-
Exception
public static Transport connect(URI location, Executor ex) throws Exception
location
- ex
-
Exception
public static Transport compositeConnect(URI location) throws Exception
location
-
Exception
public static Transport compositeConnect(URI location, Executor ex) throws Exception
location
- ex
-
Exception
public static TransportServer bind(URI location) throws IOException
IOException
public static TransportServer bind(String brokerId, URI location) throws IOException
IOException
public static TransportServer bind(BrokerService brokerService, URI location) throws IOException
IOException
public Transport doConnect(URI location) throws Exception
Exception
public Transport doCompositeConnect(URI location) throws Exception
Exception
public static void registerTransportFactory(String scheme, TransportFactory tf)
scheme
- tf
- protected Transport createTransport(URI location, WireFormat wf) throws MalformedURLException, UnknownHostException, IOException
IOException
UnknownHostException
MalformedURLException
protected WireFormat createWireFormat(Map<String,String> options) throws IOException
IOException
protected WireFormatFactory createWireFormatFactory(Map<String,String> options) throws IOException
IOException
protected String getDefaultWireFormatType()
public Transport configure(Transport transport, WireFormat wf, Map options) throws Exception
transport
- wf
- options
-
Exception
public Transport serverConfigure(Transport transport, WireFormat format, HashMap options) throws Exception
transport
- format
- options
-
Exception
public Transport compositeConfigure(Transport transport, WireFormat format, Map options)
transport
- format
- options
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |