Update the license for 2017-2018 license
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / tasks / ScheduledTasks.java
index 9d2e8b6..04fffc8 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * org.onap.aai
  * ================================================================================
- * Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  * ============LICENSE_END=========================================================
- *
- * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  */
 package org.onap.aai.tasks;
 
@@ -32,6 +30,7 @@ import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
 import org.onap.aai.logging.LoggingContext;
+import org.onap.aai.logging.LoggingContext.StatusCode;
 import org.onap.aai.util.AAIConfig;
 import org.onap.aai.util.AAIConstants;
 import com.att.eelf.configuration.EELFLogger;
@@ -57,9 +56,15 @@ public class ScheduledTasks {
        public void loadAAIProperties() {
                final UUID transId = UUID.randomUUID();
 
+               LoggingContext.init();
                LoggingContext.requestId(transId);
                LoggingContext.partnerName(FROM_APP_ID);
                LoggingContext.component(COMPONENT);
+               LoggingContext.targetEntity("AAI");
+               LoggingContext.targetServiceName("loadAAIProperties");
+               LoggingContext.serviceName("AAI");
+               LoggingContext.statusCode(StatusCode.COMPLETE);
+               LoggingContext.responseCode(LoggingContext.SUCCESS);
 
                String dir = FilenameUtils.getFullPathNoEndSeparator(GlobalPropFileName);
                if (dir == null || dir.length() < 3) {
@@ -82,7 +87,7 @@ public class ScheduledTasks {
                                long curTSTm = curTS.getTime();
                                if (curTSTm - lastModTm < PROPERTY_READ_INTERVAL + 1000) {
                                        AAIConfig.reloadConfig();
-                                       LOGGER.info("reloaded from aaiconfig.properties");
+                                       LOGGER.debug("reloaded from aaiconfig.properties");
                                }
                                break;
                        }