Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update admin-api-overview.md (apache#4922)
Fixes apache#4914 ### Motivation 1.Go to 'http://pulsar.apache.org/docs/en/admin-api-overview' 2.Scroll down to 'Java admin client' and click ClientConfiguration link 3.404 not found error is displayed "The requested URL /api/admin/org/apache/pulsar/client/admin/ClientConfiguration was not found on this server." 4.the examples can't work. ### Modifications 1.The link to ClientConfiguration changed to PulsarAdminBuilder. 2.The example changed to ``` String url = "http://localhost:8080"; // Pass auth-plugin class fully-qualified name if Pulsar-security enabled String authPluginClassName = "com.org.MyAuthPluginClass"; // Pass auth-param if auth-plugin class requires it String authParams = "param1=value1"; boolean useTls = false; boolean tlsAllowInsecureConnection = false; String tlsTrustCertsFilePath = null; PulsarAdmin admin = PulsarAdmin.builder() .authentication(authPluginClassName,authParams) .serviceHttpUrl(url) .tlsTrustCertsFilePath(tlsTrustCertsFilePath) .allowTlsInsecureConnection(tlsAllowInsecureConnection) .build(); ```
- Loading branch information