Open Kilda Java Documentation
AvailabilityCtrl.java
Go to the documentation of this file.
1 package org.openkilda.atdd.floodlight;
2 
5 
6 import cucumber.api.PendingException;
7 import cucumber.api.java.en.When;
8 
9 import java.io.IOException;
10 
11 public class AvailabilityCtrl {
12  KafkaBreaker kafkaBreaker;
13 
14  public AvailabilityCtrl() throws IOException {
15  KafkaUtils kafkaUtils = new KafkaUtils();
16  kafkaBreaker = new KafkaBreaker(kafkaUtils.getConnectDefaults());
17  }
18 
19  @When("^link between controller and kafka are lost$")
20  public void link_between_controller_and_kafka_are_lost() throws Throwable {
23  }
24 
25  @When("^link between controller and kafka restored$")
26  public void link_between_controller_and_kafka_restored() throws Throwable {
29  }
30 
31  @When("^link between all switches and controller are lost$")
32  public void link_between_all_switches_and_controller_are_lost() throws Throwable {
33  // Write code here that turns the phrase above into concrete actions
34  throw new PendingException();
35  }
36 
37  @When("^link between all switches and controller restored$")
38  public void link_between_all_switches_and_controller_restored() throws Throwable {
39  // Write code here that turns the phrase above into concrete actions
40  throw new PendingException();
41  }
42 }
Properties getConnectDefaults()
void shutoff(KafkaBreakTarget target)
void restore(KafkaBreakTarget target)