use of org.apache.kafka.trogdor.basic.BasicPlatform in project kafka by apache.
the class AgentTest method createBasicPlatform.
private static BasicPlatform createBasicPlatform(Scheduler scheduler) {
TreeMap<String, Node> nodes = new TreeMap<>();
HashMap<String, String> config = new HashMap<>();
config.put(Platform.Config.TROGDOR_AGENT_PORT, Integer.toString(Agent.DEFAULT_PORT));
nodes.put("node01", new BasicNode("node01", "localhost", config, Collections.emptySet()));
BasicTopology topology = new BasicTopology(nodes);
return new BasicPlatform("node01", topology, scheduler, new BasicPlatform.ShellCommandRunner());
}
use of org.apache.kafka.trogdor.basic.BasicPlatform in project apache-kafka-on-k8s by banzaicloud.
the class AgentTest method createBasicPlatform.
private static BasicPlatform createBasicPlatform(Scheduler scheduler) {
TreeMap<String, Node> nodes = new TreeMap<>();
HashMap<String, String> config = new HashMap<>();
nodes.put("node01", new BasicNode("node01", "localhost", config, Collections.<String>emptySet()));
BasicTopology topology = new BasicTopology(nodes);
return new BasicPlatform("node01", topology, scheduler, new BasicPlatform.ShellCommandRunner());
}
Aggregations