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

How to use
shutdown
method
in
kafka.zk.EmbeddedZookeeper

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

origin: apache/incubator-gobblin

void shutdown() {
 if (_numStarted.decrementAndGet() == 0) {
  log.info("Shutting down Kafka server suite");
  _kafkaServer.shutdown();
  _zkClient.close();
  _zkServer.shutdown();
 }
 else {
  log.info("Kafka server suite still in use ... not shutting down yet");
 }
}
origin: apache/incubator-gobblin

void shutdown() {
 if (_numStarted.decrementAndGet() == 0) {
  log.info("Shutting down Kafka server suite");
  _kafkaServer.shutdown();
  _zkClient.close();
  _zkServer.shutdown();
 }
 else {
  log.info("Kafka server suite still in use ... not shutting down yet");
 }
}
origin: apache/hive

/**
 * Override to tear down your specific external resource.
 */
@Override protected void after() {
 super.after();
 try {
  FileUtils.deleteDirectory(new File(tmpLogDir.toString()));
 } catch (IOException e) {
  LOG.error("Error cleaning " + tmpLogDir.toString(), e);
 }
 if (kafkaServer != null) {
  kafkaServer.shutdown();
  kafkaServer.awaitShutdown();
 }
 zkServer.shutdown();
}
origin: apache/incubator-gobblin

public static void closeServer() {
 if (serverStarted && !serverClosed) {
  serverClosed = true;
  kafkaServer.shutdown();
  zkClient.close();
  zkServer.shutdown();
 }
}
origin: apache/phoenix

@After
public void cleanUp() throws Exception {
  kafkaServer.shutdown();
  zkClient.close();
  zkServer.shutdown();
  conn.close();
}
origin: spring-projects/spring-kafka

this.zookeeper.shutdown();
origin: apache/incubator-rya

/**
 * Shutdown the Embedded Kafka and Zookeeper.
 * @throws Exception
 */
protected void shutdown() throws Exception {
  try {
    if(kafkaServer != null) {
      kafkaServer.shutdown();
    }
  } finally {
    if(zkServer != null) {
      zkServer.shutdown();
    }
  }
}
origin: org.apache.rya/rya.test.kafka

/**
 * Shutdown the Embedded Kafka and Zookeeper.
 * @throws Exception
 */
protected void shutdown() throws Exception {
  try {
    if(kafkaServer != null) {
      kafkaServer.shutdown();
    }
  } finally {
    if(zkServer != null) {
      zkServer.shutdown();
    }
  }
}
origin: hazelcast/hazelcast-jet-code-samples

private void shutdownKafkaCluster() {
  kafkaServer.shutdown();
  zkUtils.close();
  zkServer.shutdown();
}
origin: hazelcast/hazelcast-jet-code-samples

private void shutdownKafkaCluster() {
  kafkaServer.shutdown();
  zkUtils.close();
  zkServer.shutdown();
}
origin: org.apache.rya/rya.pcj.fluo.test.base

/**
 * Close all the Kafka mini server and mini-zookeeper
 */
@After
public void teardownKafka() {
  if(kafkaServer != null) {kafkaServer.shutdown();}
  if(zkClient != null) {zkClient.close();}
  if(zkServer != null) {zkServer.shutdown();}
}
origin: apache/incubator-rya

/**
 * Close all the Kafka mini server and mini-zookeeper
 */
@After
public void teardownKafka() {
  if(kafkaServer != null) {kafkaServer.shutdown();}
  if(zkClient != null) {zkClient.close();}
  if(zkServer != null) {zkServer.shutdown();}
}
origin: reactor/reactor-kafka

@Override
public void after() {
  for (EmbeddedKafkaBroker broker : brokers) {
    broker.shutdown();
  }
  brokers.clear();
  if (this.zkClient != null) {
    this.zkClient.close();
    this.zkClient = null;
  }
  if (zookeeper != null) {
    zookeeper.shutdown();
    zookeeper = null;
  }
}
origin: org.springframework.kafka/spring-kafka-test

this.zookeeper.shutdown();
origin: apache/apex-malhar

public void stop() throws IOException
{
 kafkaServer.shutdown();
 zkClient.close();
 zkServer.shutdown();
 cleanupDir();
}
kafka.zkEmbeddedZookeepershutdown

Popular methods of EmbeddedZookeeper

  • <init>
  • port
  • connectString

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Top 12 Jupyter Notebook extensions
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