Package com.daml.ledger.api.v1.admin
Class PackageManagementServiceGrpc.PackageManagementServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<PackageManagementServiceGrpc.PackageManagementServiceFutureStub>
-
- com.daml.ledger.api.v1.admin.PackageManagementServiceGrpc.PackageManagementServiceFutureStub
-
- Enclosing class:
- PackageManagementServiceGrpc
public static final class PackageManagementServiceGrpc.PackageManagementServiceFutureStub extends io.grpc.stub.AbstractFutureStub<PackageManagementServiceGrpc.PackageManagementServiceFutureStub>
Status: experimental interface, will change before it is deemed production ready Query the Daml-LF packages supported by the ledger participant and upload DAR files. We use 'backing participant' to refer to this specific participant in the methods of this API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PackageManagementServiceGrpc.PackageManagementServiceFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<PackageManagementServiceOuterClass.ListKnownPackagesResponse>
listKnownPackages(PackageManagementServiceOuterClass.ListKnownPackagesRequest request)
Returns the details of all Daml-LF packages known to the backing participant.com.google.common.util.concurrent.ListenableFuture<PackageManagementServiceOuterClass.UploadDarFileResponse>
uploadDarFile(PackageManagementServiceOuterClass.UploadDarFileRequest request)
Upload a DAR file to the backing participant.
-
-
-
Method Detail
-
build
protected PackageManagementServiceGrpc.PackageManagementServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<PackageManagementServiceGrpc.PackageManagementServiceFutureStub>
-
listKnownPackages
public com.google.common.util.concurrent.ListenableFuture<PackageManagementServiceOuterClass.ListKnownPackagesResponse> listKnownPackages(PackageManagementServiceOuterClass.ListKnownPackagesRequest request)
Returns the details of all Daml-LF packages known to the backing participant. Errors: - ``UNAUTHENTICATED``: if the request does not include a valid access token - ``PERMISSION_DENIED``: if the claims in the token are insufficient to perform a given operation
-
uploadDarFile
public com.google.common.util.concurrent.ListenableFuture<PackageManagementServiceOuterClass.UploadDarFileResponse> uploadDarFile(PackageManagementServiceOuterClass.UploadDarFileRequest request)
Upload a DAR file to the backing participant. Depending on the ledger implementation this might also make the package available on the whole ledger. This call might not be supported by some ledger implementations. Canton could be an example, where uploading a DAR is not sufficient to render it usable, it must be activated first. This call may: - Succeed, if the package was successfully uploaded, or if the same package was already uploaded before. - Respond with a gRPC error Errors: - ``UNAUTHENTICATED``: if the request does not include a valid access token - ``PERMISSION_DENIED``: if the claims in the token are insufficient to perform a given operation - ``UNIMPLEMENTED``: if DAR package uploading is not supported by the backing participant - ``INVALID_ARGUMENT``: if the DAR file is too big or malformed. The maximum supported size is implementation specific.
-
-