test_class.declarator: instanceFailureStepDefinitions
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private InstanceFailureStepDefinitions instanceFailureStepDefinitions;
test_class.type: InstanceFailureStepDefinitions
test_class.var_name: instanceFailureStepDefinitions
test_class.declarator: ec2Raider
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private EC2RaiderImpl ec2Raider;
test_class.type: EC2RaiderImpl
test_class.var_name: ec2Raider
test_class.declarator: executionStateCache
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private ExecutionStateCache executionStateCache;
test_class.type: ExecutionStateCache
test_class.var_name: executionStateCache
test_class.file: cloudraider-core/src/test/java/com/intuit/cloudraider/cucumber/steps/InstanceFailureStepDefinitionsTest.java
test_class.identifier: InstanceFailureStepDefinitionsTest
test_case.body: @Test
      public void testBlockPort() throws Exception
      {
          PowerMockito.when(ec2Raider.getInstancesByName("test")).thenReturn(createInstances());
          instanceFailureStepDefinitions.givenEC2InstanceName("test");
          Assert.assertEquals(executionStateCache.getEc2Tag(), "test");
          Assert.assertTrue(executionStateCache.getInstances().size()>0);
  
  
          PowerMockito.when(ec2Raider.getEC2InstanceById("i-1234")).thenReturn(createInstances().get(0));
          PowerMockito.when(ec2Raider.getEC2InstanceById("i-4567")).thenReturn(createInstances().get(1));
          instanceFailureStepDefinitions.blockPort(8080,1);
          Assert.assertEquals(executionStateCache.getUnhealthyInstances().size(), 1);
          Assert.assertTrue(executionStateCache.getPortNums().contains(8080));
      }
test_case.class_method_signature: InstanceFailureStepDefinitionsTest.testBlockPort()
test_case.full_signature: @Test public void testBlockPort()
test_case.identifier: testBlockPort
test_case.invocations: thenReturn when getInstancesByName createInstances givenEC2InstanceName assertEquals getEc2Tag assertTrue size getInstances thenReturn when getEC2InstanceById get createInstances thenReturn when getEC2InstanceById get createInstances blockPort assertEquals size getUnhealthyInstances assertTrue contains getPortNums
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBlockPort()
focal_class.declarator: scriptExecutor
focal_class.modifier: @Autowired
      @Qualifier("scriptExecutor")
      private
focal_class.original_string: @Autowired
      @Qualifier("scriptExecutor")
      private ScriptExecutor scriptExecutor;
focal_class.type: ScriptExecutor
focal_class.var_name: scriptExecutor
focal_class.declarator: ec2Raider
focal_class.modifier: @Autowired
      @Qualifier("ec2raiderBean")
      private
focal_class.original_string: @Autowired
      @Qualifier("ec2raiderBean")
      private EC2Raider ec2Raider;
