Package org.apache.pulsar.client.admin
Interface Properties
Deprecated.
Admin interface for properties management.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateProperty(String property, TenantInfo config) Deprecated.Create a new property.voiddeleteProperty(String property) Deprecated.Delete an existing property.Deprecated.Get the list of properties.getPropertyAdmin(String property) Deprecated.Get the config of the property.voidupdateProperty(String property, TenantInfo config) Deprecated.Update the admins for a property.
-
Method Details
-
getProperties
Deprecated.Get the list of properties. Get the list of all the properties. Response Example:["my-property", "other-property", "third-property"]- Returns:
- the list of Pulsar tenants properties
- Throws:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException- Unexpected error
-
getPropertyAdmin
Deprecated.Get the config of the property. Get the admin configuration for a given property.- Parameters:
property- Property name- Returns:
- the property configuration
- Throws:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- Property does not existPulsarAdminException- Unexpected error
-
createProperty
Deprecated.Create a new property. Provisions a new property. This operation requires Pulsar super-user privileges.- Parameters:
property- Property nameconfig- Config data- Throws:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.ConflictException- Property already existsPulsarAdminException.PreconditionFailedException- Property name is not validPulsarAdminException- Unexpected error
-
updateProperty
Deprecated.Update the admins for a property. This operation requires Pulsar super-user privileges.- Parameters:
property- Property nameconfig- Config data- Throws:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- Property does not existPulsarAdminException- Unexpected error
-
deleteProperty
Deprecated.Delete an existing property. Delete a property and all namespaces and topics under it.- Parameters:
property- Property name- Throws:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- The property does not existPulsarAdminException.ConflictException- The property still has active namespacesPulsarAdminException- Unexpected error
-
TenantsfromPulsarAdmin.tenants()