接口 ResourceGroups
-
public interface ResourceGroupsAdmin interface for ResourceGroups management.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidcreateResourceGroup(java.lang.String name, ResourceGroup resourcegroup)Create a new resourcegroup.java.util.concurrent.CompletableFuture<java.lang.Void>createResourceGroupAsync(java.lang.String name, ResourceGroup resourcegroup)Create a new resourcegroup.voiddeleteResourceGroup(java.lang.String resourcegroup)Delete an existing resourcegroup.java.util.concurrent.CompletableFuture<java.lang.Void>deleteResourceGroupAsync(java.lang.String resourcegroup)Delete an existing resourcegroup.ResourceGroupgetResourceGroup(java.lang.String resourcegroup)Get configuration for a resourcegroup.java.util.concurrent.CompletableFuture<ResourceGroup>getResourceGroupAsync(java.lang.String resourcegroup)Get policies for a namespace asynchronously.java.util.List<java.lang.String>getResourceGroups()Get the list of resourcegroups.java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getResourceGroupsAsync()Get the list of resourcegroups asynchronously.voidupdateResourceGroup(java.lang.String name, ResourceGroup resourcegroup)Update the configuration for a ResourceGroup.java.util.concurrent.CompletableFuture<java.lang.Void>updateResourceGroupAsync(java.lang.String name, ResourceGroup resourcegroup)Update the configuration for a ResourceGroup.
-
-
-
方法详细资料
-
getResourceGroups
java.util.List<java.lang.String> getResourceGroups() throws PulsarAdminExceptionGet the list of resourcegroups. Get the list of all the resourcegroup. Response Example:["resourcegroup1", "resourcegroup2", "resourcegroup3"]- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException- Unexpected error
-
getResourceGroupsAsync
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getResourceGroupsAsync()
Get the list of resourcegroups asynchronously. Get the list of all the resourcegrops. Response Example:["resourcegroup1", "resourcegroup2", "resourcegroup3"]
-
getResourceGroup
ResourceGroup getResourceGroup(java.lang.String resourcegroup) throws PulsarAdminException
Get configuration for a resourcegroup. Get configuration specified for a resourcegroup. Response Example:"publishRateInMsgs" : "value", "PublishRateInBytes" : "value", "DispatchRateInMsgs" : "value", "DispatchRateInBytes" : "value"- 参数:
resourcegroup- String resourcegroup- 抛出:
PulsarAdminException.NotAuthorizedException- You don't have admin permissionPulsarAdminException.NotFoundException- Resourcegroup does not existPulsarAdminException- Unexpected error- 另请参阅:
*
-
getResourceGroupAsync
java.util.concurrent.CompletableFuture<ResourceGroup> getResourceGroupAsync(java.lang.String resourcegroup)
Get policies for a namespace asynchronously. Get cnfiguration specified for a resourcegroup. Response example:"publishRateInMsgs" : "value", "PublishRateInBytes" : "value", "DispatchRateInMsgs" : "value", "DspatchRateInBytes" : "value"- 参数:
resourcegroup- Namespace name- 另请参阅:
ResourceGroup
-
createResourceGroup
void createResourceGroup(java.lang.String name, ResourceGroup resourcegroup) throws PulsarAdminExceptionCreate a new resourcegroup. Creates a new reourcegroup with the configuration specified.- 参数:
name- resourcegroup nameresourcegroup- ResourceGroup configuration- 抛出:
PulsarAdminException.NotAuthorizedException- You don't have admin permissionPulsarAdminException.ConflictException- Resourcegroup already existsPulsarAdminException- Unexpected error
-
createResourceGroupAsync
java.util.concurrent.CompletableFuture<java.lang.Void> createResourceGroupAsync(java.lang.String name, ResourceGroup resourcegroup)Create a new resourcegroup. Creates a new resourcegroup with the configuration specified.- 参数:
name- resourcegroup nameresourcegroup- ResourceGroup configuration.
-
updateResourceGroup
void updateResourceGroup(java.lang.String name, ResourceGroup resourcegroup) throws PulsarAdminExceptionUpdate the configuration for a ResourceGroup. This operation requires Pulsar super-user privileges.- 参数:
name- resourcegroup nameresourcegroup- resourcegroup configuration- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- ResourceGroup does not existPulsarAdminException- Unexpected error
-
updateResourceGroupAsync
java.util.concurrent.CompletableFuture<java.lang.Void> updateResourceGroupAsync(java.lang.String name, ResourceGroup resourcegroup)Update the configuration for a ResourceGroup. This operation requires Pulsar super-user privileges.- 参数:
name- resourcegroup nameresourcegroup- resourcegroup configuration
-
deleteResourceGroup
void deleteResourceGroup(java.lang.String resourcegroup) throws PulsarAdminExceptionDelete an existing resourcegroup. The resourcegroup needs to unused and not attached to any entity.- 参数:
resourcegroup- Resourcegroup name- 抛出:
PulsarAdminException.NotAuthorizedException- You don't have admin permissionPulsarAdminException.NotFoundException- Resourcegroup does not existPulsarAdminException.ConflictException- Resourcegroup is in usePulsarAdminException- Unexpected error
-
deleteResourceGroupAsync
java.util.concurrent.CompletableFuture<java.lang.Void> deleteResourceGroupAsync(java.lang.String resourcegroup)
Delete an existing resourcegroup. The resourcegroup needs to unused and not attached to any entity.- 参数:
resourcegroup- Resourcegroup name
-
-