Tabnine Logo
org.apache.kafka.clients.admin
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.kafka.clients.admin

Best Java code snippets using org.apache.kafka.clients.admin (Showing top 20 results out of 513)

origin: apache/kafka

/**
 * List the consumer group offsets available in the cluster with the default options.
 *
 * This is a convenience method for #{@link AdminClient#listConsumerGroupOffsets(String, ListConsumerGroupOffsetsOptions)} with default options.
 *
 * @return The ListGroupOffsetsResult.
 */
public ListConsumerGroupOffsetsResult listConsumerGroupOffsets(String groupId) {
  return listConsumerGroupOffsets(groupId, new ListConsumerGroupOffsetsOptions());
}
origin: apache/kafka

/**
 * This is a convenience method for #{@link AdminClient#createAcls(Collection, CreateAclsOptions)} with
 * default options. See the overload for more details.
 *
 * This operation is supported by brokers with version 0.11.0.0 or higher.
 *
 * @param acls              The ACLs to create
 * @return                  The CreateAclsResult.
 */
public CreateAclsResult createAcls(Collection<AclBinding> acls) {
  return createAcls(acls, new CreateAclsOptions());
}
origin: apache/kafka

/**
 * This is a convenience method for #{@link AdminClient#deleteAcls(Collection, DeleteAclsOptions)} with default options.
 * See the overload for more details.
 *
 * This operation is supported by brokers with version 0.11.0.0 or higher.
 *
 * @param filters           The filters to use.
 * @return                  The DeleteAclsResult.
 */
public DeleteAclsResult deleteAcls(Collection<AclBindingFilter> filters) {
  return deleteAcls(filters, new DeleteAclsOptions());
}
origin: apache/kafka

/**
 * List the topics available in the cluster with the default options.
 *
 * This is a convenience method for #{@link AdminClient#listTopics(ListTopicsOptions)} with default options.
 * See the overload for more details.
 *
 * @return                  The ListTopicsResult.
 */
public ListTopicsResult listTopics() {
  return listTopics(new ListTopicsOptions());
}
origin: apache/kafka

/**
 * Describe some topics in the cluster, with the default options.
 *
 * This is a convenience method for #{@link AdminClient#describeTopics(Collection, DescribeTopicsOptions)} with
 * default options. See the overload for more details.
 *
 * @param topicNames        The names of the topics to describe.
 *
 * @return                  The DescribeTopicsResult.
 */
public DescribeTopicsResult describeTopics(Collection<String> topicNames) {
  return describeTopics(topicNames, new DescribeTopicsOptions());
}
origin: apache/kafka

/**
 * Get information about the nodes in the cluster, using the default options.
 *
 * This is a convenience method for #{@link AdminClient#describeCluster(DescribeClusterOptions)} with default options.
 * See the overload for more details.
 *
 * @return                  The DescribeClusterResult.
 */
public DescribeClusterResult describeCluster() {
  return describeCluster(new DescribeClusterOptions());
}
origin: apache/kafka

/**
 * This is a convenience method for #{@link AdminClient#deleteTopics(Collection, DeleteTopicsOptions)}
 * with default options. See the overload for more details.
 *
 * This operation is supported by brokers with version 0.10.1.0 or higher.
 *
 * @param topics            The topic names to delete.
 * @return                  The DeleteTopicsResult.
 */
public DeleteTopicsResult deleteTopics(Collection<String> topics) {
  return deleteTopics(topics, new DeleteTopicsOptions());
}
origin: apache/kafka

/**
 * Describe some group IDs in the cluster, with the default options.
 * <p>
 * This is a convenience method for
 * #{@link AdminClient#describeConsumerGroups(Collection, DescribeConsumerGroupsOptions)} with
 * default options. See the overload for more details.
 *
 * @param groupIds The IDs of the groups to describe.
 * @return The DescribeConsumerGroupResult.
 */
public DescribeConsumerGroupsResult describeConsumerGroups(Collection<String> groupIds) {
  return describeConsumerGroups(groupIds, new DescribeConsumerGroupsOptions());
}
origin: apache/kafka

/**
 * List the consumer groups available in the cluster with the default options.
 *
 * This is a convenience method for #{@link AdminClient#listConsumerGroups(ListConsumerGroupsOptions)} with default options.
 * See the overload for more details.
 *
 * @return The ListGroupsResult.
 */
public ListConsumerGroupsResult listConsumerGroups() {
  return listConsumerGroups(new ListConsumerGroupsOptions());
}
origin: apache/kafka

/**
 * Get the configuration for the specified resources with the default options.
 *
 * This is a convenience method for #{@link AdminClient#describeConfigs(Collection, DescribeConfigsOptions)} with default options.
 * See the overload for more details.
 *
 * This operation is supported by brokers with version 0.11.0.0 or higher.
 *
 * @param resources         The resources (topic and broker resource types are currently supported)
 * @return                  The DescribeConfigsResult
 */
