Package com.btcvelocity.api.cluster
Interface ClusterProxyService
public interface ClusterProxyService
Service for discovering proxies and performing cross-proxy operations
within the cluster.
Provides proxy enumeration, identity queries, and remote management actions such as configuration reload and uptime inspection.
-
Method Summary
Modifier and TypeMethodDescriptionGets the identifiers of all proxies currently active in the cluster.Gets the identifier of this proxy instance.booleanChecks whether the cluster consists of more than one proxy.queryProxyUptime(String proxyId) Queries the uptime of the specified proxy.reloadProxy(String proxyId) Requests a configuration reload on the specified proxy.
-
Method Details
-
getAllProxyIds
Collection<String> getAllProxyIds()Gets the identifiers of all proxies currently active in the cluster.- Returns:
- a collection of proxy identifiers
-
getSelfProxyId
String getSelfProxyId()Gets the identifier of this proxy instance.- Returns:
- this proxy's identifier
-
isMultiProxy
boolean isMultiProxy()Checks whether the cluster consists of more than one proxy.- Returns:
trueif multiple proxies are active
-
reloadProxy
Requests a configuration reload on the specified proxy.- Parameters:
proxyId- the identifier of the target proxy- Returns:
- a future that completes with
trueif the reload succeeded
-
queryProxyUptime
Queries the uptime of the specified proxy.- Parameters:
proxyId- the identifier of the target proxy- Returns:
- a future that completes with the proxy's uptime in seconds
-