public class PulsarAdmin extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected org.apache.pulsar.client.api.Authentication |
auth |
static int |
DEFAULT_CONNECT_TIMEOUT_SECONDS |
static int |
DEFAULT_READ_TIMEOUT_SECONDS |
static int |
DEFAULT_REQUEST_TIMEOUT_SECONDS |
protected javax.ws.rs.client.WebTarget |
root |
Constructor and Description |
---|
PulsarAdmin(String serviceUrl,
org.apache.pulsar.client.impl.conf.ClientConfigurationData clientConfigData) |
PulsarAdmin(String serviceUrl,
org.apache.pulsar.client.impl.conf.ClientConfigurationData clientConfigData,
int connectTimeout,
TimeUnit connectTimeoutUnit,
int readTimeout,
TimeUnit readTimeoutUnit,
int requestTimeout,
TimeUnit requestTimeoutUnit,
ClassLoader clientBuilderClassLoader) |
PulsarAdmin(URL serviceUrl,
org.apache.pulsar.client.api.Authentication auth)
Deprecated.
Since 2.0. Use
builder() to construct a new PulsarAdmin instance. |
PulsarAdmin(URL serviceUrl,
String authPluginClassName,
Map<String,String> authParams)
Deprecated.
Since 2.0. Use
builder() to construct a new PulsarAdmin instance. |
PulsarAdmin(URL serviceUrl,
String authPluginClassName,
String authParamsString)
Deprecated.
Since 2.0. Use
builder() to construct a new PulsarAdmin instance. |
Modifier and Type | Method and Description |
---|---|
Bookies |
bookies() |
Brokers |
brokers() |
BrokerStats |
brokerStats() |
static PulsarAdminBuilder |
builder()
Creates a builder to construct an instance of
PulsarAdmin . |
void |
close()
Close the Pulsar admin client to release all the resources.
|
Clusters |
clusters() |
Functions |
functions() |
org.apache.pulsar.client.impl.conf.ClientConfigurationData |
getClientConfigData() |
String |
getServiceUrl() |
Lookup |
lookups() |
Namespaces |
namespaces() |
NonPersistentTopics |
nonPersistentTopics()
Deprecated.
Since 2.0. See
topics() |
Properties |
properties()
Deprecated.
since 2.0. See
tenants() |
ProxyStats |
proxyStats() |
ResourceQuotas |
resourceQuotas() |
Schemas |
schemas() |
Sink |
sink()
Deprecated.
in favor of
sinks |
Sinks |
sinks() |
Source |
source()
Deprecated.
in favor of
sources() |
Sources |
sources() |
Tenants |
tenants() |
Topics |
topics() |
Worker |
worker() |
public static final int DEFAULT_CONNECT_TIMEOUT_SECONDS
public static final int DEFAULT_READ_TIMEOUT_SECONDS
public static final int DEFAULT_REQUEST_TIMEOUT_SECONDS
protected final javax.ws.rs.client.WebTarget root
protected final org.apache.pulsar.client.api.Authentication auth
public PulsarAdmin(String serviceUrl, org.apache.pulsar.client.impl.conf.ClientConfigurationData clientConfigData) throws org.apache.pulsar.client.api.PulsarClientException
org.apache.pulsar.client.api.PulsarClientException
public PulsarAdmin(String serviceUrl, org.apache.pulsar.client.impl.conf.ClientConfigurationData clientConfigData, int connectTimeout, TimeUnit connectTimeoutUnit, int readTimeout, TimeUnit readTimeoutUnit, int requestTimeout, TimeUnit requestTimeoutUnit, ClassLoader clientBuilderClassLoader) throws org.apache.pulsar.client.api.PulsarClientException
org.apache.pulsar.client.api.PulsarClientException
@Deprecated public PulsarAdmin(URL serviceUrl, org.apache.pulsar.client.api.Authentication auth) throws org.apache.pulsar.client.api.PulsarClientException
builder()
to construct a new PulsarAdmin
instance.serviceUrl
- the Pulsar service URL (eg. "http://my-broker.example.com:8080")auth
- the Authentication object to be used to talk with Pulsarorg.apache.pulsar.client.api.PulsarClientException
@Deprecated public PulsarAdmin(URL serviceUrl, String authPluginClassName, String authParamsString) throws org.apache.pulsar.client.api.PulsarClientException
builder()
to construct a new PulsarAdmin
instance.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"org.apache.pulsar.client.api.PulsarClientException
@Deprecated public PulsarAdmin(URL serviceUrl, String authPluginClassName, Map<String,String> authParams) throws org.apache.pulsar.client.api.PulsarClientException
builder()
to construct a new PulsarAdmin
instance.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-Pluginorg.apache.pulsar.client.api.PulsarClientException
public static PulsarAdminBuilder builder()
PulsarAdmin
.public Clusters clusters()
public Brokers brokers()
public Tenants tenants()
@Deprecated public Properties properties()
tenants()
public Namespaces namespaces()
public Topics topics()
public Bookies bookies()
@Deprecated public NonPersistentTopics nonPersistentTopics()
topics()
public ResourceQuotas resourceQuotas()
public Lookup lookups()
public Functions functions()
@Deprecated public Source source()
sources()
public Sources sources()
@Deprecated public Sink sink()
sinks
public Sinks sinks()
public Worker worker()
public BrokerStats brokerStats()
public ProxyStats proxyStats()
public String getServiceUrl()
public org.apache.pulsar.client.impl.conf.ClientConfigurationData getClientConfigData()
public Schemas schemas()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2017–2020 Apache Software Foundation. All rights reserved.