public static final class WatchtowerClientGrpc.WatchtowerClientFutureStub extends io.grpc.stub.AbstractFutureStub<WatchtowerClientGrpc.WatchtowerClientFutureStub>
WatchtowerClient is a service that grants access to the watchtower client functionality of the daemon.
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Wtclient.AddTowerResponse> |
addTower(Wtclient.AddTowerRequest request)
AddTower adds a new watchtower reachable at the given address and
considers it for new sessions.
|
protected WatchtowerClientGrpc.WatchtowerClientFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Wtclient.Tower> |
getTowerInfo(Wtclient.GetTowerInfoRequest request)
GetTowerInfo retrieves information for a registered watchtower.
|
com.google.common.util.concurrent.ListenableFuture<Wtclient.ListTowersResponse> |
listTowers(Wtclient.ListTowersRequest request)
ListTowers returns the list of watchtowers registered with the client.
|
com.google.common.util.concurrent.ListenableFuture<Wtclient.PolicyResponse> |
policy(Wtclient.PolicyRequest request)
Policy returns the active watchtower client policy configuration.
|
com.google.common.util.concurrent.ListenableFuture<Wtclient.RemoveTowerResponse> |
removeTower(Wtclient.RemoveTowerRequest request)
RemoveTower removes a watchtower from being considered for future session
negotiations and from being used for any subsequent backups until it's added
again.
|
com.google.common.util.concurrent.ListenableFuture<Wtclient.StatsResponse> |
stats(Wtclient.StatsRequest request)
Stats returns the in-memory statistics of the client since startup.
|
protected WatchtowerClientGrpc.WatchtowerClientFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<WatchtowerClientGrpc.WatchtowerClientFutureStub>
public com.google.common.util.concurrent.ListenableFuture<Wtclient.AddTowerResponse> addTower(Wtclient.AddTowerRequest request)
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 com.google.common.util.concurrent.ListenableFuture<Wtclient.RemoveTowerResponse> removeTower(Wtclient.RemoveTowerRequest request)
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 com.google.common.util.concurrent.ListenableFuture<Wtclient.ListTowersResponse> listTowers(Wtclient.ListTowersRequest request)
ListTowers returns the list of watchtowers registered with the client.
public com.google.common.util.concurrent.ListenableFuture<Wtclient.Tower> getTowerInfo(Wtclient.GetTowerInfoRequest request)
GetTowerInfo retrieves information for a registered watchtower.
public com.google.common.util.concurrent.ListenableFuture<Wtclient.StatsResponse> stats(Wtclient.StatsRequest request)
Stats returns the in-memory statistics of the client since startup.
public com.google.common.util.concurrent.ListenableFuture<Wtclient.PolicyResponse> policy(Wtclient.PolicyRequest request)
Policy returns the active watchtower client policy configuration.