Package org.wildfly.prospero.actions
Class UpdateAction
java.lang.Object
org.wildfly.prospero.actions.UpdateAction
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateAction(Path installDir, MavenOptions mavenOptions, Console console, List<org.wildfly.channel.Repository> overrideRepositories) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbuildUpdate(Path targetDir) builds an update candidate forinstallDir.voidclose()generate a list of updates that can be applied to server atinstallDir.performs a full in-place update ofinstallDir.
-
Constructor Details
-
UpdateAction
public UpdateAction(Path installDir, MavenOptions mavenOptions, Console console, List<org.wildfly.channel.Repository> overrideRepositories) throws OperationException, org.jboss.galleon.ProvisioningException - Throws:
OperationExceptionorg.jboss.galleon.ProvisioningException
-
-
Method Details
-
performUpdate
public List<FileConflict> performUpdate() throws OperationException, org.jboss.galleon.ProvisioningExceptionperforms a full in-place update ofinstallDir.- Returns:
- list of conflicts if any found during update.
- Throws:
OperationExceptionorg.jboss.galleon.ProvisioningException
-
buildUpdate
public boolean buildUpdate(Path targetDir) throws org.jboss.galleon.ProvisioningException, OperationException builds an update candidate forinstallDir. The candidate is placed intargetDir. The candidate is only built if there are- Parameters:
targetDir- path where the update candidate should be placed.- Returns:
- true if the candidate was created, false if no updates were found.
- Throws:
org.jboss.galleon.ProvisioningExceptionOperationException
-
findUpdates
generate a list of updates that can be applied to server atinstallDir.- Returns:
- Throws:
OperationExceptionorg.jboss.galleon.ProvisioningException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-