* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2018-2019 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.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package org.onap.policy.drools.apps.controlloop.feature.amsterdam;
-import org.onap.policy.drools.features.PolicyEngineFeatureAPI;
+import org.onap.policy.drools.features.PolicyEngineFeatureApi;
/**
* Amsterdam installation as a feature saves time
* functionality
*
*/
-public class AmsterdamFeature implements PolicyEngineFeatureAPI {
+public class AmsterdamFeature implements PolicyEngineFeatureApi {
public static final int SEQNO = 1000;
import java.util.stream.Stream;
import org.onap.policy.controlloop.params.ControlLoopParams;
-import org.onap.policy.drools.features.PolicyEngineFeatureAPI;
+import org.onap.policy.drools.features.PolicyEngineFeatureApi;
import org.onap.policy.drools.system.PolicyController;
/**
* Control Loop Management Feature.
*/
-public class ControlLoopManagementFeature implements PolicyEngineFeatureAPI {
+public class ControlLoopManagementFeature implements PolicyEngineFeatureApi {
private static final String FEATURE_NAME = "controlloop-management";
private static final int SEQNO = 1000;
import org.onap.policy.controlloop.VirtualControlLoopNotification;
import org.onap.policy.drools.persistence.SystemPersistence;
import org.onap.policy.drools.system.PolicyController;
-import org.onap.policy.drools.utils.logging.MDCTransaction;
+import org.onap.policy.drools.utils.logging.MdcTransaction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
}
protected void evicted(VirtualControlLoopNotification notification) {
- MDCTransaction
+ MdcTransaction
.newTransaction(notification.getRequestId().toString(), notification.getFrom())
.setServiceName(notification.getClosedLoopControlName()).setTargetEntity(notification.getTarget())
.setStartTime(notification.getNotificationTime().toInstant()).setEndTime(Instant.now())
}
protected void metric(VirtualControlLoopNotification notification) {
- MDCTransaction trans = MDCTransaction
+ MdcTransaction trans = MdcTransaction
.newTransaction(notification.getRequestId().toString(), notification.getFrom())
.setServiceName(notification.getClosedLoopControlName()).setTargetEntity(notification.getTarget());
}
}
- private void metricOperation(MDCTransaction trans, List<ControlLoopOperation> operations) {
+ private void metricOperation(MdcTransaction trans, List<ControlLoopOperation> operations) {
trans.setStatusCode(true);
if (!operations.isEmpty()) {
ControlLoopOperation operation = operations.get(operations.size() - 1);
trans.metric().resetTransaction();
}
- protected void operation(MDCTransaction trans, List<ControlLoopOperation> operations) {
+ protected void operation(MdcTransaction trans, List<ControlLoopOperation> operations) {
if (!operations.isEmpty()) {
ControlLoopOperation operation = operations.get(operations.size() - 1);
}
protected void transaction(VirtualControlLoopNotification notification, ZonedDateTime startTime) {
- MDCTransaction trans = MDCTransaction
+ MdcTransaction trans = MdcTransaction
.newTransaction(notification.getRequestId().toString(), notification.getFrom())
.setServiceName(notification.getClosedLoopControlName()).setTargetEntity(notification.getTarget())
.setStartTime(startTime.toInstant()).setEndTime(notification.getNotificationTime().toInstant())
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2018-2019 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.
import org.onap.policy.common.endpoints.event.comm.Topic.CommInfrastructure;
import org.onap.policy.controlloop.VirtualControlLoopNotification;
-import org.onap.policy.drools.features.PolicyControllerFeatureAPI;
+import org.onap.policy.drools.features.PolicyControllerFeatureApi;
import org.onap.policy.drools.system.PolicyController;
/**
* Feature that tracks Transactions by observing Notification Patterns.
*/
-public class ControlLoopMetricsFeature implements PolicyControllerFeatureAPI {
+public class ControlLoopMetricsFeature implements PolicyControllerFeatureApi {
/**
* Feature Sequence Priority.
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 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.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
package org.onap.policy.drools.apps.controlloop.feature.usecases;
-import org.onap.policy.drools.features.PolicyEngineFeatureAPI;
+import org.onap.policy.drools.features.PolicyEngineFeatureApi;
/**
* Usecases installation as a feature saves time
* functionality
*
*/
-public class UsecasesFeature implements PolicyEngineFeatureAPI {
+public class UsecasesFeature implements PolicyEngineFeatureApi {
public static final int SEQNO = 1000;
* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 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.
package org.onap.policy.drools.apps.controlloop.feature.utils;
import java.io.IOException;
-
-import org.onap.policy.drools.features.PolicyEngineFeatureAPI;
+import org.onap.policy.drools.features.PolicyEngineFeatureApi;
import org.onap.policy.drools.system.PolicyEngine;
import org.onap.policy.simulators.Util;
import org.slf4j.Logger;
* and VFC.
*
*/
-public class ControlLoopUtilsFeature implements PolicyEngineFeatureAPI {
+public class ControlLoopUtilsFeature implements PolicyEngineFeatureApi {
private static Logger logger = LoggerFactory.getLogger(ControlLoopUtilsFeature.class);