接口 Packages
-
public interface PackagesAdministration operations of the packages management service.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voiddelete(java.lang.String packageName)Delete the specified package.java.util.concurrent.CompletableFuture<java.lang.Void>deleteAsync(java.lang.String packageName)Delete the specified package asynchronously.voiddownload(java.lang.String packageName, java.lang.String path)Download a package from the package management service.java.util.concurrent.CompletableFuture<java.lang.Void>downloadAsync(java.lang.String packageName, java.lang.String path)Download a package from the package management service asynchronously.PackageMetadatagetMetadata(java.lang.String packageName)Get a package metadata information.java.util.concurrent.CompletableFuture<PackageMetadata>getMetadataAsync(java.lang.String packageName)Get a package metadata information asynchronously.java.util.List<java.lang.String>listPackages(java.lang.String type, java.lang.String namespace)List all the packages with the given type in a namespace.java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>listPackagesAsync(java.lang.String type, java.lang.String namespace)List all the packages with the given type in a namespace asynchronously.java.util.List<java.lang.String>listPackageVersions(java.lang.String packageName)List all the versions of a package.java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>listPackageVersionsAsync(java.lang.String packageName)List all the versions of a package asynchronously.voidupdateMetadata(java.lang.String packageName, PackageMetadata metadata)Update a package metadata information.java.util.concurrent.CompletableFuture<java.lang.Void>updateMetadataAsync(java.lang.String packageName, PackageMetadata metadata)Update a package metadata information asynchronously.voidupload(PackageMetadata metadata, java.lang.String packageName, java.lang.String path)Upload a package to the package management service.java.util.concurrent.CompletableFuture<java.lang.Void>uploadAsync(PackageMetadata metadata, java.lang.String packageName, java.lang.String path)Upload a package to the package management service asynchronously.
-
-
-
方法详细资料
-
getMetadata
PackageMetadata getMetadata(java.lang.String packageName) throws PulsarAdminException
Get a package metadata information.- 参数:
packageName- the package name of the package metadata you want to find- 返回:
- the package metadata information
- 抛出:
PulsarAdminException
-
getMetadataAsync
java.util.concurrent.CompletableFuture<PackageMetadata> getMetadataAsync(java.lang.String packageName)
Get a package metadata information asynchronously.- 参数:
packageName- the package name of the package metadata you want to find- 返回:
- the package metadata information
-
updateMetadata
void updateMetadata(java.lang.String packageName, PackageMetadata metadata) throws PulsarAdminExceptionUpdate a package metadata information.- 参数:
packageName- the package name of the package metadata you want to updatemetadata- the updated metadata information- 抛出:
PulsarAdminException
-
updateMetadataAsync
java.util.concurrent.CompletableFuture<java.lang.Void> updateMetadataAsync(java.lang.String packageName, PackageMetadata metadata)Update a package metadata information asynchronously.- 参数:
packageName- the package name of the package metadata you want to updatemetadata- the updated metadata information- 返回:
- nothing
-
upload
void upload(PackageMetadata metadata, java.lang.String packageName, java.lang.String path) throws PulsarAdminException
Upload a package to the package management service.- 参数:
packageName- the package name of the upload filepath- the upload file path- 抛出:
PulsarAdminException
-
uploadAsync
java.util.concurrent.CompletableFuture<java.lang.Void> uploadAsync(PackageMetadata metadata, java.lang.String packageName, java.lang.String path)
Upload a package to the package management service asynchronously.- 参数:
packageName- the package name you want to uploadpath- the path you want to upload from- 返回:
- nothing
-
download
void download(java.lang.String packageName, java.lang.String path) throws PulsarAdminExceptionDownload a package from the package management service.- 参数:
packageName- the package name you want to downloadpath- the path you want to download to- 抛出:
PulsarAdminException
-
downloadAsync
java.util.concurrent.CompletableFuture<java.lang.Void> downloadAsync(java.lang.String packageName, java.lang.String path)Download a package from the package management service asynchronously.- 参数:
packageName- the package name you want to downloadpath- the path you want to download to- 返回:
- nothing
-
delete
void delete(java.lang.String packageName) throws PulsarAdminExceptionDelete the specified package.- 参数:
packageName- the package name which you want to delete- 抛出:
PulsarAdminException
-
deleteAsync
java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync(java.lang.String packageName)
Delete the specified package asynchronously.- 参数:
packageName- the package name which you want to delete- 返回:
- nothing
-
listPackageVersions
java.util.List<java.lang.String> listPackageVersions(java.lang.String packageName) throws PulsarAdminExceptionList all the versions of a package.- 参数:
packageName- the package name which you want to get all the versions- 返回:
- all the versions of the package
- 抛出:
PulsarAdminException
-
listPackageVersionsAsync
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> listPackageVersionsAsync(java.lang.String packageName)
List all the versions of a package asynchronously.- 参数:
packageName- the package name which you want to get all the versions- 返回:
- all the versions of the package
-
listPackages
java.util.List<java.lang.String> listPackages(java.lang.String type, java.lang.String namespace) throws PulsarAdminExceptionList all the packages with the given type in a namespace.- 参数:
type- the type you want to get the packagesnamespace- the namespace you want to get the packages- 返回:
- all the packages of the given type which in the given namespace
- 抛出:
PulsarAdminException
-
listPackagesAsync
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> listPackagesAsync(java.lang.String type, java.lang.String namespace)List all the packages with the given type in a namespace asynchronously.- 参数:
type- the type you want to get the packagesnamespace- the namespace you want to get the packages- 返回:
- all the packages of the given type which in the given namespace
-
-