Interface ConfigServer
-
public interface ConfigServerThe API controllers use when communicating with config servers.- Author:
- Oyvind Grønnesby
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceConfigServer.PreparedApplication
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeactivate(DeploymentId deployment)ConfigServer.PreparedApplicationdeploy(DeploymentData deployment)com.yahoo.vespa.serviceview.bindings.ApplicationViewgetApplicationView(java.lang.String tenantName, java.lang.String applicationName, java.lang.String instanceName, java.lang.String environment, java.lang.String region)java.lang.StringgetClusterControllerStatus(DeploymentId deployment, java.lang.String restPath)java.util.List<java.lang.String>getContentClusters(DeploymentId deployment)booleangetGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone)Get the status for an entire zone.EndpointStatusgetGlobalRotationStatus(DeploymentId deployment, java.lang.String upstreamName)Get the endpoint status for an app in one zone.java.util.List<LoadBalancer>getLoadBalancers(com.yahoo.config.provision.ApplicationId application, com.yahoo.config.provision.zone.ZoneId zone)Get all load balancers for application in given zonejava.io.InputStreamgetLogs(DeploymentId deployment, java.util.Map<java.lang.String,java.lang.String> queryParameters)Gets the Vespa logs of the given deployment.java.util.List<ClusterMetrics>getMetrics(DeploymentId deployment)java.util.Map<?,?>getServiceApiResponse(DeploymentId deployment, java.lang.String serviceName, java.lang.String restPath)java.util.List<LogEntry>getTesterLog(DeploymentId deployment, long after)Gets log from tester nodeTesterCloud.StatusgetTesterStatus(DeploymentId deployment)Gets status for tester applicationbooleanisSuspended(DeploymentId deployment)booleanisTesterReady(DeploymentId deployment)Is tester node readyjava.util.List<com.yahoo.vespa.flags.json.FlagData>listFlagData(com.yahoo.config.provision.zone.ZoneId zone)List all flag data for the given zoneNodeRepositorynodeRepository()The node repository on this config servervoidrestart(DeploymentId deployment, java.util.Optional<Hostname> hostname)java.util.Optional<ServiceConvergence>serviceConvergence(DeploymentId deployment, java.util.Optional<com.yahoo.component.Version> version)Get service convergence status for given deployment, using the nodes in the model at the given Vespa version.voidsetGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone, boolean in)Set the new status for an entire zone.voidsetGlobalRotationStatus(DeploymentId deployment, java.lang.String upstreamName, EndpointStatus status)Set new status for a endpoint of a single deployment.java.lang.StringstartTests(DeploymentId deployment, TesterCloud.Suite suite, byte[] config)Starts tests on tester node
-
-
-
Method Detail
-
deploy
ConfigServer.PreparedApplication deploy(DeploymentData deployment)
-
restart
void restart(DeploymentId deployment, java.util.Optional<Hostname> hostname)
-
deactivate
void deactivate(DeploymentId deployment) throws NotFoundException
- Throws:
NotFoundException
-
isSuspended
boolean isSuspended(DeploymentId deployment)
-
getApplicationView
com.yahoo.vespa.serviceview.bindings.ApplicationView getApplicationView(java.lang.String tenantName, java.lang.String applicationName, java.lang.String instanceName, java.lang.String environment, java.lang.String region)
-
getServiceApiResponse
java.util.Map<?,?> getServiceApiResponse(DeploymentId deployment, java.lang.String serviceName, java.lang.String restPath)
-
getClusterControllerStatus
java.lang.String getClusterControllerStatus(DeploymentId deployment, java.lang.String restPath)
-
getLogs
java.io.InputStream getLogs(DeploymentId deployment, java.util.Map<java.lang.String,java.lang.String> queryParameters)
Gets the Vespa logs of the given deployment. If the "from" and/or "to" query parameters are present, they are read as millis since EPOCH, and used to limit the time window for which log entries are gathered. This is not exact, and will return too much. If the "hostname" query parameter is present, it limits the entries to be from that host.
-
getMetrics
java.util.List<ClusterMetrics> getMetrics(DeploymentId deployment)
-
getContentClusters
java.util.List<java.lang.String> getContentClusters(DeploymentId deployment)
-
setGlobalRotationStatus
void setGlobalRotationStatus(DeploymentId deployment, java.lang.String upstreamName, EndpointStatus status)
Set new status for a endpoint of a single deployment.- Parameters:
deployment- The deployment to changeupstreamName- The upstream to modify. Upstream name is a unique identifier for the global route of a deployment in the shared routing layerstatus- The new status
-
setGlobalRotationStatus
void setGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone, boolean in)Set the new status for an entire zone.- Parameters:
zone- the zonein- whether to set zone status to 'in' or 'out'
-
getGlobalRotationStatus
EndpointStatus getGlobalRotationStatus(DeploymentId deployment, java.lang.String upstreamName)
Get the endpoint status for an app in one zone.- Parameters:
deployment- The deployment to changeupstreamName- The upstream to query. Upstream name is a unique identifier for the global route of a deployment in the shared routing layer- Returns:
- The endpoint status with metadata
-
getGlobalRotationStatus
boolean getGlobalRotationStatus(com.yahoo.config.provision.zone.ZoneId zone)
Get the status for an entire zone.- Parameters:
zone- the zone- Returns:
- whether the zone status is 'in'
-
nodeRepository
NodeRepository nodeRepository()
The node repository on this config server
-
serviceConvergence
java.util.Optional<ServiceConvergence> serviceConvergence(DeploymentId deployment, java.util.Optional<com.yahoo.component.Version> version)
Get service convergence status for given deployment, using the nodes in the model at the given Vespa version.
-
getLoadBalancers
java.util.List<LoadBalancer> getLoadBalancers(com.yahoo.config.provision.ApplicationId application, com.yahoo.config.provision.zone.ZoneId zone)
Get all load balancers for application in given zone
-
listFlagData
java.util.List<com.yahoo.vespa.flags.json.FlagData> listFlagData(com.yahoo.config.provision.zone.ZoneId zone)
List all flag data for the given zone
-
getTesterStatus
TesterCloud.Status getTesterStatus(DeploymentId deployment)
Gets status for tester application
-
startTests
java.lang.String startTests(DeploymentId deployment, TesterCloud.Suite suite, byte[] config)
Starts tests on tester node
-
getTesterLog
java.util.List<LogEntry> getTesterLog(DeploymentId deployment, long after)
Gets log from tester node
-
isTesterReady
boolean isTesterReady(DeploymentId deployment)
Is tester node ready
-
-