public class PulsarAdmin extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected Authentication |
auth |
protected javax.ws.rs.client.WebTarget |
root |
| Constructor and Description |
|---|
PulsarAdmin(String serviceUrl,
ClientConfigurationData clientConfigData) |
PulsarAdmin(URL serviceUrl,
Authentication auth)
Deprecated.
Since 2.0. Use
builder() to construct a new PulsarAdmin instance. |
PulsarAdmin(URL serviceUrl,
ClientConfiguration pulsarConfig)
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 |
|---|---|
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() |
ClientConfigurationData |
getClientConfigData() |
String |
getServiceUrl() |
Lookup |
lookups() |
Namespaces |
namespaces() |
NonPersistentTopics |
nonPersistentTopics()
Deprecated.
Since 2.0. See
topics() |
PersistentTopics |
persistentTopics()
Deprecated.
Since 2.0. See
topics() |
Properties |
properties()
Deprecated.
since 2.0. See
tenants() |
ResourceQuotas |
resourceQuotas() |
Tenants |
tenants() |
Topics |
topics() |
protected final javax.ws.rs.client.WebTarget root
protected final Authentication auth
public PulsarAdmin(String serviceUrl, ClientConfigurationData clientConfigData) throws PulsarClientException
PulsarClientException@Deprecated public PulsarAdmin(URL serviceUrl, ClientConfiguration pulsarConfig) throws PulsarClientException
builder() to construct a new PulsarAdmin instance.This client object can be used to perform many subsquent API calls
serviceUrl - the Pulsar service URL (eg. "http://my-broker.example.com:8080")pulsarConfig - the ClientConfiguration object to be used to talk with PulsarPulsarClientException@Deprecated public PulsarAdmin(URL serviceUrl, Authentication auth) throws PulsarClientException
builder() to construct a new PulsarAdmin instance.This client object can be used to perform many subsquent API calls
serviceUrl - the Pulsar service URL (eg. "http://my-broker.example.com:8080")auth - the Authentication object to be used to talk with PulsarPulsarClientException@Deprecated public PulsarAdmin(URL serviceUrl, String authPluginClassName, String authParamsString) throws PulsarClientException
builder() to construct a new PulsarAdmin instance.This client object can be used to perform many subsquent API calls
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"PulsarClientException@Deprecated public PulsarAdmin(URL serviceUrl, String authPluginClassName, Map<String,String> authParams) throws PulsarClientException
builder() to construct a new PulsarAdmin instance.This client object can be used to perform many subsquent API calls
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-PluginPulsarClientExceptionpublic static PulsarAdminBuilder builder()
PulsarAdmin.public Clusters clusters()
public Brokers brokers()
public Tenants tenants()
@Deprecated public Properties properties()
tenants()public Namespaces namespaces()
public Topics topics()
@Deprecated public PersistentTopics persistentTopics()
topics()@Deprecated public NonPersistentTopics nonPersistentTopics()
topics()public ResourceQuotas resourceQuotas()
public Lookup lookups()
public Functions functions()
public BrokerStats brokerStats()
public String getServiceUrl()
public ClientConfigurationData getClientConfigData()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2017–2018 Apache Software Foundation. All rights reserved.