Class ActionAbstract
- java.lang.Object
-
- org.apache.activemq.artemis.cli.commands.ActionAbstract
-
- All Implemented Interfaces:
Action
- Direct Known Subclasses:
Configurable,InputAbstract,Mask,PrintVersion,XmlDataImporter
public abstract class ActionAbstract extends java.lang.Object implements Action
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_BROKER_ACCEPTORstatic java.lang.StringDEFAULT_BROKER_URLbooleanverbose
-
Constructor Summary
Constructors Constructor Description ActionAbstract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckOptions(java.lang.String[] options)java.lang.Objectexecute(ActionContext context)protected ActionContextgetActionContext()protected org.apache.activemq.artemis.core.config.ConfigurationgetBrokerConfiguration()java.lang.StringgetBrokerEtc()java.lang.StringgetBrokerHome()java.lang.StringgetBrokerInstance()java.net.URIgetBrokerURIInstance()java.lang.StringgetBrokerURLInstance(java.lang.String acceptor)booleanisVerbose()voidsetHomeValues(java.io.File brokerHome, java.io.File brokerInstance)
-
-
-
Field Detail
-
DEFAULT_BROKER_URL
public static final java.lang.String DEFAULT_BROKER_URL
- See Also:
- Constant Field Values
-
DEFAULT_BROKER_ACCEPTOR
public static final java.lang.String DEFAULT_BROKER_ACCEPTOR
- See Also:
- Constant Field Values
-
verbose
public boolean verbose
-
-
Method Detail
-
getActionContext
protected ActionContext getActionContext()
-
setHomeValues
public void setHomeValues(java.io.File brokerHome, java.io.File brokerInstance)- Specified by:
setHomeValuesin interfaceAction
-
getBrokerInstance
public java.lang.String getBrokerInstance()
- Specified by:
getBrokerInstancein interfaceAction
-
getBrokerURLInstance
public java.lang.String getBrokerURLInstance(java.lang.String acceptor)
-
getBrokerConfiguration
protected org.apache.activemq.artemis.core.config.Configuration getBrokerConfiguration() throws java.lang.Exception- Throws:
java.lang.Exception
-
getBrokerEtc
public java.lang.String getBrokerEtc()
-
getBrokerURIInstance
public java.net.URI getBrokerURIInstance()
-
getBrokerHome
public java.lang.String getBrokerHome()
- Specified by:
getBrokerHomein interfaceAction
-
execute
public java.lang.Object execute(ActionContext context) throws java.lang.Exception
-
checkOptions
public void checkOptions(java.lang.String[] options) throws InvalidOptionsError- Specified by:
checkOptionsin interfaceAction- Throws:
InvalidOptionsError
-
-