summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java
diff options
context:
space:
mode:
authorARUL NAMBI <arul.nambi@amdocs.com>2017-07-25 14:46:08 -0400
committerARUL NAMBI <arul.nambi@amdocs.com>2017-07-25 14:46:59 -0400
commitd4241a5c945d04e44716851cfd2b7ef427accb48 (patch)
tree805b432231bca7732ea30af365d2b53f534c0ddd /src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java
parentf8de1f25e7c71380a61b96d5251f224e3a4c821f (diff)
Fixing the sync issues with AAI
Issue-ID: AAI-73 Change-Id: I5c7df7c24c59c347b112cdb003eea726e239a1ca Signed-off-by: ARUL NAMBI <arul.nambi@amdocs.com>
Diffstat (limited to 'src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java')
-rw-r--r--src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java b/src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java
index b7fe3a5..1918e60 100644
--- a/src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java
+++ b/src/main/java/org/openecomp/sparky/viewandinspect/task/PerformNodeSelfLinkProcessingTask.java
@@ -48,6 +48,7 @@ public class PerformNodeSelfLinkProcessingTask implements Supplier<NodeProcessin
private NodeProcessingTransaction txn;
private ActiveInventoryDataProvider aaiProvider;
private Map<String, String> contextMap;
+ private ActiveInventoryConfig aaiConfig;
/**
* Instantiates a new perform node self link processing task.
@@ -57,10 +58,11 @@ public class PerformNodeSelfLinkProcessingTask implements Supplier<NodeProcessin
* @param aaiProvider the aai provider
*/
public PerformNodeSelfLinkProcessingTask(NodeProcessingTransaction txn, String requestParameters,
- ActiveInventoryDataProvider aaiProvider) {
+ ActiveInventoryDataProvider aaiProvider, ActiveInventoryConfig aaiConfig) {
this.aaiProvider = aaiProvider;
this.txn = txn;
this.contextMap = MDC.getCopyOfContextMap();
+ this.aaiConfig = aaiConfig;
}
/* (non-Javadoc)
@@ -69,10 +71,9 @@ public class PerformNodeSelfLinkProcessingTask implements Supplier<NodeProcessin
@Override
public NodeProcessingTransaction get() {
MDC.setContextMap(contextMap);
- String link = txn.getSelfLinkWithModifiers();
-
+ OperationResult opResult = new OperationResult();
+ String link = txn.getSelfLink();
if (link == null) {
- OperationResult opResult = new OperationResult();
opResult.setResult(500, "Aborting self-link processing because self link is null");
txn.setOpResult(opResult);
return txn;
@@ -82,7 +83,6 @@ public class PerformNodeSelfLinkProcessingTask implements Supplier<NodeProcessin
logger.debug(AaiUiMsgs.DEBUG_GENERIC, "Collecting " + link);
}
- OperationResult opResult = null;
try {
opResult = aaiProvider.queryActiveInventoryWithRetries(link, "application/json",
ActiveInventoryConfig.getConfig().getAaiRestConfig().getNumRequestRetries());