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 Object implements Action
-
-
Field Summary
Fields Modifier and Type Field Description protected ActionContextcontextstatic StringDEFAULT_BROKER_ACCEPTORstatic StringDEFAULT_BROKER_URLbooleanverbose
-
Constructor Summary
Constructors Constructor Description ActionAbstract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckOptions(String[] options)Objectexecute(ActionContext context)protected ConfigurationgetBrokerConfiguration()StringgetBrokerEtc()StringgetBrokerHome()StringgetBrokerInstance()URIgetBrokerURIInstance()StringgetBrokerURLInstance(String acceptor)booleanisVerbose()voidsetHomeValues(File brokerHome, File brokerInstance)
-
-
-
Field Detail
-
DEFAULT_BROKER_URL
public static final String DEFAULT_BROKER_URL
- See Also:
- Constant Field Values
-
DEFAULT_BROKER_ACCEPTOR
public static final String DEFAULT_BROKER_ACCEPTOR
- See Also:
- Constant Field Values
-
verbose
public boolean verbose
-
context
protected ActionContext context
-
-
Method Detail
-
setHomeValues
public void setHomeValues(File brokerHome, File brokerInstance)
- Specified by:
setHomeValuesin interfaceAction
-
getBrokerInstance
public String getBrokerInstance()
- Specified by:
getBrokerInstancein interfaceAction
-
getBrokerConfiguration
protected Configuration getBrokerConfiguration() throws Exception
- Throws:
Exception
-
getBrokerEtc
public String getBrokerEtc()
-
getBrokerURIInstance
public URI getBrokerURIInstance()
-
getBrokerHome
public String getBrokerHome()
- Specified by:
getBrokerHomein interfaceAction
-
execute
public Object execute(ActionContext context) throws Exception
-
checkOptions
public void checkOptions(String[] options) throws InvalidOptionsError
- Specified by:
checkOptionsin interfaceAction- Throws:
InvalidOptionsError
-
-