public abstract static class WatchtowerClientGrpc.WatchtowerClientImplBase
extends java.lang.Object
implements io.grpc.BindableService
WatchtowerClient is a service that grants access to the watchtower client functionality of the daemon.
Constructor and Description |
---|
WatchtowerClientImplBase() |
Modifier and Type | Method and Description |
---|---|
void |
addTower(Wtclient.AddTowerRequest request,
io.grpc.stub.StreamObserver<Wtclient.AddTowerResponse> responseObserver)
AddTower adds a new watchtower reachable at the given address and
considers it for new sessions.
|
io.grpc.ServerServiceDefinition |
bindService() |
void |
getTowerInfo(Wtclient.GetTowerInfoRequest request,
io.grpc.stub.StreamObserver<Wtclient.Tower> responseObserver)
GetTowerInfo retrieves information for a registered watchtower.
|
void |
listTowers(Wtclient.ListTowersRequest request,
io.grpc.stub.StreamObserver<Wtclient.ListTowersResponse> responseObserver)
ListTowers returns the list of watchtowers registered with the client.
|
void |
policy(Wtclient.PolicyRequest request,
io.grpc.stub.StreamObserver<Wtclient.PolicyResponse> responseObserver)
Policy returns the active watchtower client policy configuration.
|
void |
removeTower(Wtclient.RemoveTowerRequest request,
io.grpc.stub.StreamObserver<Wtclient.RemoveTowerResponse> responseObserver)
RemoveTower removes a watchtower from being considered for future session
negotiations and from being used for any subsequent backups until it's added
again.
|
void |
stats(Wtclient.StatsRequest request,
io.grpc.stub.StreamObserver<Wtclient.StatsResponse> responseObserver)
Stats returns the in-memory statistics of the client since startup.
|
public void addTower(Wtclient.AddTowerRequest request, io.grpc.stub.StreamObserver<Wtclient.AddTowerResponse> responseObserver)
AddTower adds a new watchtower reachable at the given address and considers it for new sessions. If the watchtower already exists, then any new addresses included will be considered when dialing it for session negotiations and backups.
public void removeTower(Wtclient.RemoveTowerRequest request, io.grpc.stub.StreamObserver<Wtclient.RemoveTowerResponse> responseObserver)
RemoveTower removes a watchtower from being considered for future session negotiations and from being used for any subsequent backups until it's added again. If an address is provided, then this RPC only serves as a way of removing the address from the watchtower instead.
public void listTowers(Wtclient.ListTowersRequest request, io.grpc.stub.StreamObserver<Wtclient.ListTowersResponse> responseObserver)
ListTowers returns the list of watchtowers registered with the client.
public void getTowerInfo(Wtclient.GetTowerInfoRequest request, io.grpc.stub.StreamObserver<Wtclient.Tower> responseObserver)
GetTowerInfo retrieves information for a registered watchtower.
public void stats(Wtclient.StatsRequest request, io.grpc.stub.StreamObserver<Wtclient.StatsResponse> responseObserver)
Stats returns the in-memory statistics of the client since startup.
public void policy(Wtclient.PolicyRequest request, io.grpc.stub.StreamObserver<Wtclient.PolicyResponse> responseObserver)
Policy returns the active watchtower client policy configuration.
public final io.grpc.ServerServiceDefinition bindService()
bindService
in interface io.grpc.BindableService