Package org.onosproject.net.intent
Class IntentOperationContext<T extends Intent>
- java.lang.Object
-
- org.onosproject.net.intent.IntentOperationContext<T>
-
-
Constructor Summary
Constructors Constructor Description IntentOperationContext(List<T> intentsToUninstall, List<T> intentsToInstall, IntentInstallationContext intentInstallationContext)Creates an operation context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()IntentInstallationContextintentInstallationContext()Retrieves high level Intent installation information.List<T>intentsToInstall()Retrieves installable Intents to install.List<T>intentsToUninstall()Retrieves installable Intents to uninstall.Optional<IntentData>toInstall()Retrieves high level Intent data to install.Optional<IntentData>toUninstall()Retrieves high level Intent data to uninstall.
-
-
-
Constructor Detail
-
IntentOperationContext
public IntentOperationContext(List<T> intentsToUninstall, List<T> intentsToInstall, IntentInstallationContext intentInstallationContext)
Creates an operation context.- Parameters:
intentsToUninstall- the Intents to uninstallintentsToInstall- the Intents to installintentInstallationContext- the high level Intent installation information
-
-
Method Detail
-
intentsToUninstall
public List<T> intentsToUninstall()
Retrieves installable Intents to uninstall.- Returns:
- the Intents to uninstall
-
intentsToInstall
public List<T> intentsToInstall()
Retrieves installable Intents to install.- Returns:
- the Intents to install
-
intentInstallationContext
public IntentInstallationContext intentInstallationContext()
Retrieves high level Intent installation information.- Returns:
- the high level Intent installation information
-
toUninstall
public Optional<IntentData> toUninstall()
Retrieves high level Intent data to uninstall.- Returns:
- high level Intent data to uninstall
-
toInstall
public Optional<IntentData> toInstall()
Retrieves high level Intent data to install.- Returns:
- high level Intent data to install
-
-