接口 Properties
已过时。
Admin interface for properties management.
-
方法概要
修饰符和类型方法说明voidcreateProperty(String property, TenantInfo config) 已过时。Create a new property.voiddeleteProperty(String property) 已过时。Delete an existing property.已过时。Get the list of properties.getPropertyAdmin(String property) 已过时。Get the config of the property.voidupdateProperty(String property, TenantInfo config) 已过时。Update the admins for a property.
-
方法详细资料
-
getProperties
已过时。Get the list of properties. Get the list of all the properties. Response Example:["my-property", "other-property", "third-property"]- 返回:
- the list of Pulsar tenants properties
- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException- Unexpected error
-
getPropertyAdmin
已过时。Get the config of the property. Get the admin configuration for a given property.- 参数:
property- Property name- 返回:
- the property configuration
- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- Property does not existPulsarAdminException- Unexpected error
-
createProperty
已过时。Create a new property. Provisions a new property. This operation requires Pulsar super-user privileges.- 参数:
property- Property nameconfig- Config data- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.ConflictException- Property already existsPulsarAdminException.PreconditionFailedException- Property name is not validPulsarAdminException- Unexpected error
-
updateProperty
已过时。Update the admins for a property. This operation requires Pulsar super-user privileges.- 参数:
property- Property nameconfig- Config data- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- Property does not existPulsarAdminException- Unexpected error
-
deleteProperty
已过时。Delete an existing property. Delete a property and all namespaces and topics under it.- 参数:
property- Property name- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- The property does not existPulsarAdminException.ConflictException- The property still has active namespacesPulsarAdminException- Unexpected error
-
TenantsfromPulsarAdmin.tenants()