summaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java
diff options
context:
space:
mode:
authorPatrick Brady <pb071s@att.com>2017-04-21 06:08:59 +0000
committerGerrit Code Review <gerrit@onap.org>2017-04-21 06:08:59 +0000
commit17766468368f653027b4aea744c4a8ba4c454829 (patch)
treee8517762e2c4a5a0174939028420e7a7717f3b8f /appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java
parentb06810bb67667edb0d9d9087cc1f978bda988c87 (diff)
parent7b9de12e2f41a44c1a1f0941163d817a27da53c3 (diff)
Merge "Refactor CommandExecutorInput to be immutable"
Diffstat (limited to 'appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java')
-rw-r--r--appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/CommandExecutorInput.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/CommandExecutorInput.java b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/CommandExecutorInput.java
index 4cb5f1b99..07565a249 100644
--- a/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/CommandExecutorInput.java
+++ b/appc-dispatcher/appc-command-executor/appc-command-executor-api/src/main/java/org/openecomp/appc/executor/objects/CommandExecutorInput.java
@@ -24,26 +24,22 @@ package org.openecomp.appc.executor.objects;
import org.openecomp.appc.domainmodel.lcm.RuntimeContext;
public class CommandExecutorInput {
- private RuntimeContext runtimeContext ;
- private int ttl;
+ private final RuntimeContext runtimeContext ;
+ private final int ttl;
+ public CommandExecutorInput(RuntimeContext runtimeContext, int ttl) {
+ this.runtimeContext = runtimeContext;
+ this.ttl = ttl;
+ }
public RuntimeContext getRuntimeContext() {
return runtimeContext;
}
- public void setRuntimeContext(RuntimeContext runtimeContext) {
- this.runtimeContext = runtimeContext;
- }
-
public int getTtl() {
return ttl;
}
- public void setTtl(int ttl) {
- this.ttl = ttl;
- }
-
@Override
public String toString() {
return "CommandExecutorInput{" +