@Generated(value="by gRPC proto compiler",
comments="Source: com/daml/ledger/api/v1/testing/reset_service.proto")
public final class ResetServiceGrpc
extends java.lang.Object
Service to reset the ledger state. The goal here is to be able to reset the state in a way that's much faster compared to restarting the whole ledger application (be it a sandbox or the real ledger server). Note that *all* state present in the ledger implementation will be reset, most importantly including the ledger ID. This means that clients will have to re-fetch the ledger ID from the identity service after hitting this endpoint. The semantics are as follows: * When the reset service returns the reset is initiated, but not completed; * While the reset is performed, the ledger will not accept new requests. In fact we guarantee that ledger stops accepting new requests by the time the response to Reset is delivered; * In-flight requests might be aborted, we make no guarantees on when or how quickly this happens; * The ledger might be unavailable for a period of time before the reset is complete. Given the above, the recommended mode of operation for clients of the reset endpoint is to call it, then call the ledger identity endpoint in a retry loop that will tolerate a brief window when the ledger is down, and resume operation as soon as the new ledger ID is delivered. Note that this service will be available on the sandbox and might be available in some other testing environments, but will *never* be available in production.
Modifier and Type | Class and Description |
---|---|
static class |
ResetServiceGrpc.ResetServiceBlockingStub
Service to reset the ledger state.
|
static class |
ResetServiceGrpc.ResetServiceFutureStub
Service to reset the ledger state.
|
static class |
ResetServiceGrpc.ResetServiceImplBase
Service to reset the ledger state.
|
static class |
ResetServiceGrpc.ResetServiceStub
Service to reset the ledger state.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static io.grpc.MethodDescriptor<ResetServiceOuterClass.ResetRequest,com.google.protobuf.Empty> |
getResetMethod() |
static io.grpc.ServiceDescriptor |
getServiceDescriptor() |
static ResetServiceGrpc.ResetServiceBlockingStub |
newBlockingStub(io.grpc.Channel channel)
Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
static ResetServiceGrpc.ResetServiceFutureStub |
newFutureStub(io.grpc.Channel channel)
Creates a new ListenableFuture-style stub that supports unary calls on the service
|
static ResetServiceGrpc.ResetServiceStub |
newStub(io.grpc.Channel channel)
Creates a new async stub that supports all call types for the service
|
public static final java.lang.String SERVICE_NAME
public static io.grpc.MethodDescriptor<ResetServiceOuterClass.ResetRequest,com.google.protobuf.Empty> getResetMethod()
public static ResetServiceGrpc.ResetServiceStub newStub(io.grpc.Channel channel)
public static ResetServiceGrpc.ResetServiceBlockingStub newBlockingStub(io.grpc.Channel channel)
public static ResetServiceGrpc.ResetServiceFutureStub newFutureStub(io.grpc.Channel channel)
public static io.grpc.ServiceDescriptor getServiceDescriptor()