summaryrefslogtreecommitdiffstats
path: root/appc-dispatcher/appc-request-handler/appc-request-handler-core/src
diff options
context:
space:
mode:
authorvidhyasree <sn141y@att.com>2018-02-05 17:04:27 -0500
committerPatrick Brady <pb071s@att.com>2018-02-07 17:17:20 +0000
commit9f387dc0c254b1ca6aca6846c4524bc79dcc9a15 (patch)
tree00f21fb41d2b3d9c1e98234f4f373a6eea8e89a7 /appc-dispatcher/appc-request-handler/appc-request-handler-core/src
parent5196c90db81f24343a3ed9e685592b6210722573 (diff)
Fixed issues in MSO and StopApplication payload
Issue-ID: APPC-567 Change-Id: I7729322aea93eea6b83cf88b0e9d7600a41535e0 Signed-off-by: vidhyasree <sn141y@att.com>
Diffstat (limited to 'appc-dispatcher/appc-request-handler/appc-request-handler-core/src')
-rw-r--r--appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java36
1 files changed, 35 insertions, 1 deletions
diff --git a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java
index 406bf620d..f169a7359 100644
--- a/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java
+++ b/appc-dispatcher/appc-request-handler/appc-request-handler-core/src/main/java/org/onap/appc/requesthandler/conv/Converter.java
@@ -219,7 +219,41 @@ public class Converter {
((StartApplicationOutputBuilder)outObj).setCommonHeader(commonHeader);
((StartApplicationOutputBuilder)outObj).setStatus(status);
return outObj;
-
+ case QuiesceTraffic:
+ outObj = new QuiesceTrafficOutputBuilder();
+ ((QuiesceTrafficOutputBuilder)outObj).setCommonHeader(commonHeader);
+ ((QuiesceTrafficOutputBuilder)outObj).setStatus(status);
+ return outObj;
+ case ResumeTraffic:
+ outObj = new ResumeTrafficOutputBuilder();
+ ((ResumeTrafficOutputBuilder)outObj).setCommonHeader(commonHeader);
+ ((ResumeTrafficOutputBuilder)outObj).setStatus(status);
+ return outObj;
+ case UpgradeSoftware:
+ outObj = new UpgradeSoftwareOutputBuilder();
+ ((UpgradeSoftwareOutputBuilder)outObj).setCommonHeader(commonHeader);
+ ((UpgradeSoftwareOutputBuilder)outObj).setStatus(status);
+ return outObj;
+ case UpgradePostCheck:
+ outObj = new UpgradePostCheckOutputBuilder();
+ ((UpgradePostCheckOutputBuilder)outObj).setCommonHeader(commonHeader);
+ ((UpgradePostCheckOutputBuilder)outObj).setStatus(status);
+ return outObj;
+ case UpgradeBackup:
+ outObj = new UpgradeBackupOutputBuilder();
+ ((UpgradeBackupOutputBuilder)outObj).setCommonHeader(commonHeader);
+ ((UpgradeBackupOutputBuilder)outObj).setStatus(status);
+ return outObj;
+ case UpgradeBackout:
+ outObj = new UpgradeBackoutOutputBuilder();
+ ((UpgradeBackoutOutputBuilder)outObj).setCommonHeader(commonHeader);
+ ((UpgradeBackoutOutputBuilder)outObj).setStatus(status);
+ return outObj;
+ case UpgradePreCheck:
+ outObj = new UpgradePreCheckOutputBuilder();
+ ((UpgradePreCheckOutputBuilder)outObj).setCommonHeader(commonHeader);
+ ((UpgradePreCheckOutputBuilder)outObj).setStatus(status);
+ return outObj;
default:
throw new IllegalArgumentException(action+" action is not supported");
}