class SSMStepDefinitions implements EC2StepFunctions {

    @When("^SSM terminate process  \"([^\"]*)\" on (\\d+) instance$")
    public SSMStepDefinitions terminateCommandOnHealthyInstances(String processName, int numHosts) {
        List<EC2InstanceTO> instanceList = getInstancesForExecution(numHosts);

        executionStateCache.addProcessName(processName);
        String commandId = ssmRaider.executeShellCommand(Ec2Utils.generateInstanceIdList(instanceList), Command.KILLPROCESS, processName);

        executionStateCache.setCommandId(commandId);
        executionStateCache.setSsmCommandInvocationInstances(instanceList);
        executionStateCache.setHealProcess(true);

        return this;
    }

    public  SSMStepDefinitions();

}