com.ibm.websphere.management.cmdframework.provider
Class SimpleAdminCommand
- java.lang.Object
-
- org.eclipse.emf.common.command.AbstractCommand
-
- com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
-
- com.ibm.websphere.management.cmdframework.provider.SimpleAdminCommand
-
- All Implemented Interfaces:
- AdminCommand, org.eclipse.emf.common.command.Command
public class SimpleAdminCommand extends AbstractAdminCommand
A simple implementation of AdminCommand. This class delegates the command execution logic to an implementation of SimpleCommandProvider.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
AbstractAdminCommand.CmdNotificationListener
-
-
Field Summary
Fields Modifier and Type Field and Description protected SimpleCommandProvidercmdProvider-
Fields inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
ASYNC_CUSTOM_TAG, asyncCmdSession, cmdMgrType, cnh, DYNAMIC_CUSTOM_TAG, listSetParamsTable, PRIVATE_CUSTOM_TAG
-
-
Constructor Summary
Constructors Constructor and Description SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)
-
Method Summary
Methods Modifier and Type Method and Description voidexecute()Defines the execution logic of command.voidexecute(CommandHistory cmdHistory)Executes the command and puts the command data into the command history.-
Methods inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
cleanupUploadedFiles, createParamEObject, createParameterMetadata, generateScript, getChoices, getCmdHandler, getCmdMgrType, getCommandData, getCommandMetadata, getCommandMetadata, getCommandResult, getCommandSession, getConfigService, getConfigSession, getLocale, getName, getOrigParameterValue, getParameter, getParameter, getParameterMetadata, getResult, getTargetObject, getTargetObjectChoices, getUserData, initCommandData, initializeParameter, initializeParameter, isAsyncCommand, isDynamicStepCommand, isLocalMode, isParamReadonly, isPrivateParameter, isTable, listAllParameterName, listParameterName, listSetParams, listSetParams, redo, resetCommandData, resetCommandMetadata, save, sendNotification, setCmdHandler, setCmdMgrType, setCommandMetadata, setCommandResult, setCommandSession, setConfigSession, setListSetParamsTable, setLocale, setOrigParameterValue, setParameter, setParameter, setTargetObject, setupListener, validate
-
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, prepare, setDescription, setLabel, toString, undo
-
-
-
-
Field Detail
-
cmdProvider
protected SimpleCommandProvider cmdProvider
-
-
Constructor Detail
-
SimpleAdminCommand
public SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata) throws CommandNotFoundException- Throws:
CommandNotFoundException
-
SimpleAdminCommand
public SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData) throws CommandNotFoundException, CommandLoadException
-
-
Method Detail
-
execute
public void execute()
Description copied from class:AbstractAdminCommandDefines the execution logic of command. Any admin command must at least implement this method.- Specified by:
executein interfaceorg.eclipse.emf.common.command.Command- Specified by:
executein classAbstractAdminCommand
-
execute
public void execute(CommandHistory cmdHistory)
Description copied from interface:AdminCommandExecutes the command and puts the command data into the command history.- Specified by:
executein interfaceAdminCommand- Overrides:
executein classAbstractAdminCommand- Parameters:
cmdHistory- an implementation of command history
-
-