These classes should be serializable in order to remove the sonar critical.
Also clearing unused import/code messages.
Issue-ID: POLICY-115
Change-Id: I25e504f6edae9fb38080e7d4d33b2b3e4cde4637
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
import java.util.List;
import org.onap.policy.controlloop.VirtualControlLoopEvent;
-import org.onap.policy.controlloop.actor.appclcm.AppcLcmActorServiceProvider;
import org.onap.policy.appc.CommonHeader;
import org.onap.policy.appc.Request;
import org.onap.policy.controlloop.ControlLoopOperation;
* specified in the yaml, the target vnf-id is retrieved by
* a named query to A&AI.
*/
- String resourceId = policy.getTarget().getResourceID();
- String sourceVnfId = onset.AAI.get("generic-vnf.vnf-id");
- String vnfId = "test"; //AppcLcmActorServiceProvider.vnfNamedQuery(resourceId, sourceVnfId);
+ String vnfId = "test";
/*
* For now Policy generates the PG Streams as a demo, in the
package org.onap.policy.aai.AAINQF199;
+import java.io.Serializable;
+
import com.google.gson.annotations.SerializedName;
-public class AAINQF199VServer {
+public class AAINQF199VServer implements Serializable {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -6718526692734215643L;
@SerializedName("vserver-id")
public String vserverId;
package org.onap.policy.aai;
import java.util.List;
+import java.io.Serializable;
import java.util.LinkedList;
import com.google.gson.annotations.SerializedName;
-public class RelationshipList {
+public class RelationshipList implements Serializable {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -1769880386474240406L;
@SerializedName("relationship")
public List<RelationshipItem> relationship = new LinkedList<RelationshipItem>();