public DescribeConfigsResult describeConfigs(Collection<ConfigResource> resources) {
  return describeConfigs(resources, new DescribeConfigsOptions());
}
origin: apache/kafka

/**
 * Delete consumer groups from the cluster with the default options.
 *
 * @return The DeleteConsumerGroupResult.
 */
public DeleteConsumerGroupsResult deleteConsumerGroups(Collection<String> groupIds) {
  return deleteConsumerGroups(groupIds, new DeleteConsumerGroupsOptions());
}
origin: apache/kafka

/**
 * Create a new AdminClient with the given configuration.
 *
 * @param props The configuration.
 * @return The new KafkaAdminClient.
 */
public static AdminClient create(Properties props) {
  return KafkaAdminClient.createInternal(new AdminClientConfig(props, true), null);
}
origin: apache/kafka

  boolean callHasExpired(KafkaAdminClient.Call call) {
    if ((!call.isInternal()) && shouldInjectFailure()) {
      log.debug("Injecting timeout for {}.", call);
      return true;
    } else {
      boolean ret = super.callHasExpired(call);
      log.debug("callHasExpired({}) = {}", call, ret);
      return ret;
    }
  }
}
origin: apache/kafka

/**
 * This is a convenience method for #{@link AdminClient#describeAcls(AclBindingFilter, DescribeAclsOptions)} with
 * default options. See the overload for more details.
 *
 * This operation is supported by brokers with version 0.11.0.0 or higher.
 *
 * @param filter            The filter to use.
 * @return                  The DeleteAclsResult.
 */
public DescribeAclsResult describeAcls(AclBindingFilter filter) {
  return describeAcls(filter, new DescribeAclsOptions());
}
origin: apache/kafka

private static AdminClientConfig newConfMap(String... vals) {
  return new AdminClientConfig(newStrMap(vals));
}
origin: apache/kafka

/**
 * <p>Create a Delegation Token.</p>
 *
 * <p>This is a convenience method for {@link #createDelegationToken(CreateDelegationTokenOptions)} with default options.
 * See the overload for more details.</p>
 *
 * @return                      The CreateDelegationTokenResult.
 */
public CreateDelegationTokenResult createDelegationToken() {
  return createDelegationToken(new CreateDelegationTokenOptions());
}
origin: apache/kafka

/**
 *<p>Describe the Delegation Tokens.</p>
 *
 * <p>This is a convenience method for {@link #describeDelegationToken(DescribeDelegationTokenOptions)} with default options.
 * This will return all the user owned tokens and tokens where user have Describe permission. See the overload for more details.</p>
 *
 * @return                      The DescribeDelegationTokenResult.
 */
public DescribeDelegationTokenResult describeDelegationToken() {
  return describeDelegationToken(new DescribeDelegationTokenOptions());
}
origin: apache/kafka

/**
 * <p>Expire a Delegation Token.</p>
 *
 * <p>This is a convenience method for {@link #expireDelegationToken(byte[], ExpireDelegationTokenOptions)} with default options.
 * This will expire the token immediately. See the overload for more details.</p>
 *
 * @param hmac                  HMAC of the Delegation token
 * @return                      The ExpireDelegationTokenResult.
 */
public ExpireDelegationTokenResult expireDelegationToken(byte[] hmac) {
  return expireDelegationToken(hmac, new ExpireDelegationTokenOptions());
}
origin: apache/kafka

/**
 * <p>Renew a Delegation Token.</p>
 *
 * <p>This is a convenience method for {@link #renewDelegationToken(byte[], RenewDelegationTokenOptions)} with default options.
 * See the overload for more details.</p>
 *
 *
 * @param hmac                  HMAC of the Delegation token
 * @return                      The RenewDelegationTokenResult.
 */
public RenewDelegationTokenResult renewDelegationToken(byte[] hmac) {
  return renewDelegationToken(hmac, new RenewDelegationTokenOptions());
}
origin: apache/kafka

/**
 * Create a new AdminClient with the given configuration.
 *
 * @param conf The configuration.
 * @return The new KafkaAdminClient.
 */
public static AdminClient create(Map<String, Object> conf) {
  return KafkaAdminClient.createInternal(new AdminClientConfig(conf, true), null);
}
org.apache.kafka.clients.admin

Most used classes

  • AdminClient
  • NewTopic
  • ListTopicsResult
  • CreateTopicsResult
  • DescribeTopicsResult
  • DescribeClusterResult,
  • DeleteTopicsResult,
  • KafkaAdminClient,
  • DescribeConsumerGroupsResult,
  • NewPartitions,
  • ConsumerGroupDescription,
  • Config,
  • ConfigEntry,
  • DescribeConfigsResult,
  • ListConsumerGroupOffsetsResult,
  • ListConsumerGroupsResult,
  • ListTopicsOptions,
  • AdminClientConfig,
  • CreatePartitionsResult
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