VNFM adapter handle getOperation after VNF delete
[so.git] / adapters / mso-vnfm-adapter / mso-vnfm-etsi-adapter / src / main / java / org / onap / so / adapters / vnfmadapter / jobmanagement / VnfmOperation.java
index 7ce08df..3bfe48a 100644 (file)
@@ -28,6 +28,7 @@ public class VnfmOperation {
     private final String vnfmId;
     private final String operationId;
     private NotificationStatus notificationStatus;
+    private boolean vnfDeleted;
 
     public VnfmOperation(final String vnfmId, final String operationId, final boolean waitForNotificationForSuccess) {
         this.vnfmId = vnfmId;
@@ -75,6 +76,23 @@ public class VnfmOperation {
         return notificationStatus;
     }
 
+    /**
+     * Set the VNF has been deleted from the VNFM.
+     */
+    public void setVnfDeleted() {
+        this.vnfDeleted = true;
+    }
+
+    /**
+     * Check if the VNF has been deleted from the VNFM
+     *
+     * @return <code>true</code> of the VNF has been deleted from the VNFM, <code>false</code> otherwise
+     */
+    public boolean isVnfDeleted() {
+        return vnfDeleted;
+    }
+
+
     public enum NotificationStatus {
         /**
          * No notification handling is required to determine the status of the operation