diff options
author | Valerij Fredriksen <valerijf@oath.com> | 2018-06-21 10:33:56 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@oath.com> | 2018-06-21 11:22:23 +0200 |
commit | 802453961caed2330e6fa70ec3171d674c27e33e (patch) | |
tree | 0c5315213a7199bf899aee92700ecf09659f8858 /controller-api | |
parent | 5258489bf992e8176e136362759ac079494b6f94 (diff) |
Inject LogStore
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogStore.java | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogStore.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogStore.java index 0a7bacefffb..a4093bc80af 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogStore.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogStore.java @@ -1,19 +1,29 @@ package com.yahoo.vespa.hosted.controller.api.integration; import com.yahoo.config.provision.ApplicationId; +import com.yahoo.vespa.hosted.controller.api.integration.configserver.PrepareResponse; import com.yahoo.vespa.hosted.controller.api.integration.deployment.JobType; -import com.yahoo.vespa.hosted.controller.api.integration.zone.ZoneId; -// TODO jvenstad: Change most of this. public interface LogStore { - /** Returns the log of the given deployment job. */ - String getTestLog(ApplicationId application, JobType jobType, int build); + /** @return the test log of the given deployment job. */ + String getTestLog(ApplicationId applicationId, JobType jobType, long buildId); - /** Stores the given log for the given deployment job. */ - void setTestLog(ApplicationId application, JobType jobType, int build, String log); + /** Stores the given test log for the given deployment job. */ + void setTestLog(ApplicationId applicationId, JobType jobType, long buildId, String testLog); - /** Deletes the log for the given deployment job. */ - void deleteTestLog(ApplicationId application, JobType jobType, int build); + /** @return the convergence log of the given deployment job. */ + String getConvergenceLog(ApplicationId applicationId, JobType jobType, long buildId); + /** Stores the given convergence log for the given deployment job. */ + void setConvergenceLog(ApplicationId applicationId, JobType jobType, long buildId, String convergenceLog); + + /** @return the result of prepare of the test application for the given deployment job. */ + PrepareResponse getPrepareResponse(ApplicationId applicationId, JobType jobType, long buildId); + + /** Stores the given result of prepare of the test application for the given deployment job. */ + void setPrepareResponse(ApplicationId applicationId, JobType jobType, long buildId, PrepareResponse prepareResponse); + + /** Deletes all data associated with test of a given deployment job */ + void deleteTestData(ApplicationId applicationId, JobType jobType, long buildId); } |