summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/LogStore.java
blob: ef2d90778928a9aee184655f73817ddc24ffe93a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.yahoo.vespa.hosted.controller.api.integration;

import com.yahoo.vespa.hosted.controller.api.integration.configserver.PrepareResponse;
import com.yahoo.vespa.hosted.controller.api.integration.deployment.RunId;

import java.util.Optional;

/**
 * @author freva
 */
public interface LogStore {

    /** @return the log of the given step of the given deployment job, or an empty byte array if non-existent. */
    byte[] getLog(RunId id, String step);

    /** Stores the given log for the given step of the given deployment job. */
    void setLog(RunId id, String step, byte[] log);

    /** Deletes all data associated with the given deployment job */
    void deleteTestData(RunId id);

}