public static final class WatchtowerClientGrpc.WatchtowerClientStub extends io.grpc.stub.AbstractAsyncStub<WatchtowerClientGrpc.WatchtowerClientStub>
WatchtowerClient is a service that grants access to the watchtower client functionality of the daemon.
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.
|
protected WatchtowerClientGrpc.WatchtowerClientStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
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.
|
protected WatchtowerClientGrpc.WatchtowerClientStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<WatchtowerClientGrpc.WatchtowerClientStub>
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.