Class ContainerEndpointsCache
java.lang.Object
com.yahoo.vespa.config.server.tenant.ContainerEndpointsCache
Persists assignment of rotations to an application in ZooKeeper.
The entries are
ContainerEndpoint
instances, which keep track of the container
cluster that is the target, the endpoint name, and the rotation used to
give availability to that cluster.- Author:
- ogronnesby
-
Constructor Summary
ConstructorsConstructorDescriptionContainerEndpointsCache
(com.yahoo.path.Path tenantPath, com.yahoo.vespa.curator.Curator curator) -
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.vespa.curator.transaction.CuratorTransaction
delete
(com.yahoo.config.provision.ApplicationId application) Returns a transaction which deletes these rotations if they existList<com.yahoo.config.model.api.ContainerEndpoint>
read
(com.yahoo.config.provision.ApplicationId applicationId) void
write
(com.yahoo.config.provision.ApplicationId applicationId, List<com.yahoo.config.model.api.ContainerEndpoint> endpoints)
-
Constructor Details
-
ContainerEndpointsCache
public ContainerEndpointsCache(com.yahoo.path.Path tenantPath, com.yahoo.vespa.curator.Curator curator)
-
-
Method Details
-
read
public List<com.yahoo.config.model.api.ContainerEndpoint> read(com.yahoo.config.provision.ApplicationId applicationId) -
write
public void write(com.yahoo.config.provision.ApplicationId applicationId, List<com.yahoo.config.model.api.ContainerEndpoint> endpoints) -
delete
public com.yahoo.vespa.curator.transaction.CuratorTransaction delete(com.yahoo.config.provision.ApplicationId application) Returns a transaction which deletes these rotations if they exist
-