public abstract static class ConfigManagementServiceGrpc.ConfigManagementServiceImplBase
extends java.lang.Object
implements io.grpc.BindableService
Ledger configuration management service provides methods for the ledger administrator to change the current ledger configuration. The services provides methods to modify different aspects of the configuration.
Constructor and Description |
---|
ConfigManagementServiceImplBase() |
Modifier and Type | Method and Description |
---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
getTimeModel(ConfigManagementServiceOuterClass.GetTimeModelRequest request,
io.grpc.stub.StreamObserver<ConfigManagementServiceOuterClass.GetTimeModelResponse> responseObserver)
Return the currently active time model and the current configuration generation.
|
void |
setTimeModel(ConfigManagementServiceOuterClass.SetTimeModelRequest request,
io.grpc.stub.StreamObserver<ConfigManagementServiceOuterClass.SetTimeModelResponse> responseObserver)
Set the ledger time model.
|
public void getTimeModel(ConfigManagementServiceOuterClass.GetTimeModelRequest request, io.grpc.stub.StreamObserver<ConfigManagementServiceOuterClass.GetTimeModelResponse> responseObserver)
Return the currently active time model and the current configuration generation.
public void setTimeModel(ConfigManagementServiceOuterClass.SetTimeModelRequest request, io.grpc.stub.StreamObserver<ConfigManagementServiceOuterClass.SetTimeModelResponse> responseObserver)
Set the ledger time model. In case of failure this method responds with: - INVALID_ARGUMENT if arguments are invalid, or the provided configuration generation does not match the current active configuration generation. The caller is expected to retry by again fetching current time model using 'GetTimeModel', applying changes and resubmitting. - ABORTED if the request is rejected or times out. Note that a timed out request may have still been committed to the ledger. Application should re-query the current time model before retrying. - UNIMPLEMENTED if this method is not supported by the backing ledger.
public final io.grpc.ServerServiceDefinition bindService()
bindService
in interface io.grpc.BindableService