aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-07-16 08:31:51 +0200
committerMartin Polden <mpolden@mpolden.no>2021-07-16 09:02:31 +0200
commit7112e34db47c930deb867210cdbdf939689db7e6 (patch)
treec9053c96739ff680dffc204e1ff2cfd429381186 /controller-api
parente0ac9ca91c7a15bbcdeb639d2953925e7f326e35 (diff)
Add javadoc
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
index 53207ec8f99..60b24ad8c0b 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java
@@ -26,10 +26,13 @@ public interface NodeRepository {
/** Add new nodes to the node repository */
void addNodes(ZoneId zone, List<Node> nodes);
+ /** Delete node */
void deleteNode(ZoneId zone, String hostname);
- void setState(ZoneId zone, Node.State nodeState, String hostname);
+ /** Move node to given state */
+ void setState(ZoneId zone, Node.State state, String hostname);
+ /** Get node from zone */
Node getNode(ZoneId zone, String hostname);
/** List all nodes in given zone */
@@ -48,17 +51,23 @@ public interface NodeRepository {
.collect(Collectors.toList());
}
+ /** Get node repository's view of given application */
Application getApplication(ZoneId zone, ApplicationId application);
+ /** Update application */
void patchApplication(ZoneId zone, ApplicationId application,
double currentReadShare, double maxReadShare);
+ /** Get node statistics such as cost and load from given zone */
NodeRepoStats getStats(ZoneId zone);
+ /** Get all archive URLs found in zone */
Map<TenantName, URI> getArchiveUris(ZoneId zone);
+ /** Update archive URL for given tenant */
void setArchiveUri(ZoneId zone, TenantName tenantName, URI archiveUri);
+ /** Remove archive URL for given tenant */
void removeArchiveUri(ZoneId zone, TenantName tenantName);
/** Upgrade all nodes of given type to a new version */