|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WmConnectionFactory
Interface defining webMethods extensions to javax.jms.ConnectionFactory and its subclasses.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_APPLICATION_NAME
Default application name. |
static java.lang.String |
DEFAULT_BROKER_LIST_ORDER
|
static java.lang.String |
DEFAULT_CLIENT_GROUP
Default client group. |
static java.lang.String |
DEFAULT_KEYSTORE_TYPE
|
static java.lang.String |
DEFAULT_TRUSTSTORE_TYPE
|
Method Summary | |
---|---|
boolean |
compareConnectionFactory(java.lang.Object connFactory)
Define equality of connection factory state |
javax.jms.Connection |
createConnection(java.lang.String userName,
java.lang.String password,
java.lang.String accessLabelHint)
|
java.lang.String |
getApplication()
Get the client application for a connection created from this factory. |
java.util.concurrent.CopyOnWriteArrayList<java.lang.String> |
getBrokerCluster()
Get the list of cluster Brokers assigned to this connection factory. |
java.lang.String |
getBrokerHost()
Get the Broker host for a connection created from this factory. |
java.lang.String |
getBrokerList()
Use this to get the Broker list for webMethods Broker Publisher Reconnect feature. |
java.lang.String |
getBrokerListOrder()
Use this to get the Broker list for webMethods Broker Publisher Reconnect feature. |
java.lang.String |
getBrokerName()
Get the Broker name for a connection created from this factory. |
java.lang.String |
getClientGroup()
Gets the client group for this factory. |
java.lang.String |
getClientID()
Gets the client identifier for this factory. |
long |
getClusterCreationTime()
Get the time of creation of this cluster connection factory |
java.lang.String |
getClusterName()
Get the cluster name of the connection factory. |
int |
getClusterPolicy()
Get the integer constant representing the cluster policy assigned to this connection factory. |
java.lang.String |
getClusterPolicyName()
Get the cluster policy name of the cluster connection factory. |
boolean |
getClusterPolicyOverride()
Get if the user has overridden the cluster policy to enable custom stickiness. |
long |
getClusterRefreshInterval()
Get the refresh interval for this connection factory. |
java.util.concurrent.CopyOnWriteArrayList<WmConnectionFactory> |
getCompositeChildConnFactories()
Get the list of child cluster connection factory objects assigned to this connection factory. |
java.util.concurrent.CopyOnWriteArrayList<java.lang.String> |
getCompositeClusterCF()
Get the list of JNDI look up names for the child cluster connection factories assigned to this connection factory. |
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
getDocSizeDataMap()
|
java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.DocumentSize> |
getDocSizeList()
|
boolean |
getIncludeAllBrokers()
Get whether the include all flag is set. |
WmMarshalIn |
getMarshalIn()
Get the inbound message marshalling object for connections created from this factory. |
java.lang.String |
getMarshalInClassName()
Get the inbound message marshalling class name. |
WmMarshalOut |
getMarshalOut()
Get the outbound message marshalling object for connections created from this factory. |
java.lang.String |
getMarshalOutClassName()
Get the outbound message marshalling class name. |
int |
getMultiSendCount()
Gets the count of N brokers in cluster for MULTISEND_GUARANTEED policy The JMS provider will ensure that a message is published to N out of M brokers in the Cluster for MULTISEND_GUARANTEED. |
boolean |
getReadOnly()
Get whether this connection factory is read-only. |
boolean |
getSSLEncrypted()
Get whether SSL encryption is enabled or disabled. |
java.lang.String |
getSSLKeystore()
Get the SSL certificate keystore. |
java.lang.String |
getSSLKeystoreType()
Get the SSL certificate keystore type. |
java.lang.String |
getSSLTruststore()
Get the SSL truststore. |
java.lang.String |
getSSLTruststoreType()
Get the SSL truststore type. |
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> |
getWeightedRoundRobinDataMap()
|
java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.WeightedRoundRobin> |
getWeightedRoundRobinList()
Get a list of WeightedRoundRobin objects for the WEIGHTED_ROUND_ROBIN policy. |
boolean |
isClusterFactory()
Checks whether this connection factory is associated with a cluster of Brokers. |
boolean |
isCompositeClusterFactory()
Checks if this connection factory is a composite connection factory and hence associated with a list of child cluster connection factories. |
void |
setApplication(java.lang.String application)
Set the client application for a connection created from this factory. |
void |
setAutomaticControlLabel(boolean enable)
Enable broker to set control label automatically ( for webMethods' content based security ) |
void |
setBrokerCluster(java.lang.String[] brokers)
Set the list of cluster Brokers for a connection created from this factory. |
void |
setBrokerHost(java.lang.String brokerHost)
Set the Broker host for a connection created from this factory. |
void |
setBrokerList(java.lang.String brokerList)
Use this to set the Broker list for webMethods Broker Publisher Reconnect feature. |
void |
setBrokerListOrder(java.lang.String brokerListOrder)
Use this to get the Broker list for webMethods Broker Publisher Reconnect feature. |
void |
setBrokerName(java.lang.String brokerName)
Set the Broker name for a connection created from this factory. |
void |
setClientGroup(java.lang.String clientGroup)
Sets the client group for a connection created from this factory. |
void |
setClientID(java.lang.String clientID)
Sets the client identifier for a connection created from this factory. |
void |
setClusterCreationTime(long time)
|
void |
setClusterName(java.lang.String name)
Set the name of the cluster for the connection factory. |
void |
setClusterPolicy(int policy)
Set the specified cluster load balancing policy to this cluster connection factory. |
void |
setClusterPolicyName(java.lang.String policyName)
Set the cluster policy name to the cluster connection factory. |
void |
setClusterPolicyOverride(boolean clusterPolicyOverride)
Override the cluster policy to enable custom stickiness. |
void |
setClusterRefreshInterval(long time)
Set the refresh interval for this connection factory. |
void |
setCompositeChildConnFactories(java.util.concurrent.CopyOnWriteArrayList<WmConnectionFactory> childConnFactories)
Set a list of child Cluster Connection Factory objects for this connection factory. |
void |
setCompositeClusterCF(java.lang.String[] connectionFactories)
Assigns the list of child cluster connection factory names to this connection factory, which will enable it as a composite factory. |
void |
setDocSizeDataMap(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> map)
|
void |
setDocSizeList(java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.DocumentSize> docList)
Sets the data for DocumentSize policy |
void |
setIncludeAllBrokers(boolean includeAll)
Sets the flag that would include all the brokers in the cluster If the flag is set all the brokers in the cluster will be included as a part of this connection factory. |
void |
setMarshalIn(WmMarshalIn marshaller,
java.lang.Object userData)
Set the inbound message marshalling object for a connection created from this factory. |
void |
setMarshalInClassName(java.lang.String className)
Set the inbound message marshalling class name for connections created from this factory. |
void |
setMarshalOut(WmMarshalOut marshaller,
java.lang.Object userData)
Set the outbound message marshalling object for a connection created from this factory. |
void |
setMarshalOutClassName(java.lang.String className)
Set the outbound message marshalling class name for connections created from this factory. |
void |
setMultiSendCount(int count)
Sets the count of N brokers for MULTISEND_GUARANTEED policy The JMS provider will ensure that a message is published to N out of M brokers in the Cluster for MULTISEND_GUARANTEED. |
void |
setReadOnly()
Set this connection factory to read-only. |
void |
setSSLEncrypted(boolean sslEncryption)
Enable or disable SSL encryption.. |
void |
setSSLKeystore(java.lang.String sslKeystore)
Set the SSL certificate keystore. |
void |
setSSLKeystoreType(java.lang.String sslKeystoreType)
Set the SSL certificate keystore type. |
void |
setSSLTruststore(java.lang.String sslTruststore)
Set the SSL truststore. |
void |
setSSLTruststoreType(java.lang.String sslTruststoreType)
Set the SSL truststore type. |
void |
setWeightedRoundRobinDataMap(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> map)
|
void |
setWeightedRoundRobinList(java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.WeightedRoundRobin> weightedList)
Set a list of WeightedRoundRobin objects for the WEIGHTED_ROUND_ROBIN policy. |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Field Detail |
---|
static final java.lang.String DEFAULT_CLIENT_GROUP
static final java.lang.String DEFAULT_APPLICATION_NAME
static final java.lang.String DEFAULT_BROKER_LIST_ORDER
static final java.lang.String DEFAULT_KEYSTORE_TYPE
static final java.lang.String DEFAULT_TRUSTSTORE_TYPE
Method Detail |
---|
void setClientID(java.lang.String clientID) throws javax.jms.JMSException
clientID
- the unique client identifier
javax.jms.JMSException
- if the JMS provider fails to set the client ID for this factory due to some internal error.getClientID()
java.lang.String getClientID() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to return the client ID for this connection due to some internal error.setClientID(java.lang.String)
void setClientGroup(java.lang.String clientGroup) throws javax.jms.JMSException
clientGroup
- the connection's client group
javax.jms.JMSException
- if the JMS provider fails to set the client group for this factory due to some internal error.getClientGroup()
java.lang.String getClientGroup() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to return the client group for this connection due to some internal error.setClientGroup(java.lang.String)
void setBrokerName(java.lang.String brokerName) throws javax.jms.JMSException
brokerName
- the connection's Broker name
javax.jms.JMSException
- if the JMS provider fails to set the Broker name for this factory due to some internal error.getBrokerName()
java.lang.String getBrokerName() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to return the Broker name for this connection due to some internal error.setBrokerName(java.lang.String)
void setBrokerHost(java.lang.String brokerHost) throws javax.jms.JMSException
brokerHost
- the connection's Broker host
javax.jms.JMSException
- if the JMS provider fails to set the Broker host for this factory due to some internal error.getBrokerHost()
java.lang.String getBrokerHost() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to return the Broker host for this connection due to some internal error.setBrokerHost(java.lang.String)
void setBrokerList(java.lang.String brokerList) throws javax.jms.JMSException
getBrokerList()
for fetching the list of Brokers for the Publisher Reconnect feature.
A set of comma delimited list of Broker addresses for this factory. The syntax for a Broker address is:
[Broker Name]@The list also supports the "-random" keyword. By inserting the keyword "-random" into the list the Broker addresses following the keyword "-random" will be shuffled.[:port]
brokerList
- a comma delimited list of Broker addresses
javax.jms.JMSException
- if the JMS provider fails to set the list of Broker addresses for this factory due to some internal error.void setBrokerListOrder(java.lang.String brokerListOrder) throws javax.jms.JMSException
brokerListOrder
- Random or Sequential
javax.jms.JMSException
java.lang.String getBrokerList() throws javax.jms.JMSException
setBrokerList(String)
for setting the Broker list.
It does not give you a list of Brokers in the JMS client-side policy based cluster.
Get the comma delimited list of Broker addresses for this factory.
javax.jms.JMSException
- if the JMS provider fails to return the list of Broker addresses for this connection due to some internal error.java.lang.String getBrokerListOrder() throws javax.jms.JMSException
javax.jms.JMSException
void setApplication(java.lang.String application) throws javax.jms.JMSException
application
- the connection's application
javax.jms.JMSException
- if the JMS provider fails to set the application for this connection due to some internal error.getApplication()
java.lang.String getApplication() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to return the application for this connection due to some internal error.setApplication(java.lang.String)
void setSSLKeystore(java.lang.String sslKeystore) throws javax.jms.JMSException
sslKeystore
- the SSL certificate keystore
javax.jms.JMSException
- if the JMS provider fails to set the SSL certificate keystore for this connection due to some internal error.void setSSLKeystoreType(java.lang.String sslKeystoreType) throws javax.jms.JMSException
sslKeystoreType
- the SSL certificate keystore type
javax.jms.JMSException
- if the JMS provider fails to set the SSL certificate keystore type for this connection due to some internal error.void setSSLTruststore(java.lang.String sslTruststore) throws javax.jms.JMSException
sslTruststore
- the SSL truststore
javax.jms.JMSException
- if the JMS provider fails to set the SSL truststore for this connection due to some internal error.void setSSLTruststoreType(java.lang.String sslTruststoreType) throws javax.jms.JMSException
sslTruststoreType
- the SSL truststore type
javax.jms.JMSException
- if the JMS provider fails to set the SSL truststore type for this connection due to some internal error.java.lang.String getSSLKeystore() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to get the SSL certificate keystore for this connection due to some internal error.java.lang.String getSSLKeystoreType() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to get the SSL certificate keystore type for this connection due to some internal error.java.lang.String getSSLTruststore() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to get the SSL truststore for this connection due to some internal error.java.lang.String getSSLTruststoreType() throws javax.jms.JMSException
javax.jms.JMSException
- if the JMS provider fails to get the SSL truststore type for this connection due to some internal error.void setSSLEncrypted(boolean sslEncryption) throws javax.jms.JMSException
sslEncryption
- true
to encrypt the data
javax.jms.JMSException
- if the JMS provider fails to set the encryption for this connection due to some internal error.boolean getSSLEncrypted() throws javax.jms.JMSException
true
if encryption is enabled
javax.jms.JMSException
- if the JMS provider fails to get whether SSL encryption is enabled or disabled for this connection due to some internal error.void setMarshalOut(WmMarshalOut marshaller, java.lang.Object userData) throws javax.jms.JMSException
marshaller
- the marshaller that will be called for each message that is published or sent on the connections created from this factoryuserData
- a user Object that will be passed to the marshaller on each invocation
javax.jms.JMSException
- if the JMS provider fails to set the marshalling object for this connection due to some internal error.setMarshalIn(com.webmethods.jms.marshal.WmMarshalIn, java.lang.Object)
,
WmMarshalOut
WmMarshalOut getMarshalOut() throws javax.jms.JMSException
If the marshaller was set using the classname method, the class is instantiated at this time if it hasn't already been created.
javax.jms.JMSException
- if the ConnectionFactory is unable to return the marshalling object. Generally this is caused by problems instantiating the marshalling
object from the class specified using setMarshalOutClassName
.setMarshalOut(com.webmethods.jms.marshal.WmMarshalOut, java.lang.Object)
,
setMarshalOutClassName(String)
,
WmMarshalOut
void setMarshalOutClassName(java.lang.String className) throws javax.jms.JMSException
The class will be instantiated when the first connection is created from the ConnectionFactory
or when the marshalling object is retrieved
using getMarshalOut
.
className
- the class for the marshaller that will be called for each message that is published or sent on the connections created from this factory
javax.jms.JMSException
- if the JMS provider fails to set the marshalling class name.getMarshalOutClassName()
,
WmMarshalOut
java.lang.String getMarshalOutClassName() throws javax.jms.JMSException
javax.jms.JMSException
- if the ConnectionFactory is unable to return the marshalling object. Generally this is caused by problems instantiating the marshalling
object from the class specified using setMarshalOutClassName
.setMarshalOutClassName(String)
,
WmMarshalOut
void setMarshalIn(WmMarshalIn marshaller, java.lang.Object userData) throws javax.jms.JMSException
marshaller
- the marshaller that will be called for each event that is received from the broker on the connections created from this factoryuserData
- a user Object that will be passed to the marshaller on each invocation
javax.jms.JMSException
- if the ConnectionFactory is unable to return the marshalling class name.setMarshalOut(com.webmethods.jms.marshal.WmMarshalOut, java.lang.Object)
,
WmMarshalIn
WmMarshalIn getMarshalIn() throws javax.jms.JMSException
If the marshaller was set using the classname method, the class is instantiated at this time if it hasn't already been created.
javax.jms.JMSException
- if the ConnectionFactory is unable to return the marshalling object. Generally this is caused by problems instantiating the marshalling
object from the class specified using setMarshalInClassName
.setMarshalIn(com.webmethods.jms.marshal.WmMarshalIn, java.lang.Object)
,
setMarshalInClassName(String)
,
WmMarshalIn
void setMarshalInClassName(java.lang.String className) throws javax.jms.JMSException
The class will be instantiated when the first connection is created from the ConnectionFactory
or when the marshalling object is retrieved
using getMarshalIn
.
className
- the class for the marshaller that will be called for each message that is received on the connections created from this factory
javax.jms.JMSException
- if the JMS provider fails to set the marshalling class name.getMarshalInClassName()
,
WmMarshalIn
java.lang.String getMarshalInClassName() throws javax.jms.JMSException
javax.jms.JMSException
- if the ConnectionFactory is unable to return the marshalling class name.setMarshalInClassName(String)
,
WmMarshalIn
void setReadOnly() throws javax.jms.JMSException
javax.jms.JMSException
getReadOnly()
boolean getReadOnly() throws javax.jms.JMSException
javax.jms.JMSException
void setAutomaticControlLabel(boolean enable) throws javax.jms.JMSException
enable
-
javax.jms.JMSException
javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password, java.lang.String accessLabelHint) throws javax.jms.JMSException
javax.jms.JMSException
void setBrokerCluster(java.lang.String[] brokers) throws javax.jms.JMSException
brokers
- - Array of Broker URLs. Each Broker URL must be specified as brokername@hostname:port.
javax.jms.JMSException
java.util.concurrent.CopyOnWriteArrayList<java.lang.String> getBrokerCluster()
boolean isClusterFactory()
void setClusterPolicy(int policy) throws javax.jms.JMSException
policy
- - a cluster policy constant from the defined list below
WmClusterPolicyManager.ROUND_ROBIN 0 (default) WmClusterPolicyManager.STICKY 1 WmClusterPolicyManager.RANDOM 2
WmClusterPolicyManager.WEIGHTED_ROUND_ROBIN 3 WmClusterPolicyManager.MULTISEND_GUARANTEED 4 WmClusterPolicyManager.MULTISEND_BEST_EFFORT 5
javax.jms.JMSException
- if the policy is not supported for the type of connection factory . ex: Multi Send Best effort policy is not supported for XA connection
factory.void setClusterPolicyName(java.lang.String policyName) throws javax.jms.JMSException
policyName
- - a Cluster policy name from the below list ROUND_ROBIN (default) STICKY RANDOM WEIGHTED_ROUND_ROBIN MULTISEND_GUARANTEED
MULTISEND_BEST_EFFORT
javax.jms.JMSException
java.lang.String getClusterPolicyName() throws javax.jms.JMSException
javax.jms.JMSException
int getClusterPolicy()
java.lang.String getClusterName()
void setClusterName(java.lang.String name)
name
- Cluster namesetIncludeAllBrokers(boolean)
void setClusterRefreshInterval(long time)
time
- in minuteslong getClusterRefreshInterval()
void setClusterCreationTime(long time)
time
- long getClusterCreationTime()
boolean getIncludeAllBrokers()
void setIncludeAllBrokers(boolean includeAll)
includeAll
- flag to include all the brokers in the cluster.java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.WeightedRoundRobin> getWeightedRoundRobinList()
void setWeightedRoundRobinList(java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.WeightedRoundRobin> weightedList)
weightedList
- List of WeightedRoundRobin objectsvoid setWeightedRoundRobinDataMap(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> map)
java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getWeightedRoundRobinDataMap()
void setMultiSendCount(int count) throws javax.jms.JMSException
count
-
javax.jms.JMSException
- , if the count is less than 1 .int getMultiSendCount()
java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.DocumentSize> getDocSizeList()
void setDocSizeList(java.util.concurrent.CopyOnWriteArrayList<com.webmethods.jms.util.DocumentSize> docList)
docList
- void setDocSizeDataMap(java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> map)
map
- java.util.HashMap<java.lang.String,java.util.List<java.lang.String>> getDocSizeDataMap()
void setCompositeClusterCF(java.lang.String[] connectionFactories)
java.util.concurrent.CopyOnWriteArrayList<java.lang.String> getCompositeClusterCF()
boolean isCompositeClusterFactory()
boolean compareConnectionFactory(java.lang.Object connFactory)
void setCompositeChildConnFactories(java.util.concurrent.CopyOnWriteArrayList<WmConnectionFactory> childConnFactories) throws javax.jms.JMSException
childConnFactories
- of child cluster connection factory objects
javax.jms.JMSException
java.util.concurrent.CopyOnWriteArrayList<WmConnectionFactory> getCompositeChildConnFactories() throws javax.jms.JMSException
javax.jms.JMSException
- If it failed to get the list of Connection Factory objects.boolean getClusterPolicyOverride()
void setClusterPolicyOverride(boolean clusterPolicyOverride)
clusterPolicyOverride
-
|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |