Package com.daml.ledger.api.v2.admin
Class PackageManagementServiceGrpc.PackageManagementServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<PackageManagementServiceGrpc.PackageManagementServiceStub>
io.grpc.stub.AbstractAsyncStub<PackageManagementServiceGrpc.PackageManagementServiceStub>
com.daml.ledger.api.v2.admin.PackageManagementServiceGrpc.PackageManagementServiceStub
- Enclosing class:
PackageManagementServiceGrpc
public static final class PackageManagementServiceGrpc.PackageManagementServiceStub
extends io.grpc.stub.AbstractAsyncStub<PackageManagementServiceGrpc.PackageManagementServiceStub>
A stub to allow clients to do asynchronous 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) voidlistKnownPackages(PackageManagementServiceOuterClass.ListKnownPackagesRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.ListKnownPackagesResponse> responseObserver) Returns the details of all Daml-LF packages known to the backing participant.voidupdateVettedPackages(PackageManagementServiceOuterClass.UpdateVettedPackagesRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.UpdateVettedPackagesResponse> responseObserver) Update the vetted packages of this participantvoiduploadDarFile(PackageManagementServiceOuterClass.UploadDarFileRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.UploadDarFileResponse> responseObserver) Upload a DAR file to the participant.voidvalidateDarFile(PackageManagementServiceOuterClass.ValidateDarFileRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.ValidateDarFileResponse> responseObserver) Validates the DAR and checks the upgrade compatibility of the DAR's packages with the set of the already vetted packages on the target vetting synchronizer.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PackageManagementServiceGrpc.PackageManagementServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PackageManagementServiceGrpc.PackageManagementServiceStub>
-
listKnownPackages
public void listKnownPackages(PackageManagementServiceOuterClass.ListKnownPackagesRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.ListKnownPackagesResponse> responseObserver) Returns the details of all Daml-LF packages known to the backing participant.
-
uploadDarFile
public void uploadDarFile(PackageManagementServiceOuterClass.UploadDarFileRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.UploadDarFileResponse> responseObserver) Upload a DAR file to the participant. If vetting is enabled in the request, the DAR is checked for upgrade compatibility with the set of the already vetted packages on the target vetting synchronizer See UploadDarFileRequest for details regarding vetting and the target vetting synchronizer.
-
validateDarFile
public void validateDarFile(PackageManagementServiceOuterClass.ValidateDarFileRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.ValidateDarFileResponse> responseObserver) Validates the DAR and checks the upgrade compatibility of the DAR's packages with the set of the already vetted packages on the target vetting synchronizer. See ValidateDarFileRequest for details regarding the target vetting synchronizer. The operation has no effect on the state of the participant or the Canton ledger: the DAR payload and its packages are not persisted neither are the packages vetted.
-
updateVettedPackages
public void updateVettedPackages(PackageManagementServiceOuterClass.UpdateVettedPackagesRequest request, io.grpc.stub.StreamObserver<PackageManagementServiceOuterClass.UpdateVettedPackagesResponse> responseObserver) Update the vetted packages of this participant
-