Package org.wildfly.prospero.actions
Class UpdateAction
- java.lang.Object
-
- org.wildfly.prospero.actions.UpdateAction
-
- All Implemented Interfaces:
AutoCloseable
public class UpdateAction extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description UpdateAction(Path installDir, MavenOptions mavenOptions, Console console, List<org.wildfly.channel.Repository> overrideRepositories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbuildUpdate(Path targetDir)builds an update candidate forinstallDir.voidclose()UpdateSetfindUpdates()generate a list of updates that can be applied to server atinstallDir.List<FileConflict>performUpdate()performs a full in-place update ofinstallDir.
-
-
-
Constructor Detail
-
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 Detail
-
performUpdate
public List<FileConflict> performUpdate() throws OperationException, org.jboss.galleon.ProvisioningException
performs 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
public UpdateSet findUpdates() throws OperationException, org.jboss.galleon.ProvisioningException
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
-
-