Package org.apache.pulsar.client.admin
Interface Packages
public interface Packages
Administration operations of the packages management service.
-
Method Summary
Modifier and TypeMethodDescriptionvoidDelete the specified package.deleteAsync(String packageName) Delete the specified package asynchronously.voidDownload a package from the package management service.downloadAsync(String packageName, String path) Download a package from the package management service asynchronously.getMetadata(String packageName) Get a package metadata information.getMetadataAsync(String packageName) Get a package metadata information asynchronously.listPackages(String type, String namespace) List all the packages with the given type in a namespace.listPackagesAsync(String type, String namespace) List all the packages with the given type in a namespace asynchronously.listPackageVersions(String packageName) List all the versions of a package.listPackageVersionsAsync(String packageName) List all the versions of a package asynchronously.voidupdateMetadata(String packageName, PackageMetadata metadata) Update a package metadata information.updateMetadataAsync(String packageName, PackageMetadata metadata) Update a package metadata information asynchronously.voidupload(PackageMetadata metadata, String packageName, String path) Upload a package to the package management service.uploadAsync(PackageMetadata metadata, String packageName, String path) Upload a package to the package management service asynchronously.
-
Method Details
-
getMetadata
Get a package metadata information.- Parameters:
packageName- the package name of the package metadata you want to find- Returns:
- the package metadata information
- Throws:
PulsarAdminException
-
getMetadataAsync
Get a package metadata information asynchronously.- Parameters:
packageName- the package name of the package metadata you want to find- Returns:
- the package metadata information
-
updateMetadata
Update a package metadata information.- Parameters:
packageName- the package name of the package metadata you want to updatemetadata- the updated metadata information- Throws:
PulsarAdminException
-
updateMetadataAsync
Update a package metadata information asynchronously.- Parameters:
packageName- the package name of the package metadata you want to updatemetadata- the updated metadata information- Returns:
- nothing
-
upload
Upload a package to the package management service.- Parameters:
packageName- the package name of the upload filepath- the upload file path- Throws:
PulsarAdminException
-
uploadAsync
Upload a package to the package management service asynchronously.- Parameters:
packageName- the package name you want to uploadpath- the path you want to upload from- Returns:
- nothing
-
download
Download a package from the package management service.- Parameters:
packageName- the package name you want to downloadpath- the path you want to download to- Throws:
PulsarAdminException
-
downloadAsync
Download a package from the package management service asynchronously.- Parameters:
packageName- the package name you want to downloadpath- the path you want to download to- Returns:
- nothing
-
delete
Delete the specified package.- Parameters:
packageName- the package name which you want to delete- Throws:
PulsarAdminException
-
deleteAsync
Delete the specified package asynchronously.- Parameters:
packageName- the package name which you want to delete- Returns:
- nothing
-
listPackageVersions
List all the versions of a package.- Parameters:
packageName- the package name which you want to get all the versions- Returns:
- all the versions of the package
- Throws:
PulsarAdminException
-
listPackageVersionsAsync
List all the versions of a package asynchronously.- Parameters:
packageName- the package name which you want to get all the versions- Returns:
- all the versions of the package
-
listPackages
List all the packages with the given type in a namespace.- Parameters:
type- the type you want to get the packagesnamespace- the namespace you want to get the packages- Returns:
- all the packages of the given type which in the given namespace
- Throws:
PulsarAdminException
-
listPackagesAsync
List all the packages with the given type in a namespace asynchronously.- Parameters:
type- the type you want to get the packagesnamespace- the namespace you want to get the packages- Returns:
- all the packages of the given type which in the given namespace
-