Class PulsarAdminImpl

java.lang.Object
org.apache.pulsar.client.admin.internal.PulsarAdminImpl
All Implemented Interfaces:
Closeable, AutoCloseable, PulsarAdmin

public class PulsarAdminImpl extends Object implements PulsarAdmin
Pulsar client admin API client.
  • Field Details

    • DEFAULT_REQUEST_TIMEOUT_SECONDS

      public static final int DEFAULT_REQUEST_TIMEOUT_SECONDS
      See Also:
    • root

      protected final javax.ws.rs.client.WebTarget root
    • auth

      protected final org.apache.pulsar.client.api.Authentication auth
  • Constructor Details

    • PulsarAdminImpl

      public PulsarAdminImpl(String serviceUrl, ClientConfigurationData clientConfigData, ClassLoader clientBuilderClassLoader) throws org.apache.pulsar.client.api.PulsarClientException
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
    • PulsarAdminImpl

      @Deprecated public PulsarAdminImpl(URL serviceUrl, org.apache.pulsar.client.api.Authentication auth) throws org.apache.pulsar.client.api.PulsarClientException
      Deprecated.
      Since 2.0. Use PulsarAdmin.builder() to construct a new PulsarAdmin instance.
      Construct a new Pulsar Admin client object.

      This client object can be used to perform many subsquent API calls

      Parameters:
      serviceUrl - the Pulsar service URL (eg. 'http://my-broker.example.com:8080')
      auth - the Authentication object to be used to talk with Pulsar
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
    • PulsarAdminImpl

      @Deprecated public PulsarAdminImpl(URL serviceUrl, String authPluginClassName, String authParamsString) throws org.apache.pulsar.client.api.PulsarClientException
      Deprecated.
      Since 2.0. Use PulsarAdmin.builder() to construct a new PulsarAdmin instance.
      Construct a new Pulsar Admin client object.

      This client object can be used to perform many subsquent API calls

      Parameters:
      serviceUrl - the Pulsar URL (eg. 'http://my-broker.example.com:8080')
      authPluginClassName - name of the Authentication-Plugin you want to use
      authParamsString - string which represents parameters for the Authentication-Plugin, e.g., "key1:val1,key2:val2"
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
    • PulsarAdminImpl

      @Deprecated public PulsarAdminImpl(URL serviceUrl, String authPluginClassName, Map<String,String> authParams) throws org.apache.pulsar.client.api.PulsarClientException
      Deprecated.
      Since 2.0. Use PulsarAdmin.builder() to construct a new PulsarAdmin instance.
      Construct a new Pulsar Admin client object.

      This client object can be used to perform many subsquent API calls

      Parameters:
      serviceUrl - the Pulsar URL (eg. 'http://my-broker.example.com:8080')
      authPluginClassName - name of the Authentication-Plugin you want to use
      authParams - map which represents parameters for the Authentication-Plugin
      Throws:
      org.apache.pulsar.client.api.PulsarClientException
  • Method Details