Split Withdrawing class into two classes WithdrawCoordinating and Withdrawing
Resolve ONOS-992
- Rename Coordinating to InstallCoordinating for naming consistency
- Add Javadoc to newly added/modified classes
- Rename uninstallIntent() to uninstallCoordinate() in IntentManager
- Rename coordinate() to installCoordinate() in IntentManager
Change-Id: I226592d96cfd8caf248addab2db0d28803c7ca12
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/WithdrawRequest.java b/core/net/src/main/java/org/onosproject/net/intent/impl/WithdrawRequest.java
index 1a2da58..f58a7a8 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/WithdrawRequest.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/WithdrawRequest.java
@@ -21,6 +21,9 @@
import static com.google.common.base.Preconditions.checkNotNull;
+/**
+ * Represents a phase of requesting a withdraw of an intent.
+ */
class WithdrawRequest implements IntentUpdate {
// TODO: define an interface and use it, instead of IntentManager
@@ -39,6 +42,6 @@
//TODO perhaps we want to validate that the pending and current are the
// same version i.e. they are the same
// Note: this call is not just the symmetric version of submit
- return Optional.of(new Withdrawing(intentManager, pending, current));
+ return Optional.of(new WithdrawCoordinating(intentManager, pending, current));
}
}