Package org.apache.pulsar.client.admin
Interface Properties
Deprecated.
Admin interface for properties management.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createProperty
(String property, TenantInfo config) Deprecated.Create a new property.void
deleteProperty
(String property) Deprecated.Delete an existing property.Deprecated.Get the list of properties.getPropertyAdmin
(String property) Deprecated.Get the config of the property.void
updateProperty
(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
-
Tenants
fromPulsarAdmin.tenants()