接口 Properties
-
@Deprecated public interface Properties已过时。seeTenantsfromPulsarAdmin.tenants()Admin interface for properties management.
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 voidcreateProperty(java.lang.String property, TenantInfo config)已过时。Create a new property.voiddeleteProperty(java.lang.String property)已过时。Delete an existing property.java.util.List<java.lang.String>getProperties()已过时。Get the list of properties.TenantInfogetPropertyAdmin(java.lang.String property)已过时。Get the config of the property.voidupdateProperty(java.lang.String property, TenantInfo config)已过时。Update the admins for a property.
-
-
-
方法详细资料
-
getProperties
java.util.List<java.lang.String> getProperties() throws PulsarAdminException已过时。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
TenantInfo getPropertyAdmin(java.lang.String property) throws PulsarAdminException
已过时。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
void createProperty(java.lang.String property, TenantInfo config) throws PulsarAdminException已过时。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
void updateProperty(java.lang.String property, TenantInfo config) throws PulsarAdminException已过时。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
void deleteProperty(java.lang.String property) throws PulsarAdminException已过时。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
-
-