aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@verizonmedia.com>2021-09-09 18:56:34 +0200
committerValerij Fredriksen <valerijf@verizonmedia.com>2021-09-09 21:41:11 +0200
commit2acd3ea90f5deeff9714ec556fba610f6b0e130c (patch)
tree623cbdbb4a5bc7de406467a078886104fea1c1a1 /controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
parent381fa00f92922e011442a1ac8510986d4a5f0f64 (diff)
Use byte[] instead
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
index 4295fff9ae3..71f1821ff9a 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationStore.java
@@ -22,7 +22,7 @@ public interface ApplicationStore {
byte[] get(DeploymentId deploymentId, ApplicationVersion applicationVersion);
/** Returns the application package diff, compared to the previous build, for the given tenant, application and build number */
- Optional<String> getDiff(TenantName tenantName, ApplicationName applicationName, long buildNumber);
+ Optional<byte[]> getDiff(TenantName tenantName, ApplicationName applicationName, long buildNumber);
/** Removes diffs for packages before the given build number */
void pruneDiffs(TenantName tenantName, ApplicationName applicationName, long beforeBuildNumber);
@@ -31,7 +31,7 @@ public interface ApplicationStore {
Optional<byte[]> find(TenantName tenant, ApplicationName application, long buildNumber);
/** Stores the given tenant application package of the given version and diff since previous version. */
- void put(TenantName tenant, ApplicationName application, ApplicationVersion applicationVersion, byte[] applicationPackage, String diff);
+ void put(TenantName tenant, ApplicationName application, ApplicationVersion applicationVersion, byte[] applicationPackage, byte[] diff);
/** Removes applications older than the given version, for the given application, and returns whether something was removed. */
boolean prune(TenantName tenant, ApplicationName application, ApplicationVersion olderThanVersion);
@@ -52,13 +52,13 @@ public interface ApplicationStore {
void removeAllTesters(TenantName tenant, ApplicationName application);
/** Returns the application package diff, compared to the previous build, for the given deployment and build number */
- Optional<String> getDevDiff(DeploymentId deploymentId, long buildNumber);
+ Optional<byte[]> getDevDiff(DeploymentId deploymentId, long buildNumber);
/** Removes diffs for dev packages before the given build number */
void pruneDevDiffs(DeploymentId deploymentId, long beforeBuildNumber);
/** Stores the given application package as the development package for the given deployment and version and diff since previous version. */
- void putDev(DeploymentId deploymentId, ApplicationVersion version, byte[] applicationPackage, String diff);
+ void putDev(DeploymentId deploymentId, ApplicationVersion version, byte[] applicationPackage, byte[] diff);
/** Stores the given application meta data with the current time as part of the path. */
void putMeta(TenantName tenant, ApplicationName application, Instant now, byte[] metaZip);