aboutsummaryrefslogtreecommitdiffstats
path: root/config-provisioning/src/main/java/com/yahoo/config/provision/Deployment.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
commit72231250ed81e10d66bfe70701e64fa5fe50f712 (patch)
tree2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /config-provisioning/src/main/java/com/yahoo/config/provision/Deployment.java
Publish
Diffstat (limited to 'config-provisioning/src/main/java/com/yahoo/config/provision/Deployment.java')
-rw-r--r--config-provisioning/src/main/java/com/yahoo/config/provision/Deployment.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/config-provisioning/src/main/java/com/yahoo/config/provision/Deployment.java b/config-provisioning/src/main/java/com/yahoo/config/provision/Deployment.java
new file mode 100644
index 00000000000..31718b235e7
--- /dev/null
+++ b/config-provisioning/src/main/java/com/yahoo/config/provision/Deployment.java
@@ -0,0 +1,28 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.config.provision;
+
+/**
+ * A deployment of an application
+ *
+ * @author bratseth
+ */
+public interface Deployment {
+
+ /**
+ * Prepares activation of this deployment.
+ * This will do all validation and preparatory steps in the system such that a subsequent activation should
+ * be fast and error free.
+ */
+ void prepare();
+
+ /** Activates this deployment. This will prepare it if necessary. */
+ void activate();
+
+ /**
+ * Request a restart of services of this application on hosts matching the filter.
+ * This is sometimes needed after activation, but can also be requested without
+ * doing prepare and activate in the same session.
+ */
+ void restart(HostFilter filter);
+
+}