Change-Id: I8b9274e05ae0c5885455ae303819748f8bf7949e
Issue-ID: HOLMES-86
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
try {
vmEntity = aaiQuery.getAaiVmData(rootSourceId, rootSourceName);
} catch (CorrelationException e) {
try {
vmEntity = aaiQuery.getAaiVmData(rootSourceId, rootSourceName);
} catch (CorrelationException e) {
- log.error("Failed to get vm data", e.getMessage());
+ log.error("Failed to get the VM data.", e);
*/
package org.onap.holmes.common.dcae;
*/
package org.onap.holmes.common.dcae;
+import lombok.extern.slf4j.Slf4j;
import org.onap.holmes.common.dcae.entity.DcaeConfigurations;
import org.onap.holmes.common.dcae.entity.SecurityInfo;
import org.onap.holmes.common.dcae.entity.DcaeConfigurations;
import org.onap.holmes.common.dcae.entity.SecurityInfo;
public class DcaeConfigurationsCache {
private static DcaeConfigurations dcaeConfigurations = new DcaeConfigurations();
public class DcaeConfigurationsCache {
private static DcaeConfigurations dcaeConfigurations = new DcaeConfigurations();
publisher.publish(policyMsg);
log.info("send policyMsg: " + JacksonUtil.beanToJson(policyMsg));
} catch (CorrelationException e) {
publisher.publish(policyMsg);
log.info("send policyMsg: " + JacksonUtil.beanToJson(policyMsg));
} catch (CorrelationException e) {
- log.error("Failed to publish policyMsg to dmaap", e.getMessage());
+ log.error("Failed to publish the control loop event to DMaaP", e);
} catch (JsonProcessingException e) {
} catch (JsonProcessingException e) {
- log.info("Failed to convert policyMsg to json");
+ log.info("Failed to convert the control loop event to json");
} catch (NullPointerException e) {
} catch (NullPointerException e) {
- log.error("DMaaP configurations does not exist!");
+ log.error("DMaaP configurations do not exist!");
try {
vnfEntity = aaiQuery.getAaiVnfData(vnfId, vnfName);
} catch (CorrelationException e) {
try {
vnfEntity = aaiQuery.getAaiVnfData(vnfId, vnfName);
} catch (CorrelationException e) {
- log.error("Failed to get vnf data", e.getMessage());
+ log.error("Failed to get the VNF data.", e);
try {
vmEntity = aaiQuery.getAaiVmData(sourceId, sourceName);
} catch (CorrelationException e) {
try {
vmEntity = aaiQuery.getAaiVmData(sourceId, sourceName);
} catch (CorrelationException e) {
- log.error("Failed to get vm data", e.getMessage());
+ log.error("Failed to get the VM data.", e);
messageProducer.send(message);\r
session.commit();\r
} catch (Exception e) {\r
messageProducer.send(message);\r
session.commit();\r
} catch (Exception e) {\r
- log.error("Failed send correlation." + e.getMessage(), e);\r
+ log.error("Failed send correlation. " + e.getMessage(), e);\r
} finally {\r
if (connection != null) {\r
try {\r
connection.close();\r
} catch (JMSException e) {\r
} finally {\r
if (connection != null) {\r
try {\r
connection.close();\r
} catch (JMSException e) {\r
- log.error("Failed close connection." + e.getMessage(), e);\r
+ log.error("Failed close connection. " + e.getMessage(), e);\r
connectionManager = new PoolingHttpClientConnectionManager(registry);
connectionManager.setMaxTotal(200);
} catch (Exception e) {
connectionManager = new PoolingHttpClientConnectionManager(registry);
connectionManager.setMaxTotal(200);
} catch (Exception e) {
- log.error("Failed to initialize the ssl builder: " + e.getMessage());
+ log.error("Failed to initialize the ssl builder: " + e.getMessage(), e);