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:
Serializable,ConnectionFactoryOptions
public class ActiveMQRAProperties extends ConnectionFactoryProperties implements 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 StringgetCodec()StringgetJgroupsChannelLocatorClass()StringgetJgroupsChannelRefName()Hashtable<?,?>getParsedJndiParams()StringgetPassword()Get the passwordStringgetPasswordCodec()intgetSetupAttempts()longgetSetupInterval()BooleangetUseLocalTx()Get the use XA flagStringgetUserName()Get the user namevoidinit()booleanisAllowLocalTransactions()booleanisUseJNDI()BooleanisUseMaskedPassword()booleanisUseTopologyForLoadBalancing()voidsetAllowLocalTransactions(boolean allowLocalTransactions)voidsetJgroupsChannelLocatorClass(String jgroupsChannelLocatorClass)voidsetJgroupsChannelRefName(String jgroupsChannelRefName)voidsetParsedJndiParams(Hashtable<?,?> params)voidsetPassword(String password)Set the password Based on UseMaskedPassword property, the password can be plain text or encoded string.voidsetPasswordCodec(String codecs)voidsetSetupAttempts(Integer setupAttempts)voidsetSetupInterval(Long setupInterval)voidsetUseJNDI(Boolean value)voidsetUseLocalTx(Boolean localTx)Set the use XA flagvoidsetUseMaskedPassword(Boolean useMaskedPassword)voidsetUserName(String userName)Set the user namevoidsetUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing)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 String getUserName()
Get the user name- Returns:
- The value
-
setUserName
public void setUserName(String userName)
Set the user name- Parameters:
userName- The value
-
getPassword
public String getPassword()
Get the password- Returns:
- The value
-
setPassword
public void setPassword(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(Boolean value)
- Parameters:
value- the useJNDI to set
-
getParsedJndiParams
public Hashtable<?,?> getParsedJndiParams()
- Returns:
- return the jndi params to use
-
setParsedJndiParams
public void setParsedJndiParams(Hashtable<?,?> params)
-
getUseLocalTx
public Boolean getUseLocalTx()
Get the use XA flag- Returns:
- The value
-
setUseLocalTx
public void setUseLocalTx(Boolean localTx)
Set the use XA flag- Parameters:
localTx- The value
-
getSetupAttempts
public int getSetupAttempts()
-
setSetupAttempts
public void setSetupAttempts(Integer setupAttempts)
-
getSetupInterval
public long getSetupInterval()
-
setSetupInterval
public void setSetupInterval(Long setupInterval)
-
isUseMaskedPassword
public Boolean isUseMaskedPassword()
-
setUseMaskedPassword
public void setUseMaskedPassword(Boolean useMaskedPassword)
-
getPasswordCodec
public String getPasswordCodec()
-
setPasswordCodec
public void setPasswordCodec(String codecs)
-
init
public void init() throws ActiveMQException- Throws:
ActiveMQException
-
setUseTopologyForLoadBalancing
public void setUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing)
-
isUseTopologyForLoadBalancing
public boolean isUseTopologyForLoadBalancing()
-
getCodec
public String getCodec()
-
getJgroupsChannelLocatorClass
public String getJgroupsChannelLocatorClass()
-
setJgroupsChannelLocatorClass
public void setJgroupsChannelLocatorClass(String jgroupsChannelLocatorClass)
-
getJgroupsChannelRefName
public String getJgroupsChannelRefName()
-
setJgroupsChannelRefName
public void setJgroupsChannelRefName(String jgroupsChannelRefName)
-
isAllowLocalTransactions
public boolean isAllowLocalTransactions()
-
setAllowLocalTransactions
public void setAllowLocalTransactions(boolean allowLocalTransactions)
-
-