--- /dev/null
+<beans profile="resources" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:task="http://www.springframework.org/schema/task"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd
+ http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
+
+ <bean id="attributeUpdater" class="org.onap.aai.sparky.editattributes.AttributeUpdater">
+ <constructor-arg ref="oxmModelLoader" />
+ <constructor-arg ref="oxmEntityLookup" />
+ <constructor-arg ref="activeInventoryAdapter" />
+ </bean>
+
+ <bean id="attributeEditProcessor"
+ class="org.onap.aai.sparky.editattributes.AttributeEditProcessor">
+ <constructor-arg ref="attributeUpdater" />
+ </bean>
+
+</beans>
\ No newline at end of file
<constructor-arg ref="oxmModelLoader" />
<constructor-arg ref="gizmoRestEndpointConfig" />
<property name="relationshipsBasePath"
- value="/services/inventory/relationships/${gizmo.apiVersion:v12}/" />
- <property name="inventoryBasePath" value="/services/inventory/${gizmo.apiVersion:v12}/" />
+ value="/services/inventory/relationships/${gizmo.apiVersion:v12}" />
+ <property name="inventoryBasePath" value="/services/inventory/${gizmo.apiVersion:v12}" />
</bean>
</beans>
\ No newline at end of file
value="entitycounthistoryindex" />
</bean>
- <bean id="attributeUpdater" class="org.onap.aai.sparky.editattributes.AttributeUpdater">
- <constructor-arg ref="oxmModelLoader" />
- <constructor-arg ref="oxmEntityLookup" />
- <constructor-arg ref="activeInventoryAdapter" />
- </bean>
-
- <bean id="attributeEditProcessor"
- class="org.onap.aai.sparky.editattributes.AttributeEditProcessor">
- <constructor-arg ref="attributeUpdater" />
- </bean>
-
<bean id="geoVisualizationProcessor" class="org.onap.aai.sparky.inventory.GeoVisualizationProcessor">
<constructor-arg ref="elasticSearchAdapter" />
<constructor-arg name="topographicalSearchIndexName"
class="org.onap.aai.sparky.viewandinspect.services.BaseVisualizationService">
<constructor-arg ref="oxmModelLoader" />
<constructor-arg ref="visualizationConfigurations" />
- <constructor-arg ref="activeInventoryAdapter" />
+ <constructor-arg name="aaiAdapter"><null/></constructor-arg>
<constructor-arg ref="gizmoAdapter" />
<constructor-arg ref="elasticSearchAdapter" />
<constructor-arg ref="elasticSearchEndpointConfig" />
/**
* Instantiates a new historical entity summarizer.
*
- * @param indexName the index name
* @throws Exception the exception
*/
public HistoricalEntitySummarizer(ElasticSearchSchemaConfig schemaConfig, int internalSyncWorkers,
Thread.sleep(500);
} catch (InterruptedException exc) {
LOG.error(AaiUiMsgs.INTERRUPTED, "historical Entities", exc.getMessage());
+ Thread.currentThread().interrupt();
}
}
Thread.sleep(50);
} catch (InterruptedException exc) {
LOG.error(AaiUiMsgs.QUERY_AAI_WAIT_INTERRUPTION, exc.getLocalizedMessage());
+ Thread.currentThread().interrupt();
break;
}
LOG.error(AaiUiMsgs.QUERY_AAI_RETRY_FAILURE_WITH_SEQ, url, String.valueOf(retryCount + 1));
Thread.sleep(50);
} catch (InterruptedException exc) {
LOG.error(AaiUiMsgs.QUERY_AAI_WAIT_INTERRUPTION, exc.getLocalizedMessage());
+ Thread.currentThread().interrupt();
break;
}
LOG.error(AaiUiMsgs.QUERY_AAI_RETRY_FAILURE_WITH_SEQ, url, String.valueOf(retryCount + 1));
} catch (InterruptedException exc) {
LOG.error(AaiUiMsgs.ERROR_GENERIC,
"An error occurred while waiting for sync to complete. Error = " + exc.getMessage());
+ Thread.currentThread().interrupt();
}
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
// exit out of the sync-wait-loop
break;
}
Thread.sleep(10);
} catch (InterruptedException exc) {
LOG.error(AaiUiMsgs.PROCESSING_LOOP_INTERUPTED, exc.getMessage());
+ Thread.currentThread().interrupt();
return;
}
Thread.sleep(10);
} catch (InterruptedException exc) {
LOG.error(AaiUiMsgs.PROCESSING_LOOP_INTERUPTED, exc.getMessage());
+ Thread.currentThread().interrupt();
return;
}