|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hornetq.api.core.TransportConfiguration
public class TransportConfiguration

A TransportConfiguration is used by a client to specify a connections to a server and its backup if one exists.
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 Summary | |
|---|---|
TransportConfiguration()
Creates a default TransportConfiguration with no configured transport. |
|
TransportConfiguration(String className)
Creates a TransportConfiguration providing the class name of the ConnectorFactory |
|
TransportConfiguration(String className,
Map<String,Object> params)
Creates a TransportConfiguration providing the class name of the ConnectorFactory
and any parameters needed. |
|
TransportConfiguration(String className,
Map<String,Object> params,
String name)
Creates a TransportConfiguration with a specific name providing the class name of the ConnectorFactory
and any parameters needed. |
|
| Method Summary | |
|---|---|
void |
decode(HornetQBuffer buffer)
Decodes this TransportConfiguration from a buffer. |
void |
encode(HornetQBuffer buffer)
Encodes this TransportConfiguration into a buffer. |
boolean |
equals(Object other)
|
String |
getFactoryClassName()
Returns the class name of ConnectorFactory being used by this TransportConfiguration |
String |
getName()
Returns the name of this TransportConfiguration. |
Map<String,Object> |
getParams()
Returns any parameters set for this TransportConfiguration |
int |
hashCode()
|
static String[] |
splitHosts(String commaSeparatedHosts)
Utility method for splitting a comma separated list of hosts |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransportConfiguration()
public TransportConfiguration(String className,
Map<String,Object> params,
String name)
ConnectorFactory
and any parameters needed.
className - The class name of the ConnectorFactoryparams - The parameters needed by the ConnectorFactoryname - The name of this TransportConfiguration
public TransportConfiguration(String className,
Map<String,Object> params)
ConnectorFactory
and any parameters needed.
className - The class name of the ConnectorFactoryparams - The parameters needed by the ConnectorFactorypublic TransportConfiguration(String className)
ConnectorFactory
className - The class name of the ConnectorFactory| Method Detail |
|---|
public static String[] splitHosts(String commaSeparatedHosts)
commaSeparatedHosts - the comma separated host string
public String getName()
public String getFactoryClassName()
public Map<String,Object> getParams()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Objectpublic void encode(HornetQBuffer buffer)
buffer - the buffer to encode intopublic void decode(HornetQBuffer buffer)
buffer - the buffer to decode from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||