Package com.daml.ledger.api.v2.admin
Class PackageManagementServiceGrpc.PackageManagementServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<PackageManagementServiceGrpc.PackageManagementServiceBlockingStub>
com.daml.ledger.api.v2.admin.PackageManagementServiceGrpc.PackageManagementServiceBlockingStub
- Enclosing class:
- PackageManagementServiceGrpc
public static final class PackageManagementServiceGrpc.PackageManagementServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<PackageManagementServiceGrpc.PackageManagementServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service PackageManagementService.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Returns the details of all Daml-LF packages known to the backing participant.Upload a DAR file to the backing participant.Performs the same checks that UploadDarFile call perform, but doesn't upload the DAR and does not make it available on the whole ledger.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PackageManagementServiceGrpc.PackageManagementServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<PackageManagementServiceGrpc.PackageManagementServiceBlockingStub>
-
listKnownPackages
public PackageManagementServiceOuterClass.ListKnownPackagesResponse listKnownPackages(PackageManagementServiceOuterClass.ListKnownPackagesRequest request) Returns the details of all Daml-LF packages known to the backing participant.
-
uploadDarFile
public 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
-
validateDarFile
public PackageManagementServiceOuterClass.ValidateDarFileResponse validateDarFile(PackageManagementServiceOuterClass.ValidateDarFileRequest request) Performs the same checks that UploadDarFile call perform, but doesn't upload the DAR and does not make it available on the whole ledger. This call may: - Succeed if the package is valid - Respond with a gRPC error if the package is not valid
-