Package org.apache.activemq.artemis.ra
Class ActiveMQRAProperties
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ConnectionFactoryProperties
-
- org.apache.activemq.artemis.ra.ActiveMQRAProperties
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.activemq.artemis.jms.client.ConnectionFactoryOptions
public class ActiveMQRAProperties extends ConnectionFactoryProperties implements java.io.Serializable
The RA default properties - these are set in the ra.xml file- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowLocalTransactionsprotected booleanuseTopologyForLoadBalancing
-
Constructor Summary
Constructors Constructor Description ActiveMQRAProperties()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCodec()java.lang.StringgetJgroupsChannelLocatorClass()java.lang.StringgetJgroupsChannelRefName()java.util.Hashtable<?,?>getParsedJndiParams()java.lang.StringgetPassword()Get the passwordjava.lang.StringgetPasswordCodec()intgetSetupAttempts()longgetSetupInterval()java.lang.BooleangetUseLocalTx()Get the use XA flagjava.lang.StringgetUserName()Get the user namevoidinit()booleanisAllowLocalTransactions()booleanisUseJNDI()java.lang.BooleanisUseMaskedPassword()booleanisUseTopologyForLoadBalancing()voidsetAllowLocalTransactions(boolean allowLocalTransactions)voidsetJgroupsChannelLocatorClass(java.lang.String jgroupsChannelLocatorClass)voidsetJgroupsChannelRefName(java.lang.String jgroupsChannelRefName)voidsetParsedJndiParams(java.util.Hashtable<?,?> params)voidsetPassword(java.lang.String password)Set the password Based on UseMaskedPassword property, the password can be plain text or encoded string.voidsetPasswordCodec(java.lang.String codecs)voidsetSetupAttempts(java.lang.Integer setupAttempts)voidsetSetupInterval(java.lang.Long setupInterval)voidsetUseJNDI(java.lang.Boolean value)voidsetUseLocalTx(java.lang.Boolean localTx)Set the use XA flagvoidsetUseMaskedPassword(java.lang.Boolean useMaskedPassword)voidsetUserName(java.lang.String userName)Set the user namevoidsetUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing)java.lang.StringtoString()-
Methods inherited from class org.apache.activemq.artemis.ra.ConnectionFactoryProperties
equals, getCallFailoverTimeout, getCallTimeout, getClientFailureCheckPeriod, getClientID, getConfirmationWindowSize, getConnectionLoadBalancingPolicyClassName, getConnectionTTL, getConsumerMaxRate, getConsumerWindowSize, getDeserializationBlackList, getDeserializationWhiteList, getDiscoveryAddress, getDiscoveryInitialWaitTimeout, getDiscoveryLocalBindAddress, getDiscoveryPort, getDiscoveryRefreshTimeout, getDupsOKBatchSize, getGroupID, getInitialConnectAttempts, getInitialMessagePacketSize, getJgroupsChannelName, getJgroupsFile, getMaxRetryInterval, getMinLargeMessageSize, getParsedConnectionParameters, getParsedConnectorClassNames, getProducerMaxRate, getProducerWindowSize, getProtocolManagerFactoryStr, getReconnectAttempts, getRetryInterval, getRetryIntervalMultiplier, getScheduledThreadPoolMaxSize, getThreadPoolMaxSize, getTransactionBatchSize, hashCode, isAutoGroup, isBlockOnAcknowledge, isBlockOnDurableSend, isBlockOnNonDurableSend, isCacheDestinations, isCacheLargeMessagesClient, isCompressLargeMessage, isEnable1xPrefixes, isEnableSharedClientID, isFailoverOnInitialConnection, isHA, isHasBeenUpdated, isPreAcknowledge, isUseGlobalPools, setAutoGroup, setBlockOnAcknowledge, setBlockOnDurableSend, setBlockOnNonDurableSend, setCacheDestinations, setCacheLargeMessagesClient, setCallFailoverTimeout, setCallTimeout, setClientFailureCheckPeriod, setClientID, setCompressLargeMessage, setConfirmationWindowSize, setConnectionLoadBalancingPolicyClassName, setConnectionTTL, setConsumerMaxRate, setConsumerWindowSize, setDeserializationBlackList, setDeserializationWhiteList, setDiscoveryAddress, setDiscoveryInitialWaitTimeout, setDiscoveryLocalBindAddress, setDiscoveryPort, setDiscoveryRefreshTimeout, setDupsOKBatchSize, setEnable1xPrefixes, setEnableSharedClientID, setFailoverOnInitialConnection, setGroupID, setHA, setInitialConnectAttempts, setInitialMessagePacketSize, setJgroupsChannelName, setJgroupsFile, setMaxRetryInterval, setMinLargeMessageSize, setParsedConnectionParameters, setParsedConnectorClassNames, setPreAcknowledge, setProducerMaxRate, setProducerWindowSize, setProtocolManagerFactoryStr, setReconnectAttempts, setRetryInterval, setRetryIntervalMultiplier, setScheduledThreadPoolMaxSize, setThreadPoolMaxSize, setTransactionBatchSize, setUseGlobalPools
-
-
-
-
Method Detail
-
getUserName
public java.lang.String getUserName()
Get the user name- Returns:
- The value
-
setUserName
public void setUserName(java.lang.String userName)
Set the user name- Parameters:
userName- The value
-
getPassword
public java.lang.String getPassword()
Get the password- Returns:
- The value
-
setPassword
public void setPassword(java.lang.String password)
Set the password Based on UseMaskedPassword property, the password can be plain text or encoded string. However we cannot decide which is the case at this moment, because we don't know when the UseMaskedPassword and PasswordCodec are loaded. So for the moment we just save the password.- Parameters:
password- The value
-
isUseJNDI
public boolean isUseJNDI()
- Returns:
- the useJNDI
-
setUseJNDI
public void setUseJNDI(java.lang.Boolean value)
- Parameters:
value- the useJNDI to set
-
getParsedJndiParams
public java.util.Hashtable<?,?> getParsedJndiParams()
- Returns:
- return the jndi params to use
-
setParsedJndiParams
public void setParsedJndiParams(java.util.Hashtable<?,?> params)
-
getUseLocalTx
public java.lang.Boolean getUseLocalTx()
Get the use XA flag- Returns:
- The value
-
setUseLocalTx
public void setUseLocalTx(java.lang.Boolean localTx)
Set the use XA flag- Parameters:
localTx- The value
-
getSetupAttempts
public int getSetupAttempts()
-
setSetupAttempts
public void setSetupAttempts(java.lang.Integer setupAttempts)
-
getSetupInterval
public long getSetupInterval()
-
setSetupInterval
public void setSetupInterval(java.lang.Long setupInterval)
-
isUseMaskedPassword
public java.lang.Boolean isUseMaskedPassword()
-
setUseMaskedPassword
public void setUseMaskedPassword(java.lang.Boolean useMaskedPassword)
-
getPasswordCodec
public java.lang.String getPasswordCodec()
-
setPasswordCodec
public void setPasswordCodec(java.lang.String codecs)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
init
public void init() throws org.apache.activemq.artemis.api.core.ActiveMQException- Throws:
org.apache.activemq.artemis.api.core.ActiveMQException
-
setUseTopologyForLoadBalancing
public void setUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing)
-
isUseTopologyForLoadBalancing
public boolean isUseTopologyForLoadBalancing()
-
getCodec
public java.lang.String getCodec()
-
getJgroupsChannelLocatorClass
public java.lang.String getJgroupsChannelLocatorClass()
-
setJgroupsChannelLocatorClass
public void setJgroupsChannelLocatorClass(java.lang.String jgroupsChannelLocatorClass)
-
getJgroupsChannelRefName
public java.lang.String getJgroupsChannelRefName()
-
setJgroupsChannelRefName
public void setJgroupsChannelRefName(java.lang.String jgroupsChannelRefName)
-
isAllowLocalTransactions
public boolean isAllowLocalTransactions()
-
setAllowLocalTransactions
public void setAllowLocalTransactions(boolean allowLocalTransactions)
-
-