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
Nested Class Summary
| Nested classes/interfaces inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand |
|---|
AbstractAdminCommand.CmdNotificationListener |
| Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
org.eclipse.emf.common.command.AbstractCommand.NonDirtying |
Field Summary
| Modifier and Type | Field and Description |
|---|---|
|
cmdProvider
|
| Fields inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand |
|---|
ASYNC_CUSTOM_TAG, asyncCmdSession, cmdMgrType, cnh, DYNAMIC_CUSTOM_TAG, listSetParamsTable, PRIVATE_CUSTOM_TAG |
| Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
description, isExecutable, isPrepared, label |
Constructor Summary
| Constructor and Description |
|---|
SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
|
SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)
|
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
execute()
|
|
execute(CommandHistory cmdHistory)
|
| Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
canExecute, canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, prepare, setDescription, setLabel, toString, undo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.emf.common.command.Command |
|---|
canExecute, canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, undo |
Field Detail
cmdProvider
- protected SimpleCommandProvider cmdProvider
Constructor Detail
SimpleAdminCommand
- public SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)
- throws CommandNotFoundException
Throws:
SimpleAdminCommand
- public SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
- throws CommandNotFoundException
- CommandLoadException
Method Detail
execute
- public void execute()
Defines the execution logic of command.
Any admin command must at least implement this method.
Specified by:
execute in interface org.eclipse.emf.common.command.Command
Specified by:
execute in class AbstractAdminCommand
execute
- public void execute(CommandHistory cmdHistory)
Description copied from interface:
AdminCommand
Executes the command and puts the command data into the command history.
Parameters:
cmdHistory - an implementation of command history
AbstractAdminCommand