Class Transfer
java.lang.Object
org.apache.activemq.artemis.cli.commands.ActionAbstract
org.apache.activemq.artemis.cli.commands.InputAbstract
org.apache.activemq.artemis.cli.commands.messages.Transfer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConnectionFactoryClosablecreateConnectionFactory(String role, String protocol, String brokerURL, String user, String password, String clientID) protected ActiveMQConnectionFactorycreateCoreConnectionFactory(String brokerURL, String user, String password, String clientID) execute(ActionContext context) intintintbooleanisCopy()booleansetCommitInterval(int commitInterval) setCopy(boolean copy) setDurableConsumer(String durableConsumer) setMessageCount(int messageCount) setNoLocal(boolean noLocal) setReceiveTimeout(int receiveTimeout) setSharedDurableSubscription(String sharedDurableSubscription) setSharedSubscription(String sharedSubscription) setSourceAcceptor(String sourceAcceptor) setSourceClientID(String sourceClientID) setSourcePassword(String sourcePassword) setSourceProtocol(String sourceProtocol) setSourceQueue(String sourceQueue) setSourceTopic(String sourceTopic) setSourceURL(String sourceURL) setSourceUser(String sourceUser) setTargetPassword(String targetPassword) setTargetProtocol(String targetProtocol) setTargetQueue(String targetQueue) setTargetTopic(String targetTopic) setTargetURL(String targetURL) setTargetUser(String targetUser) Methods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInputMethods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
Field Details
-
sourceURL
-
sourceAcceptor
-
sourceUser
-
sourcePassword
-
targetURL
-
targetUser
-
targetPassword
-
-
Constructor Details
-
Transfer
public Transfer()
-
-
Method Details
-
getSourceURL
-
setSourceURL
-
getSourceAcceptor
-
setSourceAcceptor
-
getSourceUser
-
setSourceUser
-
getSourcePassword
-
setSourcePassword
-
getTargetURL
-
setTargetURL
-
getTargetUser
-
setTargetUser
-
getTargetPassword
-
setTargetPassword
-
getReceiveTimeout
public int getReceiveTimeout() -
setReceiveTimeout
-
getSourceClientID
-
setSourceClientID
-
getSourceProtocol
-
setSourceProtocol
-
getSourceQueue
-
setSourceQueue
-
getDurableConsumer
-
setDurableConsumer
-
isNoLocal
public boolean isNoLocal() -
setNoLocal
-
getSourceTopic
-
setSourceTopic
-
getFilter
-
setFilter
-
getTargetProtocol
-
setTargetProtocol
-
getCommitInterval
public int getCommitInterval() -
setCommitInterval
-
isCopy
public boolean isCopy() -
setCopy
-
getTargetQueue
-
setTargetQueue
-
getTargetTopic
-
setTargetTopic
-
getMessageCount
public int getMessageCount() -
setMessageCount
-
execute
- Specified by:
executein interfaceAction- Overrides:
executein classInputAbstract- Throws:
Exception
-
createConnectionFactory
protected ConnectionFactoryClosable createConnectionFactory(String role, String protocol, String brokerURL, String user, String password, String clientID) throws Exception - Throws:
Exception
-
createCoreConnectionFactory
protected ActiveMQConnectionFactory createCoreConnectionFactory(String brokerURL, String user, String password, String clientID)
-