Class JMSBridgeImpl
- java.lang.Object
-
- org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl
-
-
Constructor Summary
Constructors Constructor Description JMSBridgeImpl()
JMSBridgeImpl(ConnectionFactoryFactory sourceCff, ConnectionFactoryFactory targetCff, DestinationFactory sourceDestinationFactory, DestinationFactory targetDestinationFactory, java.lang.String sourceUsername, java.lang.String sourcePassword, java.lang.String targetUsername, java.lang.String targetPassword, java.lang.String selector, long failureRetryInterval, int maxRetries, QualityOfServiceMode qosMode, int maxBatchSize, long maxBatchTime, java.lang.String subName, java.lang.String clientID, boolean addMessageIDInHeader)
JMSBridgeImpl(ConnectionFactoryFactory sourceCff, ConnectionFactoryFactory targetCff, DestinationFactory sourceDestinationFactory, DestinationFactory targetDestinationFactory, java.lang.String sourceUsername, java.lang.String sourcePassword, java.lang.String targetUsername, java.lang.String targetPassword, java.lang.String selector, long failureRetryInterval, int maxRetries, QualityOfServiceMode qosMode, int maxBatchSize, long maxBatchTime, java.lang.String subName, java.lang.String clientID, boolean addMessageIDInHeader, javax.management.MBeanServer mbeanServer, java.lang.String objectName)
JMSBridgeImpl(ConnectionFactoryFactory sourceCff, ConnectionFactoryFactory targetCff, DestinationFactory sourceDestinationFactory, DestinationFactory targetDestinationFactory, java.lang.String sourceUsername, java.lang.String sourcePassword, java.lang.String targetUsername, java.lang.String targetPassword, java.lang.String selector, long failureRetryInterval, int maxRetries, QualityOfServiceMode qosMode, int maxBatchSize, long maxBatchTime, java.lang.String subName, java.lang.String clientID, boolean addMessageIDInHeader, javax.management.MBeanServer mbeanServer, java.lang.String objectName, long failoverTimeout)
-
Method Summary
-
-
-
Constructor Detail
-
JMSBridgeImpl
public JMSBridgeImpl()
-
JMSBridgeImpl
public JMSBridgeImpl(ConnectionFactoryFactory sourceCff, ConnectionFactoryFactory targetCff, DestinationFactory sourceDestinationFactory, DestinationFactory targetDestinationFactory, java.lang.String sourceUsername, java.lang.String sourcePassword, java.lang.String targetUsername, java.lang.String targetPassword, java.lang.String selector, long failureRetryInterval, int maxRetries, QualityOfServiceMode qosMode, int maxBatchSize, long maxBatchTime, java.lang.String subName, java.lang.String clientID, boolean addMessageIDInHeader)
-
JMSBridgeImpl
public JMSBridgeImpl(ConnectionFactoryFactory sourceCff, ConnectionFactoryFactory targetCff, DestinationFactory sourceDestinationFactory, DestinationFactory targetDestinationFactory, java.lang.String sourceUsername, java.lang.String sourcePassword, java.lang.String targetUsername, java.lang.String targetPassword, java.lang.String selector, long failureRetryInterval, int maxRetries, QualityOfServiceMode qosMode, int maxBatchSize, long maxBatchTime, java.lang.String subName, java.lang.String clientID, boolean addMessageIDInHeader, javax.management.MBeanServer mbeanServer, java.lang.String objectName)
-
JMSBridgeImpl
public JMSBridgeImpl(ConnectionFactoryFactory sourceCff, ConnectionFactoryFactory targetCff, DestinationFactory sourceDestinationFactory, DestinationFactory targetDestinationFactory, java.lang.String sourceUsername, java.lang.String sourcePassword, java.lang.String targetUsername, java.lang.String targetPassword, java.lang.String selector, long failureRetryInterval, int maxRetries, QualityOfServiceMode qosMode, int maxBatchSize, long maxBatchTime, java.lang.String subName, java.lang.String clientID, boolean addMessageIDInHeader, javax.management.MBeanServer mbeanServer, java.lang.String objectName, long failoverTimeout)
-
-
Method Detail
-
setBridgeName
public JMSBridgeImpl setBridgeName(java.lang.String name)
- Specified by:
setBridgeName
in interfaceJMSBridge
-
getBridgeName
public java.lang.String getBridgeName()
- Specified by:
getBridgeName
in interfaceJMSBridge
-
start
public void start() throws java.lang.Exception
- Specified by:
start
in interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
- Throws:
java.lang.Exception
-
stop
public void stop() throws java.lang.Exception
- Specified by:
stop
in interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
- Throws:
java.lang.Exception
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceorg.apache.activemq.artemis.core.server.ActiveMQComponent
-
destroy
public void destroy()
-
pause
public void pause() throws java.lang.Exception
-
resume
public void resume() throws java.lang.Exception
-
getSourceDestinationFactory
public DestinationFactory getSourceDestinationFactory()
- Specified by:
getSourceDestinationFactory
in interfaceJMSBridge
-
setSourceDestinationFactory
public void setSourceDestinationFactory(DestinationFactory dest)
- Specified by:
setSourceDestinationFactory
in interfaceJMSBridge
-
getTargetDestinationFactory
public DestinationFactory getTargetDestinationFactory()
- Specified by:
getTargetDestinationFactory
in interfaceJMSBridge
-
setTargetDestinationFactory
public void setTargetDestinationFactory(DestinationFactory dest)
- Specified by:
setTargetDestinationFactory
in interfaceJMSBridge
-
getSourceUsername
public java.lang.String getSourceUsername()
- Specified by:
getSourceUsername
in interfaceJMSBridge
-
setSourceUsername
public void setSourceUsername(java.lang.String name)
- Specified by:
setSourceUsername
in interfaceJMSBridge
-
getSourcePassword
public java.lang.String getSourcePassword()
- Specified by:
getSourcePassword
in interfaceJMSBridge
-
setSourcePassword
public void setSourcePassword(java.lang.String pwd)
- Specified by:
setSourcePassword
in interfaceJMSBridge
-
getTargetUsername
public java.lang.String getTargetUsername()
- Specified by:
getTargetUsername
in interfaceJMSBridge
-
setTargetUsername
public void setTargetUsername(java.lang.String name)
- Specified by:
setTargetUsername
in interfaceJMSBridge
-
getTargetPassword
public java.lang.String getTargetPassword()
- Specified by:
getTargetPassword
in interfaceJMSBridge
-
setTargetPassword
public void setTargetPassword(java.lang.String pwd)
- Specified by:
setTargetPassword
in interfaceJMSBridge
-
getSelector
public java.lang.String getSelector()
- Specified by:
getSelector
in interfaceJMSBridge
-
setSelector
public void setSelector(java.lang.String selector)
- Specified by:
setSelector
in interfaceJMSBridge
-
getFailureRetryInterval
public long getFailureRetryInterval()
- Specified by:
getFailureRetryInterval
in interfaceJMSBridge
-
setFailureRetryInterval
public void setFailureRetryInterval(long interval)
- Specified by:
setFailureRetryInterval
in interfaceJMSBridge
-
getMaxRetries
public int getMaxRetries()
- Specified by:
getMaxRetries
in interfaceJMSBridge
-
setMaxRetries
public void setMaxRetries(int retries)
- Specified by:
setMaxRetries
in interfaceJMSBridge
-
getQualityOfServiceMode
public QualityOfServiceMode getQualityOfServiceMode()
- Specified by:
getQualityOfServiceMode
in interfaceJMSBridge
-
setQualityOfServiceMode
public void setQualityOfServiceMode(QualityOfServiceMode mode)
- Specified by:
setQualityOfServiceMode
in interfaceJMSBridge
-
getMaxBatchSize
public int getMaxBatchSize()
- Specified by:
getMaxBatchSize
in interfaceJMSBridge
-
setMaxBatchSize
public void setMaxBatchSize(int size)
- Specified by:
setMaxBatchSize
in interfaceJMSBridge
-
getMaxBatchTime
public long getMaxBatchTime()
- Specified by:
getMaxBatchTime
in interfaceJMSBridge
-
setMaxBatchTime
public void setMaxBatchTime(long time)
- Specified by:
setMaxBatchTime
in interfaceJMSBridge
-
getSubscriptionName
public java.lang.String getSubscriptionName()
- Specified by:
getSubscriptionName
in interfaceJMSBridge
-
setSubscriptionName
public void setSubscriptionName(java.lang.String subname)
- Specified by:
setSubscriptionName
in interfaceJMSBridge
-
getClientID
public java.lang.String getClientID()
- Specified by:
getClientID
in interfaceJMSBridge
-
setClientID
public void setClientID(java.lang.String clientID)
- Specified by:
setClientID
in interfaceJMSBridge
-
isAddMessageIDInHeader
public boolean isAddMessageIDInHeader()
- Specified by:
isAddMessageIDInHeader
in interfaceJMSBridge
-
setAddMessageIDInHeader
public void setAddMessageIDInHeader(boolean value)
- Specified by:
setAddMessageIDInHeader
in interfaceJMSBridge
-
getMessageCount
public long getMessageCount()
- Specified by:
getMessageCount
in interfaceJMSBridge
-
getAbortedMessageCount
public long getAbortedMessageCount()
- Specified by:
getAbortedMessageCount
in interfaceJMSBridge
-
setSourceConnectionFactoryFactory
public void setSourceConnectionFactoryFactory(ConnectionFactoryFactory cff)
- Specified by:
setSourceConnectionFactoryFactory
in interfaceJMSBridge
-
setTargetConnectionFactoryFactory
public void setTargetConnectionFactoryFactory(ConnectionFactoryFactory cff)
- Specified by:
setTargetConnectionFactoryFactory
in interfaceJMSBridge
-
setTransactionManager
public void setTransactionManager(javax.transaction.TransactionManager tm)
- Specified by:
setTransactionManager
in interfaceJMSBridge
-
isUseMaskedPassword
public boolean isUseMaskedPassword()
- Specified by:
isUseMaskedPassword
in interfaceJMSBridge
-
setUseMaskedPassword
public void setUseMaskedPassword(boolean maskPassword)
- Specified by:
setUseMaskedPassword
in interfaceJMSBridge
-
getPasswordCodec
public java.lang.String getPasswordCodec()
- Specified by:
getPasswordCodec
in interfaceJMSBridge
-
setPasswordCodec
public void setPasswordCodec(java.lang.String passwordCodec)
- Specified by:
setPasswordCodec
in interfaceJMSBridge
-
getFailoverTimeout
public long getFailoverTimeout()
-
setFailoverTimeout
public void setFailoverTimeout(long failoverTimeout)
-
-