com.ibm.ws.rest.services.admin
Class RestServicesCreateClusterExt

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
          extended by com.ibm.websphere.management.cmdframework.provider.AbstractCommandStep
              extended by com.ibm.ws.rest.services.admin.RestServicesCreateClusterExt
All Implemented Interfaces:
com.ibm.websphere.management.cmdframework.AdminCommand, com.ibm.websphere.management.cmdframework.CommandStep, org.eclipse.emf.common.command.Command

public class RestServicesCreateClusterExt
extends com.ibm.websphere.management.cmdframework.provider.AbstractCommandStep

The class implements a step in CreateCluster task command. When promote an existing server into cluster, the class will be invoked to migrate the resources inside the server into the cluster. The ultimate goal is that applications deployed on the original server can run normally in the cluster after promoting.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand.CmdNotificationListener
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Field Summary
 
Fields inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractCommandStep
taskCmd
 
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
RestServicesCreateClusterExt(com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand parent, com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
          Default constructor inherited from parent class
RestServicesCreateClusterExt(com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand parent, com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)
          Default constructor inherited from parent class
 
Method Summary
protected  void executeStep()
          The main logic comes here.
 
Methods inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractCommandStep
addRow, commandParamModified, createParamEObject, deleteRow, equals, execute, execute, getChoices, getCommandMetadata, getCommandStepData, getConfigSession, getNumberOfRows, getParameter, hashcode, initCommandData, initializeRow, initializeStep, isEnabled, isLocalMode, isRequired, isRequired, isTable, listSetParams, resetCommandData, setParameter, stepModified, taskCommandExecuted, validate
 
Methods inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
cleanupUploadedFiles, createParameterMetadata, generateScript, getChoices, getCmdMgrType, getCommandData, getCommandMetadata, getCommandResult, getCommandSession, getConfigService, getLocale, getName, getOrigParameterValue, getParameter, getParameterMetadata, getResult, getTargetObject, getTargetObjectChoices, getUserData, initializeParameter, initializeParameter, isAsyncCommand, isDynamicStepCommand, isParamReadonly, isPrivateParameter, listAllParameterName, listParameterName, listSetParams, redo, resetCommandMetadata, save, sendNotification, setCmdHandler, setCmdMgrType, setCommandMetadata, setCommandResult, setCommandSession, setConfigSession, setListSetParamsTable, setLocale, setOrigParameterValue, setParameter, setTargetObject, setupListener
 
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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.websphere.management.cmdframework.AdminCommand
createParameterMetadata, generateScript, getChoices, getCommandMetadata, getCommandResult, getLocale, getName, getOrigParameterValue, getParameter, getTargetObject, getTargetObjectChoices, isAsyncCommand, isDynamicStepCommand, isPrivateParameter, listAllParameterName, listParameterName, listSetParams, save, setCmdHandler, setConfigSession, setLocale, setOrigParameterValue, setParameter, setTargetObject
 
Methods inherited from interface org.eclipse.emf.common.command.Command
canExecute, canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, redo, undo
 

Constructor Detail

RestServicesCreateClusterExt

public RestServicesCreateClusterExt(com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand parent,
                                    com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)
Default constructor inherited from parent class

Parameters:
parent - passed parameter
metadata - passed parameter

RestServicesCreateClusterExt

public RestServicesCreateClusterExt(com.ibm.websphere.management.cmdframework.provider.AbstractTaskCommand parent,
                                    com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
                             throws com.ibm.websphere.management.cmdframework.CommandNotFoundException
Default constructor inherited from parent class

Parameters:
parent - passed parameter
commandData - passed parameter
Throws:
com.ibm.websphere.management.cmdframework.CommandNotFoundException - exception thrown by the method
Method Detail

executeStep

protected void executeStep()
The main logic comes here. If Rest configuration is done on the server it needs to be migrated to the cluster

Overrides:
executeStep in class com.ibm.websphere.management.cmdframework.provider.AbstractCommandStep