Class Maintenance.MaintenanceBase
Base class for server-side implementations of Maintenance
Inheritance
Inherited Members
Namespace: Etcdserverpb
Assembly: cs.temp.dll.dll
Syntax
public abstract class MaintenanceBase
Methods
Alarm(AlarmRequest, grpc.ServerCallContext)
Alarm activates, deactivates, and queries alarms regarding cluster health.
Declaration
public virtual Task<AlarmResponse> Alarm(AlarmRequest request, grpc.ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
AlarmRequest | request | The request received from the client. |
grpc.ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<AlarmResponse> | The response to send back to the client (wrapped by a task). |
Defragment(DefragmentRequest, grpc.ServerCallContext)
Defragment defragments a member's backend database to recover storage space.
Declaration
public virtual Task<DefragmentResponse> Defragment(DefragmentRequest request, grpc.ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
DefragmentRequest | request | The request received from the client. |
grpc.ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DefragmentResponse> | The response to send back to the client (wrapped by a task). |
Hash(HashRequest, grpc.ServerCallContext)
Hash returns the hash of the local KV state for consistency checking purpose. This is designed for testing; do not use this in production when there are ongoing transactions.
Declaration
public virtual Task<HashResponse> Hash(HashRequest request, grpc.ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
HashRequest | request | The request received from the client. |
grpc.ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HashResponse> | The response to send back to the client (wrapped by a task). |
Snapshot(SnapshotRequest, grpc.IServerStreamWriter<SnapshotResponse>, grpc.ServerCallContext)
Snapshot sends a snapshot of the entire backend from a member over a stream to a client.
Declaration
public virtual Task Snapshot(SnapshotRequest request, grpc.IServerStreamWriter<SnapshotResponse> responseStream, grpc.ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
SnapshotRequest | request | The request received from the client. |
grpc.IServerStreamWriter<SnapshotResponse> | responseStream | Used for sending responses back to the client. |
grpc.ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating completion of the handler. |
Status(StatusRequest, grpc.ServerCallContext)
Status gets the status of the member.
Declaration
public virtual Task<StatusResponse> Status(StatusRequest request, grpc.ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
StatusRequest | request | The request received from the client. |
grpc.ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<StatusResponse> | The response to send back to the client (wrapped by a task). |