类 PackagesManagementImpl
java.lang.Object
org.apache.pulsar.packages.management.core.impl.PackagesManagementImpl
- 所有已实现的接口:
PackagesManagement
Packages management implementation.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明delete(PackageName packageName) Delete a package.download(PackageName packageName, OutputStream outputStream) Download a package of a given version to a given path.getMeta(PackageName packageName) Get the metadata of a package.voidinitialize(PackagesStorage storage) Initialize the packages management service with the given storage.list(PackageName packageName) List all the versions of a package.list(PackageType type, String tenant, String namespace) List all the packages with the type of a namespace.protected StringmetadataPath(PackageName packageName) protected StringpackagePath(PackageName packageName) updateMeta(PackageName packageName, PackageMetadata metadata) Update the metadata of a package.upload(PackageName packageName, PackageMetadata metadata, InputStream inputStream) Upload a package of a given version from a given path.
-
构造器详细资料
-
PackagesManagementImpl
public PackagesManagementImpl()
-
-
方法详细资料
-
initialize
从接口复制的说明:PackagesManagementInitialize the packages management service with the given storage.- 指定者:
initialize在接口中PackagesManagement- 参数:
storage- the storage used to saving packages
-
getMeta
从接口复制的说明:PackagesManagementGet the metadata of a package.- 指定者:
getMeta在接口中PackagesManagement- 参数:
packageName- package name- 返回:
-
updateMeta
从接口复制的说明:PackagesManagementUpdate the metadata of a package.- 指定者:
updateMeta在接口中PackagesManagement- 参数:
packageName- package name- 返回:
-
download
从接口复制的说明:PackagesManagementDownload a package of a given version to a given path.- 指定者:
download在接口中PackagesManagement- 参数:
packageName- package name- 返回:
-
upload
public CompletableFuture<Void> upload(PackageName packageName, PackageMetadata metadata, InputStream inputStream) 从接口复制的说明:PackagesManagementUpload a package of a given version from a given path.- 指定者:
upload在接口中PackagesManagement- 参数:
packageName- package namemetadata- metadata of a package- 返回:
-
delete
从接口复制的说明:PackagesManagementDelete a package. It will delete all versions of a package if the version is not specified. Otherwise it will delete the specified version package.- 指定者:
delete在接口中PackagesManagement- 参数:
packageName- package name type://tenant/namespace/name@version is delete a given version of the package type://tenant/namespace/name is delete all versions of the package- 返回:
-
list
从接口复制的说明:PackagesManagementList all the versions of a package.- 指定者:
list在接口中PackagesManagement- 参数:
packageName- package name without version- 返回:
- all the versions of the specified package
-
list
从接口复制的说明:PackagesManagementList all the packages with the type of a namespace.- 指定者:
list在接口中PackagesManagement- 参数:
type- the package typetenant- the tenant namenamespace- the namespace name- 返回:
- the packages name under the specified namespace
-
metadataPath
-
packagePath
-