
public class TransportConfiguration extends java.lang.Object implements java.io.Serializable
HashMap map = new HashMap();
map.put("host", "localhost");
map.put("port", 5445);
TransportConfiguration config = new TransportConfiguration(InVMConnectorFactory.class.getName(), map);
ClientSessionFactory sf = new ClientSessionFactoryImpl(config);
| Constructor and Description |
|---|
TransportConfiguration()
Creates a default TransportConfiguration with no configured transport.
|
TransportConfiguration(java.lang.String className)
Creates a TransportConfiguration providing the class name of the
ConnectorFactory |
TransportConfiguration(java.lang.String className,
java.util.Map<java.lang.String,java.lang.Object> params)
Creates a TransportConfiguration providing the class name of the
ConnectorFactory
and any parameters needed. |
TransportConfiguration(java.lang.String className,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String name)
Creates a TransportConfiguration with a specific name providing the class name of the
ConnectorFactory
and any parameters needed. |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(HornetQBuffer buffer)
Decodes this TransportConfiguration from a buffer.
|
void |
encode(HornetQBuffer buffer)
Encodes this TransportConfiguration into a buffer.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getFactoryClassName()
Returns the class name of ConnectorFactory being used by this TransportConfiguration
|
java.lang.String |
getName()
Returns the name of this TransportConfiguration.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParams()
Returns any parameters set for this TransportConfiguration
|
int |
hashCode() |
static java.lang.String[] |
splitHosts(java.lang.String commaSeparatedHosts)
Utility method for splitting a comma separated list of hosts
|
java.lang.String |
toString() |
public TransportConfiguration()
public TransportConfiguration(java.lang.String className, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String name)
ConnectorFactory
and any parameters needed.className - The class name of the ConnectorFactoryparams - The parameters needed by the ConnectorFactoryname - The name of this TransportConfigurationpublic TransportConfiguration(java.lang.String className, java.util.Map<java.lang.String,java.lang.Object> params)
ConnectorFactory
and any parameters needed.className - The class name of the ConnectorFactoryparams - The parameters needed by the ConnectorFactorypublic TransportConfiguration(java.lang.String className)
ConnectorFactoryclassName - The class name of the ConnectorFactorypublic static java.lang.String[] splitHosts(java.lang.String commaSeparatedHosts)
commaSeparatedHosts - the comma separated host stringpublic java.lang.String getName()
public java.lang.String getFactoryClassName()
public java.util.Map<java.lang.String,java.lang.Object> getParams()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void encode(HornetQBuffer buffer)
buffer - the buffer to encode intopublic void decode(HornetQBuffer buffer)
buffer - the buffer to decode fromCopyright © 2009 Red Hat Inc. All Rights Reserved.