summaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/RunDataStore.java
blob: 88634fa8587f19c29900ad6c69334b3ed5603401 (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.config.provision.ApplicationId;
import com.yahoo.vespa.hosted.controller.api.integration.deployment.RunId;

import java.util.Optional;

/**
 * @author jonmv
 */
public interface RunDataStore {

    /** Returns the run logs of the given deployment job, if existent. */
    Optional<byte[]> get(RunId id);

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

    /** Deletes all data associated with the given application. */
    void delete(ApplicationId id);

}