public interface Packages
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String packageName)
Delete the specified package.
|
CompletableFuture<Void> |
deleteAsync(String packageName)
Delete the specified package asynchronously.
|
void |
download(String packageName,
String path)
Download a package from the package management service.
|
CompletableFuture<Void> |
downloadAsync(String packageName,
String path)
Download a package from the package management service asynchronously.
|
PackageMetadata |
getMetadata(String packageName)
Get a package metadata information.
|
CompletableFuture<PackageMetadata> |
getMetadataAsync(String packageName)
Get a package metadata information asynchronously.
|
List<String> |
listPackages(String type,
String namespace)
List all the packages with the given type in a namespace.
|
CompletableFuture<List<String>> |
listPackagesAsync(String type,
String namespace)
List all the packages with the given type in a namespace asynchronously.
|
List<String> |
listPackageVersions(String packageName)
List all the versions of a package.
|
CompletableFuture<List<String>> |
listPackageVersionsAsync(String packageName)
List all the versions of a package asynchronously.
|
void |
updateMetadata(String packageName,
PackageMetadata metadata)
Update a package metadata information.
|
CompletableFuture<Void> |
updateMetadataAsync(String packageName,
PackageMetadata metadata)
Update a package metadata information asynchronously.
|
void |
upload(PackageMetadata metadata,
String packageName,
String path)
Upload a package to the package management service.
|
CompletableFuture<Void> |
uploadAsync(PackageMetadata metadata,
String packageName,
String path)
Upload a package to the package management service asynchronously.
|
PackageMetadata getMetadata(String packageName) throws PulsarAdminException
packageName - the package name of the package metadata you want to findPulsarAdminExceptionCompletableFuture<PackageMetadata> getMetadataAsync(String packageName)
packageName - the package name of the package metadata you want to findvoid updateMetadata(String packageName, PackageMetadata metadata) throws PulsarAdminException
packageName - the package name of the package metadata you want to updatemetadata - the updated metadata informationPulsarAdminExceptionCompletableFuture<Void> updateMetadataAsync(String packageName, PackageMetadata metadata)
packageName - the package name of the package metadata you want to updatemetadata - the updated metadata informationvoid upload(PackageMetadata metadata, String packageName, String path) throws PulsarAdminException
packageName - the package name of the upload filepath - the upload file pathPulsarAdminExceptionCompletableFuture<Void> uploadAsync(PackageMetadata metadata, String packageName, String path)
packageName - the package name you want to uploadpath - the path you want to upload fromvoid download(String packageName, String path) throws PulsarAdminException
packageName - the package name you want to downloadpath - the path you want to download toPulsarAdminExceptionCompletableFuture<Void> downloadAsync(String packageName, String path)
packageName - the package name you want to downloadpath - the path you want to download tovoid delete(String packageName) throws PulsarAdminException
packageName - the package name which you want to deletePulsarAdminExceptionCompletableFuture<Void> deleteAsync(String packageName)
packageName - the package name which you want to deleteList<String> listPackageVersions(String packageName) throws PulsarAdminException
packageName - the package name which you want to get all the versionsPulsarAdminExceptionCompletableFuture<List<String>> listPackageVersionsAsync(String packageName)
packageName - the package name which you want to get all the versionsList<String> listPackages(String type, String namespace) throws PulsarAdminException
type - the type you want to get the packagesnamespace - the namespace you want to get the packagesPulsarAdminExceptionCompletableFuture<List<String>> listPackagesAsync(String type, String namespace)
type - the type you want to get the packagesnamespace - the namespace you want to get the packagesCopyright © 2017–2022 Apache Software Foundation. All rights reserved.