public class ConnectionFactoryInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
METRIC_BYTE_RATE
Connection factory load balances by generating a connection to the server
with the lowest total byte rate, input and output.
|
static int |
METRIC_CONNECTIONS
Connection factory load balances by generating a connection to the server
with the fewest number of connections.
|
static int |
METRIC_NONE
Connection factory is not load balanced.
|
Constructor and Description |
---|
ConnectionFactoryInfo(java.lang.String url,
java.lang.String clientID,
int type,
boolean xa,
java.util.Map params)
Creates ConnectionFactoryInfo.
|
ConnectionFactoryInfo(java.lang.String url,
java.lang.String clientID,
int type,
java.util.Map params)
Creates ConnectionFactoryInfo.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClientID()
Get the clientID for this factory.
|
int |
getConnectAttemptCount()
Get the connect_attempt_count for this factory.
|
int |
getConnectAttemptDelay()
Get the connect_attempt_delay for this factory.
|
int |
getConnectAttemptTimeout()
Get the reconnect_attempt_timeout for this factory.
|
int |
getDestinationType()
Get the destination type for this factory.
|
java.lang.String[] |
getJNDINames()
Return the array of names that this factory is bound to in the default JNDI.
|
int |
getMetric()
Get the metric used for load balancing.
|
java.lang.String |
getMulticastDaemon()
Deprecated.
As of release 8.3
|
boolean |
getMulticastEnabled()
Deprecated.
As of release 8.3
|
java.util.Map |
getParams()
Get the TLS parameters for this factory.
|
int |
getReconnectAttemptCount()
Get the reconnect_attempt_count for this factory.
|
int |
getReconnectAttemptDelay()
Get the reconnect_attempt_delay for this factory.
|
int |
getReconnectAttemptTimeout()
Get the reconnect_attempt_timeout for this factory.
|
java.lang.String |
getURL()
Get the URL for this factory.
|
boolean |
getXAType()
Returns whether or not the factory is an XA factory.
|
boolean |
isLoadBalanced()
Indicates whether or not the connection factory is load balanced.
|
void |
setClientID(java.lang.String clientID)
Set the clientID for this factory.
|
void |
setConnectAttemptCount(int count)
Set the connect_attempt_count for this factory.
|
void |
setConnectAttemptDelay(int delay)
Set the connect_attempt_delay for this factory.
|
void |
setConnectAttemptTimeout(int connectAttemptTimeout)
Set the connect_attempt_timeout for this factory.
|
void |
setDestinationType(int destType)
Set the destination type for this factory.
|
void |
setMetric(int metric)
Set the metric to be used for load balancing.
|
void |
setMulticastDaemon(java.lang.String multicastDaemon)
Deprecated.
As of release 8.3
|
void |
setMulticastEnabled(boolean multicastEnabled)
Deprecated.
As of release 8.3
|
void |
setReconnectAttemptCount(int count)
Set the reconnect_attempt_count for this factory.
|
void |
setReconnectAttemptDelay(int delay)
Set the reconnect_attempt_delay for this factory.
|
void |
setReconnectAttemptTimeout(int reconnectAttemptTimeout)
Set the reconnect_attempt_timeout for this factory.
|
void |
setSSLParams(java.util.Map params)
Set the TLS parameters for this factory.
|
void |
setURL(java.lang.String url)
Set the URL for this factory.
|
void |
setXAType(boolean xa)
Set (or unset) this factory as XA connection factory.
|
java.lang.String |
toString()
Generate a string representation of this ConnectionFactoryInfo.
|
public static final int METRIC_NONE
public static final int METRIC_CONNECTIONS
public static final int METRIC_BYTE_RATE
public ConnectionFactoryInfo(java.lang.String url, java.lang.String clientID, int type, java.util.Map params)
url
- The server URL for the factory.clientID
- The clientID for the connection created by this factory.type
- Factory type. Can be DestinationInfo.QUEUE_TYPE,
DestinationInfo.TOPIC_TYPE or DestinationInfo.ALL_TYPE
where latter creates a generic connection factory.params
- The TLS parameters for the connections
created with this factory (can be null).public ConnectionFactoryInfo(java.lang.String url, java.lang.String clientID, int type, boolean xa, java.util.Map params)
url
- The server URL for the factory.clientID
- The clientID for the connection created by this factory.type
- Factory type. Can be DestinationInfo.QUEUE_TYPE,
DestinationInfo.TOPIC_TYPE or DestinationInfo.ALL_TYPE
where latter creates a generic connection factory.xa
- XA type. Set to true if this is an XA connection factory.params
- The TLS parameters for the connections
created with this factory (can be null).public java.lang.String[] getJNDINames()
public java.lang.String getURL()
public void setURL(java.lang.String url)
url
- the URL for this factory.public java.lang.String getClientID()
public void setClientID(java.lang.String clientID)
clientID
- the clientID for this factory.public java.util.Map getParams()
public void setSSLParams(java.util.Map params)
params
- the TLS parameters for this factory (can be null).public int getDestinationType()
public void setDestinationType(int destType)
destType
- the destination type for this factory.
Can be set as DestinationInfo.QUEUE_TYPE, DestinationInfo.TOPIC_TYPE
or DestinationInfo.ALL_TYPE if generic factory.public boolean getXAType()
public void setXAType(boolean xa)
xa
- true if the factory is to be an XA connection factory, false if not.public boolean isLoadBalanced()
public int getMetric()
METRIC_NONE
. If the
factory is load balanced but no metric has been set explicitly the
metric returned will be the default METRIC_CONNECTIONS
.METRIC_CONNECTIONS
,
METRIC_BYTE_RATE
or METRIC_NONE
public void setMetric(int metric)
metric
- the metric. Valid values are METRIC_CONNECTIONS
,
and METRIC_BYTE_RATE
.public void setConnectAttemptCount(int count)
count
- the connect_attempt_count for this factory.public int getConnectAttemptCount()
public void setConnectAttemptDelay(int delay)
delay
- the connect_attempt_delay for this factory.public int getConnectAttemptDelay()
public void setConnectAttemptTimeout(int connectAttemptTimeout)
count
- the connect_attempt_timeout for this factory.public int getConnectAttemptTimeout()
public void setReconnectAttemptCount(int count)
count
- the reconnect_attempt_count for this factory.public int getReconnectAttemptCount()
public void setReconnectAttemptDelay(int delay)
delay
- the reconnect_attempt_delay for this factory.public int getReconnectAttemptDelay()
public void setReconnectAttemptTimeout(int reconnectAttemptTimeout)
count
- the reconnect_attempt_timeout for this factory.public int getReconnectAttemptTimeout()
@Deprecated public void setMulticastEnabled(boolean multicastEnabled)
multicastEnabled
- true if the factory is to be multicast-enabled@Deprecated public boolean getMulticastEnabled()
@Deprecated public void setMulticastDaemon(java.lang.String multicastDaemon)
multicastDaemon
- the multicast daemon port for this factory@Deprecated public java.lang.String getMulticastDaemon()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © Cloud Software Group, Inc. All rights reserved