aboutsummaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/vfc/src/main/java
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-01-10 09:57:51 -0500
committerJim Hahn <jrh3@att.com>2019-01-10 11:12:49 -0500
commit485559b57a49a449c6fc3baeda1b0ffd8b05cf6b (patch)
tree22dfb08b040c8485f589c59d9260597f773616ab /controlloop/common/model-impl/vfc/src/main/java
parentbdc051bb70262daca12cd0c2e5fcc6bcf795996c (diff)
Remove model-impl/vfc checkstyle suppressions
Entails renaming VFCxxx classes and updated drl files, as well. Change-Id: Ib31c61a35536df22772de6090761b22beb1b561b Issue-ID: POLICY-1145 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'controlloop/common/model-impl/vfc/src/main/java')
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealActionVmInfo.java (renamed from controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealActionVmInfo.java)8
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealAdditionalParams.java (renamed from controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealAdditionalParams.java)14
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealRequest.java (renamed from controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealRequest.java)14
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcManager.java (renamed from controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java)34
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcRequest.java (renamed from controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCRequest.java)18
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponse.java (renamed from controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponse.java)14
-rw-r--r--controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponseDescriptor.java (renamed from controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java)14
7 files changed, 58 insertions, 58 deletions
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealActionVmInfo.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealActionVmInfo.java
index 0286a7d8b..c154f7226 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealActionVmInfo.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealActionVmInfo.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2017 Intel Corp. All rights reserved.
- * Modifications Copyright (C) 2018 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019 AT&T Corporation. 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.
@@ -23,7 +23,7 @@ import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
-public class VFCHealActionVmInfo implements Serializable {
+public class VfcHealActionVmInfo implements Serializable {
private static final long serialVersionUID = 3208673205100673119L;
@@ -33,8 +33,8 @@ public class VFCHealActionVmInfo implements Serializable {
@SerializedName("vmname")
private String vmname;
- public VFCHealActionVmInfo() {
- // Default constructor for VFCHealActionVmInfo
+ public VfcHealActionVmInfo() {
+ // Default constructor
}
public String getVmid() {
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealAdditionalParams.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealAdditionalParams.java
index 393e3761f..2c5de3a22 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealAdditionalParams.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealAdditionalParams.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2017 Intel Corp. All rights reserved.
- * Modifications Copyright (C) 2018 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019 AT&T Corporation. 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.
@@ -23,7 +23,7 @@ import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
-public class VFCHealAdditionalParams implements Serializable {
+public class VfcHealAdditionalParams implements Serializable {
private static final long serialVersionUID = 2656694137285096191L;
@@ -31,10 +31,10 @@ public class VFCHealAdditionalParams implements Serializable {
private String action;
@SerializedName("actionvminfo")
- private VFCHealActionVmInfo actionInfo;
+ private VfcHealActionVmInfo actionInfo;
- public VFCHealAdditionalParams() {
- // Default constructor for VFCHealAdditionalParams
+ public VfcHealAdditionalParams() {
+ // Default constructor
}
public String getAction() {
@@ -45,11 +45,11 @@ public class VFCHealAdditionalParams implements Serializable {
this.action = action;
}
- public VFCHealActionVmInfo getActionInfo() {
+ public VfcHealActionVmInfo getActionInfo() {
return actionInfo;
}
- public void setActionInfo(VFCHealActionVmInfo actionInfo) {
+ public void setActionInfo(VfcHealActionVmInfo actionInfo) {
this.actionInfo = actionInfo;
}
}
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealRequest.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealRequest.java
index 75b9566b1..55ca4ac5c 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCHealRequest.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcHealRequest.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2017 Intel Corp. All rights reserved.
- * Modifications Copyright (C) 2018 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019 AT&T Corporation. 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.
@@ -23,7 +23,7 @@ import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
-public class VFCHealRequest implements Serializable {
+public class VfcHealRequest implements Serializable {
private static final long serialVersionUID = -7341931593089709247L;
@@ -34,10 +34,10 @@ public class VFCHealRequest implements Serializable {
private String cause;
@SerializedName("additionalParams")
- private VFCHealAdditionalParams additionalParams;
+ private VfcHealAdditionalParams additionalParams;
- public VFCHealRequest() {
- // Default constructor for VFCHealRequest
+ public VfcHealRequest() {
+ // Default constructor
}
public String getVnfInstanceId() {
@@ -56,11 +56,11 @@ public class VFCHealRequest implements Serializable {
this.cause = cause;
}
- public VFCHealAdditionalParams getAdditionalParams() {
+ public VfcHealAdditionalParams getAdditionalParams() {
return additionalParams;
}
- public void setAdditionalParams(VFCHealAdditionalParams additionalParams) {
+ public void setAdditionalParams(VfcHealAdditionalParams additionalParams) {
this.additionalParams = additionalParams;
}
}
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcManager.java
index d84d0403f..2a004bd04 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcManager.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2017-2018 Intel Corp, AT&T. All rights reserved.
- * Modifications Copyright (C) 2018 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019 AT&T Corporation. 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.
@@ -32,15 +32,15 @@ import org.onap.policy.vfc.util.Serialization;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public final class VFCManager implements Runnable {
+public final class VfcManager implements Runnable {
private static final String SYSTEM_LS = System.lineSeparator();
private String vfcUrlBase;
private String username;
private String password;
- private VFCRequest vfcRequest;
+ private VfcRequest vfcRequest;
private WorkingMemory workingMem;
- private static final Logger logger = LoggerFactory.getLogger(VFCManager.class);
+ private static final Logger logger = LoggerFactory.getLogger(VfcManager.class);
private static final Logger netLogger =
LoggerFactory.getLogger(org.onap.policy.common.endpoints.event.comm.Topic.NETWORK_LOGGER);
@@ -53,10 +53,10 @@ public final class VFCManager implements Runnable {
* @param wm Drools working memory
* @param request request
*/
- public VFCManager(WorkingMemory wm, VFCRequest request) {
+ public VfcManager(WorkingMemory wm, VfcRequest request) {
if (wm == null || request == null) {
throw new IllegalArgumentException(
- "the parameters \"wm\" and \"request\" on the VFCManager constructor may not be null");
+ "the parameters \"wm\" and \"request\" on the VfcManager constructor may not be null");
}
workingMem = wm;
vfcRequest = request;
@@ -64,7 +64,7 @@ public final class VFCManager implements Runnable {
restManager = new RESTManager();
// use getPEManagerEnvProperty() for required properties; others are optional
- setVFCParams(getPEManagerEnvProperty("vfc.url"), PolicyEngine.manager.getEnvironmentProperty("vfc.username"),
+ setVfcParams(getPeManagerEnvProperty("vfc.url"), PolicyEngine.manager.getEnvironmentProperty("vfc.username"),
PolicyEngine.manager.getEnvironmentProperty("vfc.password"));
}
@@ -75,7 +75,7 @@ public final class VFCManager implements Runnable {
* @param name username
* @param pwd password
*/
- public void setVFCParams(String baseUrl, String name, String pwd) {
+ public void setVfcParams(String baseUrl, String name, String pwd) {
vfcUrlBase = baseUrl + "/api/nslcm/v1";
username = name;
password = pwd;
@@ -86,12 +86,12 @@ public final class VFCManager implements Runnable {
Map<String, String> headers = new HashMap<>();
Pair<Integer, String> httpDetails;
- VFCResponse responseError = new VFCResponse();
- responseError.setResponseDescriptor(new VFCResponseDescriptor());
+ VfcResponse responseError = new VfcResponse();
+ responseError.setResponseDescriptor(new VfcResponseDescriptor());
responseError.getResponseDescriptor().setStatus("error");
headers.put("Accept", "application/json");
- String vfcUrl = vfcUrlBase + "/ns/" + vfcRequest.getNSInstanceId() + "/heal";
+ String vfcUrl = vfcUrlBase + "/ns/" + vfcRequest.getNsInstanceId() + "/heal";
try {
String vfcRequestJson = Serialization.gsonPretty.toJson(vfcRequest);
netLogger.info("[OUT|{}|{}|]{}{}", "VFC", vfcUrl, SYSTEM_LS, vfcRequestJson);
@@ -114,7 +114,7 @@ public final class VFCManager implements Runnable {
}
try {
- VFCResponse response = Serialization.gsonPretty.fromJson(httpDetails.second, VFCResponse.class);
+ VfcResponse response = Serialization.gsonPretty.fromJson(httpDetails.second, VfcResponse.class);
netLogger.info("[IN|{}|{}|]{}{}", "VFC", vfcUrl, SYSTEM_LS, httpDetails.second);
String body = Serialization.gsonPretty.toJson(response);
logger.debug("Response to VFC Heal post:");
@@ -124,12 +124,12 @@ public final class VFCManager implements Runnable {
int attemptsLeft = 20;
String urlGet = vfcUrlBase + "/jobs/" + jobId;
- VFCResponse responseGet = null;
+ VfcResponse responseGet = null;
while (attemptsLeft-- > 0) {
netLogger.info("[OUT|{}|{}|]", "VFC", urlGet);
Pair<Integer, String> httpDetailsGet = restManager.get(urlGet, username, password, headers);
- responseGet = Serialization.gsonPretty.fromJson(httpDetailsGet.second, VFCResponse.class);
+ responseGet = Serialization.gsonPretty.fromJson(httpDetailsGet.second, VfcResponse.class);
netLogger.info("[IN|{}|{}|]{}{}", "VFC", urlGet, SYSTEM_LS, httpDetailsGet.second);
responseGet.setRequestId(vfcRequest.getRequestId().toString());
body = Serialization.gsonPretty.toJson(responseGet);
@@ -152,12 +152,12 @@ public final class VFCManager implements Runnable {
workingMem.insert(responseGet);
}
} catch (JsonSyntaxException e) {
- logger.error("Failed to deserialize into VFCResponse {}", e.getLocalizedMessage(), e);
+ logger.error("Failed to deserialize into VfcResponse {}", e.getLocalizedMessage(), e);
} catch (InterruptedException e) {
logger.error("Interrupted exception: {}", e.getLocalizedMessage(), e);
Thread.currentThread().interrupt();
} catch (Exception e) {
- logger.error("Unknown error deserializing into VFCResponse {}", e.getLocalizedMessage(), e);
+ logger.error("Unknown error deserializing into VfcResponse {}", e.getLocalizedMessage(), e);
}
}
@@ -178,7 +178,7 @@ public final class VFCManager implements Runnable {
* @return the property value
*/
- private String getPEManagerEnvProperty(String enginePropertyName) {
+ private String getPeManagerEnvProperty(String enginePropertyName) {
String enginePropertyValue = PolicyEngine.manager.getEnvironmentProperty(enginePropertyName);
if (enginePropertyValue == null) {
throw new IllegalArgumentException("The value of policy engine manager environment property \""
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCRequest.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcRequest.java
index cfcaf8039..c4473e7f1 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCRequest.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcRequest.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2017 Intel Corp. All rights reserved.
- * Modifications Copyright (C) 2018 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019 AT&T Corporation. 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.
@@ -24,7 +24,7 @@ import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.UUID;
-public class VFCRequest implements Serializable {
+public class VfcRequest implements Serializable {
private static final long serialVersionUID = 3736300970326332512L;
// These fields are not serialized and not part of JSON
@@ -32,17 +32,17 @@ public class VFCRequest implements Serializable {
private transient UUID requestId;
@SerializedName("healVnfData")
- private VFCHealRequest healRequest;
+ private VfcHealRequest healRequest;
- public VFCRequest() {
- // Default constructor for VFCRequest
+ public VfcRequest() {
+ // Default constructor
}
- public String getNSInstanceId() {
+ public String getNsInstanceId() {
return nsInstanceId;
}
- public void setNSInstanceId(String nsInstanceId) {
+ public void setNsInstanceId(String nsInstanceId) {
this.nsInstanceId = nsInstanceId;
}
@@ -54,11 +54,11 @@ public class VFCRequest implements Serializable {
this.requestId = requestId;
}
- public VFCHealRequest getHealRequest() {
+ public VfcHealRequest getHealRequest() {
return healRequest;
}
- public void setHealRequest(VFCHealRequest healRequest) {
+ public void setHealRequest(VfcHealRequest healRequest) {
this.healRequest = healRequest;
}
}
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponse.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponse.java
index 21e9472b7..2183be71b 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponse.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponse.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2017 Intel Corp. All rights reserved.
- * Modifications Copyright (C) 2018 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019 AT&T Corporation. 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.
@@ -23,7 +23,7 @@ import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
-public class VFCResponse implements Serializable {
+public class VfcResponse implements Serializable {
private static final long serialVersionUID = 9151443891238218455L;
@@ -31,12 +31,12 @@ public class VFCResponse implements Serializable {
private String jobId;
@SerializedName("responseDescriptor")
- private VFCResponseDescriptor responseDescriptor;
+ private VfcResponseDescriptor responseDescriptor;
private transient String requestId;
- public VFCResponse() {
- // Default constructor for VFCResponse
+ public VfcResponse() {
+ // Default constructor
}
public String getJobId() {
@@ -47,11 +47,11 @@ public class VFCResponse implements Serializable {
this.jobId = jobId;
}
- public VFCResponseDescriptor getResponseDescriptor() {
+ public VfcResponseDescriptor getResponseDescriptor() {
return responseDescriptor;
}
- public void setResponseDescriptor(VFCResponseDescriptor responseDescriptor) {
+ public void setResponseDescriptor(VfcResponseDescriptor responseDescriptor) {
this.responseDescriptor = responseDescriptor;
}
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponseDescriptor.java
index cdd4a39a9..147b937dc 100644
--- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCResponseDescriptor.java
+++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VfcResponseDescriptor.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2017 Intel Corp. All rights reserved.
- * Modifications Copyright (C) 2018 AT&T Corporation. All rights reserved.
+ * Modifications Copyright (C) 2018-2019 AT&T Corporation. 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.
@@ -24,7 +24,7 @@ import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
-public class VFCResponseDescriptor implements Serializable {
+public class VfcResponseDescriptor implements Serializable {
private static final long serialVersionUID = 6827782899144150158L;
@@ -44,10 +44,10 @@ public class VFCResponseDescriptor implements Serializable {
private String responseId;
@SerializedName("responseHistoryList")
- private List<VFCResponseDescriptor> responseHistoryList;
+ private List<VfcResponseDescriptor> responseHistoryList;
- public VFCResponseDescriptor() {
- // Default constructor for VFCResponseDescriptor
+ public VfcResponseDescriptor() {
+ // Default constructor
}
public String getStatus() {
@@ -86,11 +86,11 @@ public class VFCResponseDescriptor implements Serializable {
this.responseId = responseId;
}
- public List<VFCResponseDescriptor> getResponseHistoryList() {
+ public List<VfcResponseDescriptor> getResponseHistoryList() {
return responseHistoryList;
}
- public void setResponseHistoryList(List<VFCResponseDescriptor> responseHistoryList) {
+ public void setResponseHistoryList(List<VfcResponseDescriptor> responseHistoryList) {
this.responseHistoryList = responseHistoryList;
}