Package org.apache.pulsar.client.admin
Interface Properties
-
@Deprecated public interface PropertiesDeprecated.seeTenantsfromPulsarAdmin.tenants()Admin interface for properties management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcreateProperty(java.lang.String property, TenantInfo config)Deprecated.Create a new property.voiddeleteProperty(java.lang.String property)Deprecated.Delete an existing property.java.util.List<java.lang.String>getProperties()Deprecated.Get the list of properties.TenantInfogetPropertyAdmin(java.lang.String property)Deprecated.Get the config of the property.voidupdateProperty(java.lang.String property, TenantInfo config)Deprecated.Update the admins for a property.
-
-
-
Method Detail
-
getProperties
java.util.List<java.lang.String> getProperties() throws PulsarAdminExceptionDeprecated.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
TenantInfo getPropertyAdmin(java.lang.String property) throws PulsarAdminException
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
void createProperty(java.lang.String property, TenantInfo config) throws PulsarAdminExceptionDeprecated.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
void updateProperty(java.lang.String property, TenantInfo config) throws PulsarAdminExceptionDeprecated.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
void deleteProperty(java.lang.String property) throws PulsarAdminExceptionDeprecated.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
-
-