Package org.onosproject.net.behaviour
Interface SoftwareUpgrade
-
- All Superinterfaces:
Behaviour,HandlerBehaviour
@Beta public interface SoftwareUpgrade extends HandlerBehaviour
Behaviour that upgrades the software on a device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSoftwareUpgrade.StatusCompletion status of upgrade.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanconfigureUri(URI uri)Configures the uri from where the upgrade will be pulled.CompletableFuture<SoftwareUpgrade.Status>upgrade()Performs an upgrade.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
configureUri
boolean configureUri(URI uri)
Configures the uri from where the upgrade will be pulled.- Parameters:
uri- uri of the software upgrade location- Returns:
- boolean true if the uri was properly configured
-
upgrade
CompletableFuture<SoftwareUpgrade.Status> upgrade()
Performs an upgrade.- Returns:
- A future that will be completed when the upgrade completes
-
-