congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EmbeddedZookeeper.connectString
Code IndexAdd Tabnine to your IDE (free)

How to use
connectString
method
in
kafka.zk.EmbeddedZookeeper

Best Java code snippets using kafka.zk.EmbeddedZookeeper.connectString (Showing top 2 results out of 315)

origin: apache/incubator-gobblin

public static void startServer() throws RuntimeException {
 if (serverStarted && serverClosed) {
  throw new RuntimeException("Kafka test server has already been closed. Cannot generate Kafka server twice.");
 }
 if (!serverStarted) {
  serverStarted = true;
  zkConnect = TestZKUtils.zookeeperConnect();
  zkServer = new EmbeddedZookeeper(zkConnect);
  zkClient = new ZkClient(zkServer.connectString(), 30000, 30000, ZKStringSerializer$.MODULE$);
  kafkaPort = TestUtils.choosePort();
  Properties props = TestUtils.createBrokerConfig(brokerId, kafkaPort, true);
  KafkaConfig config = new KafkaConfig(props);
  Time mock = new MockTime();
  kafkaServer = TestUtils.createServer(config, mock);
 }
}
origin: apache/incubator-htrace

ZkClient zkClient = new ZkClient(zkServer.connectString(), 30000, 30000, ZKStringSerializer$.MODULE$);
Properties props = TestUtils.createBrokerConfig(0, TestUtils.choosePort(), false);
KafkaConfig config = new KafkaConfig(props);
kafka.zkEmbeddedZookeeperconnectString

Popular methods of EmbeddedZookeeper

  • <init>
  • shutdown
  • port

Popular in Java

  • Making http post requests using okhttp
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now