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
-
public class Transfer extends InputAbstract
-
-
Field Summary
Fields Modifier and Type Field Description protected StringsourceAcceptorprotected StringsourcePasswordprotected StringsourceURLprotected StringsourceUserprotected StringtargetPasswordprotected StringtargetURLprotected StringtargetUser-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description Transfer()
-
Method Summary
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInput
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
-
-
-
Field Detail
-
sourceURL
protected String sourceURL
-
sourceAcceptor
protected String sourceAcceptor
-
sourceUser
protected String sourceUser
-
sourcePassword
protected String sourcePassword
-
targetURL
protected String targetURL
-
targetUser
protected String targetUser
-
targetPassword
protected String targetPassword
-
-
Method Detail
-
getSourceURL
public String getSourceURL()
-
getSourceAcceptor
public String getSourceAcceptor()
-
getSourceUser
public String getSourceUser()
-
getSourcePassword
public String getSourcePassword()
-
getTargetURL
public String getTargetURL()
-
getTargetUser
public String getTargetUser()
-
getTargetPassword
public String getTargetPassword()
-
getReceiveTimeout
public int getReceiveTimeout()
-
setReceiveTimeout
public Transfer setReceiveTimeout(int receiveTimeout)
-
getSourceClientID
public String getSourceClientID()
-
getSourceProtocol
public String getSourceProtocol()
-
getSourceQueue
public String getSourceQueue()
-
getSharedDurableSubscription
public String getSharedDurableSubscription()
-
setSharedDurableSubscription
public Transfer setSharedDurableSubscription(String sharedDurableSubscription)
-
getSharedSubscription
public String getSharedSubscription()
-
getDurableConsumer
public String getDurableConsumer()
-
isNoLocal
public boolean isNoLocal()
-
setNoLocal
public Transfer setNoLocal(boolean noLocal)
-
getSourceTopic
public String getSourceTopic()
-
getFilter
public String getFilter()
-
getTargetProtocol
public String getTargetProtocol()
-
getCommitInterval
public int getCommitInterval()
-
setCommitInterval
public Transfer setCommitInterval(int commitInterval)
-
isCopy
public boolean isCopy()
-
setCopy
public Transfer setCopy(boolean copy)
-
getTargetQueue
public String getTargetQueue()
-
getTargetTopic
public String getTargetTopic()
-
getMessageCount
public int getMessageCount()
-
setMessageCount
public Transfer setMessageCount(int messageCount)
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classInputAbstract- Throws:
Exception
-
createConnectionFactory
protected javax.jms.ConnectionFactory createConnectionFactory(String role, String protocol, String brokerURL, String user, String password, String clientID) throws Exception
- Throws:
Exception
-
-