StreamsResetter.doDelete
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using kafka.tools.StreamsResetter.doDelete (Showing top 4 results out of 315)

origin: org.apache.kafka/kafka

private void maybeDeleteInternalTopics(final KafkaAdminClient adminClient, final boolean dryRun) {
  System.out.println("Deleting all internal/auto-created topics for application " + options.valueOf(applicationIdOption));
  List<String> topicsToDelete = new ArrayList<>();
  for (final String listing : allTopics) {
    if (isInternalTopic(listing)) {
      if (!dryRun) {
        topicsToDelete.add(listing);
      } else {
        System.out.println("Topic: " + listing);
      }
    }
  }
  if (!dryRun) {
    doDelete(topicsToDelete, adminClient);
  }
  System.out.println("Done.");
}
origin: org.apache.kafka/kafka_2.12

private void maybeDeleteInternalTopics(final KafkaAdminClient adminClient, final boolean dryRun) {
  System.out.println("Deleting all internal/auto-created topics for application " + options.valueOf(applicationIdOption));
  List<String> topicsToDelete = new ArrayList<>();
  for (final String listing : allTopics) {
    if (isInternalTopic(listing)) {
      if (!dryRun) {
        topicsToDelete.add(listing);
      } else {
        System.out.println("Topic: " + listing);
      }
    }
  }
  if (!dryRun) {
    doDelete(topicsToDelete, adminClient);
  }
  System.out.println("Done.");
}
origin: org.apache.kafka/kafka_2.11

private void maybeDeleteInternalTopics(final KafkaAdminClient adminClient, final boolean dryRun) {
  System.out.println("Deleting all internal/auto-created topics for application " + options.valueOf(applicationIdOption));
  List<String> topicsToDelete = new ArrayList<>();
  for (final String listing : allTopics) {
    if (isInternalTopic(listing)) {
      if (!dryRun) {
        topicsToDelete.add(listing);
      } else {
        System.out.println("Topic: " + listing);
      }
    }
  }
  if (!dryRun) {
    doDelete(topicsToDelete, adminClient);
  }
  System.out.println("Done.");
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.kafka_2.11

private void maybeDeleteInternalTopics(final KafkaAdminClient adminClient, final boolean dryRun) {
  System.out.println("Deleting all internal/auto-created topics for application " + options.valueOf(applicationIdOption));
  List<String> topicsToDelete = new ArrayList<>();
  for (final String listing : allTopics) {
    if (isInternalTopic(listing)) {
      if (!dryRun) {
        topicsToDelete.add(listing);
      } else {
        System.out.println("Topic: " + listing);
      }
    }
  }
  if (!dryRun) {
    doDelete(topicsToDelete, adminClient);
  }
  System.out.println("Done.");
}
kafka.toolsStreamsResetterdoDelete

Popular methods of StreamsResetter

  • <init>
  • run
  • isInputTopic
  • isIntermediateTopic
  • isInternalTopic
  • parseArguments
  • checkOffsetRange
  • getDateTime
  • getTopicPartitionOffsetFromResetPlan
  • maybeDeleteInternalTopics
  • maybeReset
  • maybeResetInputAndSeekToEndIntermediateTopicOffsets
  • maybeReset,
  • maybeResetInputAndSeekToEndIntermediateTopicOffsets,
  • maybeSeekToEnd,
  • parseResetPlan,
  • printHelp,
  • resetByDuration,
  • resetOffsetsFromResetPlan,
  • resetOffsetsTo,
  • resetToDatetime

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Reference (javax.naming)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)