focal_class.type: EC2Raider
focal_class.var_name: ec2Raider
focal_class.declarator: logger = LoggerFactory.getLogger(this.getClass())
focal_class.original_string: Logger logger = LoggerFactory.getLogger(this.getClass());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: MULTIPLE_DELIMITER = ","
focal_class.modifier: private static final
focal_class.original_string: private static final String MULTIPLE_DELIMITER = ",";
focal_class.type: String
focal_class.var_name: MULTIPLE_DELIMITER
focal_class.declarator: executionStateCache
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ExecutionStateCache executionStateCache;
focal_class.type: ExecutionStateCache
focal_class.var_name: executionStateCache
focal_class.file: cloudraider-core/src/main/java/com/intuit/cloudraider/cucumber/steps/InstanceFailureStepDefinitions.java
focal_class.identifier: InstanceFailureStepDefinitions
focal_class.interfaces: implements EC2StepFunctions
focal_class.class_method_signature: InstanceFailureStepDefinitions.getExecutionStateCache()
focal_class.full_signature: public ExecutionStateCache getExecutionStateCache()
focal_class.identifier: getExecutionStateCache
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ExecutionStateCache
focal_class.signature: ExecutionStateCache getExecutionStateCache()
focal_class.class_method_signature: InstanceFailureStepDefinitions.setExecutionStateCache(ExecutionStateCache executionStateCache)
focal_class.full_signature: public void setExecutionStateCache(ExecutionStateCache executionStateCache)
focal_class.identifier: setExecutionStateCache
focal_class.modifiers: public
focal_class.parameters: (ExecutionStateCache executionStateCache)
focal_class.return: void
focal_class.signature: void setExecutionStateCache(ExecutionStateCache executionStateCache)
focal_class.class_method_signature: InstanceFailureStepDefinitions.InstanceFailureStepDefinitions()
focal_class.full_signature: public  InstanceFailureStepDefinitions()
focal_class.identifier: InstanceFailureStepDefinitions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  InstanceFailureStepDefinitions()
focal_class.class_method_signature: InstanceFailureStepDefinitions.givenEC2InstanceName(String name)
focal_class.full_signature: @Given("^EC2 \"([^\"]*)\"$") public InstanceFailureStepDefinitions givenEC2InstanceName(String name)
focal_class.identifier: givenEC2InstanceName
focal_class.modifiers: @Given("^EC2 \"([^\"]*)\"$") public
focal_class.parameters: (String name)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions givenEC2InstanceName(String name)
focal_class.class_method_signature: InstanceFailureStepDefinitions.givenEC2InstanceTags(String tag)
focal_class.full_signature: @Given("^EC2 with a tag \"([^\"]*)\"$") public InstanceFailureStepDefinitions givenEC2InstanceTags(String tag)
focal_class.identifier: givenEC2InstanceTags
focal_class.modifiers: @Given("^EC2 with a tag \"([^\"]*)\"$") public
focal_class.parameters: (String tag)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions givenEC2InstanceTags(String tag)
focal_class.class_method_signature: InstanceFailureStepDefinitions.givenFilteredEC2(String filters)
focal_class.full_signature: @Given("^EC2 instances filtered by \"([^\"]*)\"$") public InstanceFailureStepDefinitions givenFilteredEC2(String filters)
focal_class.identifier: givenFilteredEC2
focal_class.modifiers: @Given("^EC2 instances filtered by \"([^\"]*)\"$") public
focal_class.parameters: (String filters)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions givenFilteredEC2(String filters)
focal_class.class_method_signature: InstanceFailureStepDefinitions.givenEC2InstanceTags(String... tags)
focal_class.full_signature: @Given("^EC2 with a tags \"([^\"]*)\"$") public InstanceFailureStepDefinitions givenEC2InstanceTags(String... tags)
focal_class.identifier: givenEC2InstanceTags
focal_class.modifiers: @Given("^EC2 with a tags \"([^\"]*)\"$") public
focal_class.parameters: (String... tags)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions givenEC2InstanceTags(String... tags)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateProcessGivenInstance(String processName, String instanceID, String instanceIP)
focal_class.full_signature: public void terminateProcessGivenInstance(String processName, String instanceID, String instanceIP)
focal_class.identifier: terminateProcessGivenInstance
focal_class.modifiers: public
focal_class.parameters: (String processName, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void terminateProcessGivenInstance(String processName, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateProcessOnAllHealthyInstances(String processName)
focal_class.full_signature: @When("^terminate process \"([^\"]*)\"$") public InstanceFailureStepDefinitions terminateProcessOnAllHealthyInstances(String processName)
focal_class.identifier: terminateProcessOnAllHealthyInstances
focal_class.modifiers: @When("^terminate process \"([^\"]*)\"$") public
focal_class.parameters: (String processName)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateProcessOnAllHealthyInstances(String processName)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateProcessGivenInstanceCucumber(String processName, String instanceID, String instanceIP)
focal_class.full_signature: @When("^terminate process \"([^\"]*)\" on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public InstanceFailureStepDefinitions terminateProcessGivenInstanceCucumber(String processName, String instanceID, String instanceIP)
focal_class.identifier: terminateProcessGivenInstanceCucumber
focal_class.modifiers: @When("^terminate process \"([^\"]*)\" on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public
focal_class.parameters: (String processName, String instanceID, String instanceIP)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateProcessGivenInstanceCucumber(String processName, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateProcessOnHealthyInstances(String processName, int numHosts)
focal_class.full_signature: @When("^terminate process \"([^\"]*)\" on (\\d+) instance$") public InstanceFailureStepDefinitions terminateProcessOnHealthyInstances(String processName, int numHosts)
focal_class.identifier: terminateProcessOnHealthyInstances
focal_class.modifiers: @When("^terminate process \"([^\"]*)\" on (\\d+) instance$") public
focal_class.parameters: (String processName, int numHosts)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateProcessOnHealthyInstances(String processName, int numHosts)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateProcessInAvailabilityZone(String processName, int numHosts, String zoneId)
focal_class.full_signature: @When("^terminate process \"([^\"]*)\" on (\\d+) instance in zone \"([^\"]*)\"$") public InstanceFailureStepDefinitions terminateProcessInAvailabilityZone(String processName, int numHosts, String zoneId)
focal_class.identifier: terminateProcessInAvailabilityZone
focal_class.modifiers: @When("^terminate process \"([^\"]*)\" on (\\d+) instance in zone \"([^\"]*)\"$") public
focal_class.parameters: (String processName, int numHosts, String zoneId)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateProcessInAvailabilityZone(String processName, int numHosts, String zoneId)
focal_class.class_method_signature: InstanceFailureStepDefinitions.spikeCPUGivenInstance(int cores, String instanceID, String instanceIP)
focal_class.full_signature: public void spikeCPUGivenInstance(int cores, String instanceID, String instanceIP)
focal_class.identifier: spikeCPUGivenInstance
focal_class.modifiers: public
focal_class.parameters: (int cores, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void spikeCPUGivenInstance(int cores, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.spikeCPUGivenInstanceCucumber(int cores, String instanceID, String instanceIP)
focal_class.full_signature: @When("^CPU spike for (\\d+) cores on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public InstanceFailureStepDefinitions spikeCPUGivenInstanceCucumber(int cores, String instanceID, String instanceIP)
focal_class.identifier: spikeCPUGivenInstanceCucumber
focal_class.modifiers: @When("^CPU spike for (\\d+) cores on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public
focal_class.parameters: (int cores, String instanceID, String instanceIP)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions spikeCPUGivenInstanceCucumber(int cores, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.spikeCPUHelper(int cores, String instanceID, String instanceIP)
focal_class.full_signature: private void spikeCPUHelper(int cores, String instanceID, String instanceIP)
focal_class.identifier: spikeCPUHelper
focal_class.modifiers: private
focal_class.parameters: (int cores, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void spikeCPUHelper(int cores, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.spikeCPUOnHealthyInstances(int numHosts, int cores)
focal_class.full_signature: @When("^CPU spike on (\\d+) instances for (\\d+) cores$") public InstanceFailureStepDefinitions spikeCPUOnHealthyInstances(int numHosts, int cores)
focal_class.identifier: spikeCPUOnHealthyInstances
focal_class.modifiers: @When("^CPU spike on (\\d+) instances for (\\d+) cores$") public
focal_class.parameters: (int numHosts, int cores)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions spikeCPUOnHealthyInstances(int numHosts, int cores)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateAllInstances()
focal_class.full_signature: @When("^terminate all instances$") public InstanceFailureStepDefinitions terminateAllInstances()
focal_class.identifier: terminateAllInstances
focal_class.modifiers: @When("^terminate all instances$") public
focal_class.parameters: ()
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateAllInstances()
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateGivenInstance(String instanceID, String instanceIP)
focal_class.full_signature: public void terminateGivenInstance(String instanceID, String instanceIP)
focal_class.identifier: terminateGivenInstance
focal_class.modifiers: public
focal_class.parameters: (String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void terminateGivenInstance(String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminationHelper(String instanceID, String instanceIP)
focal_class.full_signature: private void terminationHelper(String instanceID, String instanceIP)
focal_class.identifier: terminationHelper
focal_class.modifiers: private
focal_class.parameters: (String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void terminationHelper(String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateGivenInstanceCucumber(String instanceID, String instanceIP)
focal_class.full_signature: @When("^terminate instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public InstanceFailureStepDefinitions terminateGivenInstanceCucumber(String instanceID, String instanceIP)
focal_class.identifier: terminateGivenInstanceCucumber
focal_class.modifiers: @When("^terminate instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public
focal_class.parameters: (String instanceID, String instanceIP)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateGivenInstanceCucumber(String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateInstanceOnNumInstances(int numInstances)
focal_class.full_signature: @When("^terminate (\\d+) instance$") public InstanceFailureStepDefinitions terminateInstanceOnNumInstances(int numInstances)
focal_class.identifier: terminateInstanceOnNumInstances
focal_class.modifiers: @When("^terminate (\\d+) instance$") public
focal_class.parameters: (int numInstances)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateInstanceOnNumInstances(int numInstances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateInstanceOnNumInstancesWithTags(int numInstances, String compulsoryTagsString)
focal_class.full_signature: @When("^terminate (\\d+) instance with tags \"([^\"]*)\"$") public InstanceFailureStepDefinitions terminateInstanceOnNumInstancesWithTags(int numInstances, String compulsoryTagsString)
focal_class.identifier: terminateInstanceOnNumInstancesWithTags
focal_class.modifiers: @When("^terminate (\\d+) instance with tags \"([^\"]*)\"$") public
focal_class.parameters: (int numInstances, String compulsoryTagsString)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions terminateInstanceOnNumInstancesWithTags(int numInstances, String compulsoryTagsString)
focal_class.class_method_signature: InstanceFailureStepDefinitions.stopInstanceOnNumInstances(int numInstances )
focal_class.full_signature: @When("^stop (\\d+) instance$") public InstanceFailureStepDefinitions stopInstanceOnNumInstances(int numInstances )
focal_class.identifier: stopInstanceOnNumInstances
focal_class.modifiers: @When("^stop (\\d+) instance$") public
focal_class.parameters: (int numInstances )
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions stopInstanceOnNumInstances(int numInstances )
focal_class.class_method_signature: InstanceFailureStepDefinitions.startInstanceOnNumInstances(int numInstances )
focal_class.full_signature: @Then("^start (\\d+) instance$") public InstanceFailureStepDefinitions startInstanceOnNumInstances(int numInstances )
focal_class.identifier: startInstanceOnNumInstances
focal_class.modifiers: @Then("^start (\\d+) instance$") public
focal_class.parameters: (int numInstances )
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions startInstanceOnNumInstances(int numInstances )
focal_class.class_method_signature: InstanceFailureStepDefinitions.diskFullGivenInstance(String volumeType, int size, String instanceID, String instanceIP)
focal_class.full_signature: public void diskFullGivenInstance(String volumeType, int size, String instanceID, String instanceIP)
focal_class.identifier: diskFullGivenInstance
focal_class.modifiers: public
focal_class.parameters: (String volumeType, int size, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void diskFullGivenInstance(String volumeType, int size, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.diskFullGivenInstanceCucumber(String volumeType, int size, String instanceID, String instanceIP)
focal_class.full_signature: @When("^\"([^\"]*)\" disk full with (\\d+) GB on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public InstanceFailureStepDefinitions diskFullGivenInstanceCucumber(String volumeType, int size, String instanceID, String instanceIP)
focal_class.identifier: diskFullGivenInstanceCucumber
focal_class.modifiers: @When("^\"([^\"]*)\" disk full with (\\d+) GB on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public
focal_class.parameters: (String volumeType, int size, String instanceID, String instanceIP)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions diskFullGivenInstanceCucumber(String volumeType, int size, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.diskFullHelper(String volumeType, int size, String instanceID, String instanceIP)
focal_class.full_signature: private void diskFullHelper(String volumeType, int size, String instanceID, String instanceIP)
focal_class.identifier: diskFullHelper
focal_class.modifiers: private
focal_class.parameters: (String volumeType, int size, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void diskFullHelper(String volumeType, int size, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.diskFullOnInstance(String volumeType, int size, int instanceCount)
focal_class.full_signature: @When("^\"([^\"]*)\" disk full with (\\d+) GB on (\\d+) instance$") public InstanceFailureStepDefinitions diskFullOnInstance(String volumeType, int size, int instanceCount)
focal_class.identifier: diskFullOnInstance
focal_class.modifiers: @When("^\"([^\"]*)\" disk full with (\\d+) GB on (\\d+) instance$") public
focal_class.parameters: (String volumeType, int size, int instanceCount)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions diskFullOnInstance(String volumeType, int size, int instanceCount)
focal_class.class_method_signature: InstanceFailureStepDefinitions.blockDomain(String domainName, int numInstances)
focal_class.full_signature: @When("^block domain \"([^\"]*)\" on (\\d+) instances$") public InstanceFailureStepDefinitions blockDomain(String domainName, int numInstances)
focal_class.identifier: blockDomain
focal_class.modifiers: @When("^block domain \"([^\"]*)\" on (\\d+) instances$") public
focal_class.parameters: (String domainName, int numInstances)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions blockDomain(String domainName, int numInstances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.blockPortGivenInstance(int portNum, String instanceID, String instanceIP)
focal_class.full_signature: public void blockPortGivenInstance(int portNum, String instanceID, String instanceIP)
focal_class.identifier: blockPortGivenInstance
focal_class.modifiers: public
focal_class.parameters: (int portNum, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void blockPortGivenInstance(int portNum, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.blockPortGivenInstanceCucumber(int portNum, String instanceID, String instanceIP)
focal_class.full_signature: @When("^block port (\\d+) on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public InstanceFailureStepDefinitions blockPortGivenInstanceCucumber(int portNum, String instanceID, String instanceIP)
focal_class.identifier: blockPortGivenInstanceCucumber
focal_class.modifiers: @When("^block port (\\d+) on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public
focal_class.parameters: (int portNum, String instanceID, String instanceIP)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions blockPortGivenInstanceCucumber(int portNum, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.blockPortHelper(int portNum, String instanceID, String instanceIP)
focal_class.full_signature: private void blockPortHelper(int portNum, String instanceID, String instanceIP)
focal_class.identifier: blockPortHelper
focal_class.modifiers: private
focal_class.parameters: (int portNum, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void blockPortHelper(int portNum, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.blockPort(int portNum, int numInstances)
focal_class.full_signature: @When("^block port (\\d+) on (\\d+) instances$") public InstanceFailureStepDefinitions blockPort(int portNum, int numInstances)
focal_class.identifier: blockPort
focal_class.modifiers: @When("^block port (\\d+) on (\\d+) instances$") public
focal_class.parameters: (int portNum, int numInstances)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions blockPort(int portNum, int numInstances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.blockDynamoDb(int numInstances)
focal_class.full_signature: @When("^block DynamoDB on (\\d+) instances$") public InstanceFailureStepDefinitions blockDynamoDb(int numInstances)
focal_class.identifier: blockDynamoDb
focal_class.modifiers: @When("^block DynamoDB on (\\d+) instances$") public
focal_class.parameters: (int numInstances)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions blockDynamoDb(int numInstances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.blockS3(int numInstances)
focal_class.full_signature: @When("^block S3 on (\\d+) instances$") public InstanceFailureStepDefinitions blockS3(int numInstances)
focal_class.identifier: blockS3
focal_class.modifiers: @When("^block S3 on (\\d+) instances$") public
focal_class.parameters: (int numInstances)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions blockS3(int numInstances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.stopProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.full_signature: @When("^stop (service|process) \"([^\"]*)\" on (\\d+) instance$") public InstanceFailureStepDefinitions stopProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.identifier: stopProcessOnHealthyInstances
focal_class.modifiers: @When("^stop (service|process) \"([^\"]*)\" on (\\d+) instance$") public
focal_class.parameters: (String serviceOrProcessType, String processName, int numHosts)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions stopProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.class_method_signature: InstanceFailureStepDefinitions.startProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.full_signature: @When("^start (service|process) \"([^\"]*)\" on (\\d+) instance$") public InstanceFailureStepDefinitions startProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.identifier: startProcessOnHealthyInstances
focal_class.modifiers: @When("^start (service|process) \"([^\"]*)\" on (\\d+) instance$") public
focal_class.parameters: (String serviceOrProcessType, String processName, int numHosts)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions startProcessOnHealthyInstances(String serviceOrProcessType, String processName, int numHosts)
focal_class.class_method_signature: InstanceFailureStepDefinitions.injectNetworkLatencyGivenInstance(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.full_signature: public void injectNetworkLatencyGivenInstance(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.identifier: injectNetworkLatencyGivenInstance
focal_class.modifiers: public
focal_class.parameters: (int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void injectNetworkLatencyGivenInstance(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.injectNetworkLatencyGivenInstanceCucumber(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.full_signature: @When("^inject network latency (\\d+) ms to (\\d+) ms on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public InstanceFailureStepDefinitions injectNetworkLatencyGivenInstanceCucumber(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.identifier: injectNetworkLatencyGivenInstanceCucumber
focal_class.modifiers: @When("^inject network latency (\\d+) ms to (\\d+) ms on instance with id \"([^\"]*)\" and ip \"([^\"]*)\"$") public
focal_class.parameters: (int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions injectNetworkLatencyGivenInstanceCucumber(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.injectNetworkLatencyHelper(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.full_signature: private void injectNetworkLatencyHelper(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.identifier: injectNetworkLatencyHelper
focal_class.modifiers: private
focal_class.parameters: (int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.return: void
focal_class.signature: void injectNetworkLatencyHelper(int lowerBound, int upperBound, String instanceID, String instanceIP)
focal_class.class_method_signature: InstanceFailureStepDefinitions.injectNetworkLatency(int lowerBound, int upperBound, int numInstances)
focal_class.full_signature: @When("^inject network latency (\\d+) ms to (\\d+) ms on (\\d+) instances$") public InstanceFailureStepDefinitions injectNetworkLatency(int lowerBound, int upperBound, int numInstances)
focal_class.identifier: injectNetworkLatency
focal_class.modifiers: @When("^inject network latency (\\d+) ms to (\\d+) ms on (\\d+) instances$") public
focal_class.parameters: (int lowerBound, int upperBound, int numInstances)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions injectNetworkLatency(int lowerBound, int upperBound, int numInstances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.injectNetworkLatency(String domainName, int lowerBound, int upperBound, int numInstances)
focal_class.full_signature: @When("^inject domain network latency \"([^\"]*)\" for (\\d+) ms to (\\d+) ms on (\\d+) instances$") public InstanceFailureStepDefinitions injectNetworkLatency(String domainName, int lowerBound, int upperBound, int numInstances)
focal_class.identifier: injectNetworkLatency
focal_class.modifiers: @When("^inject domain network latency \"([^\"]*)\" for (\\d+) ms to (\\d+) ms on (\\d+) instances$") public
focal_class.parameters: (String domainName, int lowerBound, int upperBound, int numInstances)
focal_class.return: InstanceFailureStepDefinitions
focal_class.signature: InstanceFailureStepDefinitions injectNetworkLatency(String domainName, int lowerBound, int upperBound, int numInstances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.terminateProcess(String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.full_signature: private void terminateProcess(String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.identifier: terminateProcess
focal_class.modifiers: private
focal_class.parameters: (String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.return: void
focal_class.signature: void terminateProcess(String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.stopProcess(String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.full_signature: private void stopProcess(String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.identifier: stopProcess
focal_class.modifiers: private
focal_class.parameters: (String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.return: void
focal_class.signature: void stopProcess(String processName, int numHosts, List<EC2InstanceTO> instances)
focal_class.class_method_signature: InstanceFailureStepDefinitions.findInstancesByName(String name)
focal_class.full_signature: public List<EC2InstanceTO> findInstancesByName(String name)
focal_class.identifier: findInstancesByName
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: List<EC2InstanceTO>
focal_class.signature: List<EC2InstanceTO> findInstancesByName(String name)
focal_class.class_method_signature: InstanceFailureStepDefinitions.findAllInstancesByTag(String tagString)
focal_class.full_signature: public List<EC2InstanceTO> findAllInstancesByTag(String tagString)
focal_class.identifier: findAllInstancesByTag
focal_class.modifiers: public
focal_class.parameters: (String tagString)
focal_class.return: List<EC2InstanceTO>
focal_class.signature: List<EC2InstanceTO> findAllInstancesByTag(String tagString)
focal_class.class_method_signature: InstanceFailureStepDefinitions.getInstanceFromID(String id)
focal_class.full_signature: public EC2InstanceTO getInstanceFromID(String id)
focal_class.identifier: getInstanceFromID
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: EC2InstanceTO
focal_class.signature: EC2InstanceTO getInstanceFromID(String id)
focal_method.body: @When("^block port (\\d+) on (\\d+) instances$")
      public InstanceFailureStepDefinitions blockPort(int portNum, int numInstances) {
          List<EC2InstanceTO> instances = executionStateCache.getInstances();
          if (instances == null || instances.isEmpty()) {
              throw new RuntimeException("No Instances are available");
          }
  
          if (numInstances > instances.size()) {
              numInstances = instances.size();
          }
  
          IntStream.range(0, numInstances)
                  .parallel()
                  .forEach(
                          i ->
                          {
                              blockPortHelper(portNum, instances.get(i).getInstanceId(), instances.get(i).getPrivateIpAddress());
                              executionStateCache.setBlockPort(true);
                              executionStateCache.addPortNum(portNum);
                              executionStateCache.addUnHealthyInstance(instances.get(i));
                          });
  
          return this;
      }
focal_method.class_method_signature: InstanceFailureStepDefinitions.blockPort(int portNum, int numInstances)
focal_method.full_signature: @When("^block port (\\d+) on (\\d+) instances$") public InstanceFailureStepDefinitions blockPort(int portNum, int numInstances)
focal_method.identifier: blockPort
focal_method.invocations: getInstances isEmpty size size forEach parallel range blockPortHelper getInstanceId get getPrivateIpAddress get setBlockPort addPortNum addUnHealthyInstance get
focal_method.modifiers: @When("^block port (\\d+) on (\\d+) instances$") public
focal_method.parameters: (int portNum, int numInstances)
focal_method.return: InstanceFailureStepDefinitions
focal_method.signature: InstanceFailureStepDefinitions blockPort(int portNum, int numInstances)