Class PulsarAdminImpl
java.lang.Object
org.apache.pulsar.client.admin.internal.PulsarAdminImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,PulsarAdmin
Pulsar client admin API client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.pulsar.client.api.Authenticationstatic final intprotected final javax.ws.rs.client.WebTarget -
Constructor Summary
ConstructorsConstructorDescriptionPulsarAdminImpl(String serviceUrl, ClientConfigurationData clientConfigData, ClassLoader clientBuilderClassLoader) PulsarAdminImpl(URL serviceUrl, String authPluginClassName, String authParamsString) Deprecated.Since 2.0.Deprecated.Since 2.0.PulsarAdminImpl(URL serviceUrl, org.apache.pulsar.client.api.Authentication auth) Deprecated.Since 2.0. -
Method Summary
Modifier and TypeMethodDescriptionbookies()brokers()voidclose()Close the Pulsar admin client to release all the resources.clusters()lookups()Deprecated.Since 2.0.packages()Deprecated.since 2.0.schemas()sink()Deprecated.in favor ofsinkssinks()source()Deprecated.in favor ofsources()sources()tenants()topicPolicies(boolean isGlobal) topics()worker()
-
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. UsePulsarAdmin.builder()to construct a newPulsarAdmininstance.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. UsePulsarAdmin.builder()to construct a newPulsarAdmininstance.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 useauthParamsString- 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.PulsarClientExceptionDeprecated.Since 2.0. UsePulsarAdmin.builder()to construct a newPulsarAdmininstance.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 useauthParams- map which represents parameters for the Authentication-Plugin- Throws:
org.apache.pulsar.client.api.PulsarClientException
-
-
Method Details
-
clusters
- Specified by:
clustersin interfacePulsarAdmin- Returns:
- the clusters management object
-
brokers
- Specified by:
brokersin interfacePulsarAdmin- Returns:
- the brokers management object
-
tenants
- Specified by:
tenantsin interfacePulsarAdmin- Returns:
- the tenants management object
-
resourcegroups
- Specified by:
resourcegroupsin interfacePulsarAdmin- Returns:
- the resourcegroups management object
-
properties
Deprecated.since 2.0. Seetenants()- Specified by:
propertiesin interfacePulsarAdmin
-
namespaces
- Specified by:
namespacesin interfacePulsarAdmin- Returns:
- the namespaces management object
-
topics
- Specified by:
topicsin interfacePulsarAdmin
-
topicPolicies
- Specified by:
topicPoliciesin interfacePulsarAdmin
-
topicPolicies
- Specified by:
topicPoliciesin interfacePulsarAdmin
-
bookies
- Specified by:
bookiesin interfacePulsarAdmin- Returns:
- the bookies management object
-
nonPersistentTopics
Deprecated.Since 2.0. Seetopics()- Specified by:
nonPersistentTopicsin interfacePulsarAdmin- Returns:
- the persistentTopics management object
-
resourceQuotas
- Specified by:
resourceQuotasin interfacePulsarAdmin- Returns:
- the resource quota management object
-
lookups
- Specified by:
lookupsin interfacePulsarAdmin- Returns:
- does a looks up for the broker serving the topic
-
functions
- Specified by:
functionsin interfacePulsarAdmin- Returns:
- the functions management object
-
source
Deprecated.in favor ofsources()- Specified by:
sourcein interfacePulsarAdmin- Returns:
- the sources management object
-
sources
- Specified by:
sourcesin interfacePulsarAdmin
-
sink
Deprecated.in favor ofsinks- Specified by:
sinkin interfacePulsarAdmin- Returns:
- the sinks management object
-
sinks
- Specified by:
sinksin interfacePulsarAdmin- Returns:
- the sinks management object
-
worker
- Specified by:
workerin interfacePulsarAdmin- Returns:
- the Worker stats
-
brokerStats
- Specified by:
brokerStatsin interfacePulsarAdmin- Returns:
- the broker statics
-
proxyStats
- Specified by:
proxyStatsin interfacePulsarAdmin- Returns:
- the proxy statics
-
getServiceUrl
- Specified by:
getServiceUrlin interfacePulsarAdmin- Returns:
- the service HTTP URL that is being used
-
getClientConfigData
- Returns:
- the client Configuration Data that is being used
-
schemas
- Specified by:
schemasin interfacePulsarAdmin- Returns:
- the schemas
-
packages
- Specified by:
packagesin interfacePulsarAdmin- Returns:
- the packages management object
-
transactions
- Specified by:
transactionsin interfacePulsarAdmin
-
close
public void close()Close the Pulsar admin client to release all the resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacePulsarAdmin
-