Class ProsperoInstallationManager
java.lang.Object
org.wildfly.prospero.spi.ProsperoInstallationManager
- All Implemented Interfaces:
org.wildfly.installationmanager.spi.InstallationManager
public class ProsperoInstallationManager
extends Object
implements org.wildfly.installationmanager.spi.InstallationManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Constructor Summary
ConstructorsModifierConstructorDescriptionProsperoInstallationManager(Path installationDir, org.wildfly.installationmanager.MavenOptions mavenOptions) protected -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChannel(org.wildfly.installationmanager.Channel channel) voidchangeChannel(org.wildfly.installationmanager.Channel newChannel) createSnapshot(Path targetPath) List<org.wildfly.installationmanager.AvailableManifestVersions> findAvailableManifestVersions(List<org.wildfly.installationmanager.Repository> repositories, boolean includeDowngrades) org.wildfly.installationmanager.InstallationUpdatesfindInstallationUpdates(List<org.wildfly.installationmanager.Repository> repositories) org.wildfly.installationmanager.InstallationUpdatesfindInstallationUpdates(List<org.wildfly.installationmanager.Repository> repositories, List<org.wildfly.installationmanager.ManifestVersion> manifestVersions) List<org.wildfly.installationmanager.ArtifactChange> findUpdates(List<org.wildfly.installationmanager.Repository> repositories) generateApplyRevertCommand(Path scriptHome, Path candidatePath) generateApplyRevertCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell) generateApplyRevertCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell, boolean noConflictsOnly) generateApplyUpdateCommand(Path scriptHome, Path candidatePath) generateApplyUpdateCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell) generateApplyUpdateCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell, boolean noConflictsOnly) Collection<org.wildfly.installationmanager.ManifestVersion> List<org.wildfly.installationmanager.HistoryResult> history()Collection<org.wildfly.installationmanager.Channel> voidprepareRevert(String revision, Path targetDir, List<org.wildfly.installationmanager.Repository> repositories) booleanprepareUpdate(Path candidatePath, List<org.wildfly.installationmanager.Repository> repositories) booleanprepareUpdate(Path targetDir, List<org.wildfly.installationmanager.Repository> repositories, boolean allowDowngrade) booleanprepareUpdate(Path targetDir, List<org.wildfly.installationmanager.Repository> repositories, List<org.wildfly.installationmanager.ManifestVersion> manifestVersions, boolean allowDowngrade) voidremoveChannel(String channelName) org.wildfly.installationmanager.InstallationChangesrevisionDetails(String revision) Collection<org.wildfly.installationmanager.FileConflict> verifyCandidate(Path candidatePath, org.wildfly.installationmanager.CandidateType candidateType)
-
Constructor Details
-
ProsperoInstallationManager
-
ProsperoInstallationManager
-
-
Method Details
-
history
-
revisionDetails
public org.wildfly.installationmanager.InstallationChanges revisionDetails(String revision) throws MetadataException - Specified by:
revisionDetailsin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
MetadataException
-
prepareRevert
-
prepareUpdate
-
prepareUpdate
-
prepareUpdate
public boolean prepareUpdate(Path targetDir, List<org.wildfly.installationmanager.Repository> repositories, List<org.wildfly.installationmanager.ManifestVersion> manifestVersions, boolean allowDowngrade) throws Exception - Specified by:
prepareUpdatein interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
verifyCandidate
public Collection<org.wildfly.installationmanager.FileConflict> verifyCandidate(Path candidatePath, org.wildfly.installationmanager.CandidateType candidateType) throws Exception - Specified by:
verifyCandidatein interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
findUpdates
-
findInstallationUpdates
-
findInstallationUpdates
public org.wildfly.installationmanager.InstallationUpdates findInstallationUpdates(List<org.wildfly.installationmanager.Repository> repositories, List<org.wildfly.installationmanager.ManifestVersion> manifestVersions) throws Exception - Specified by:
findInstallationUpdatesin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
findAvailableManifestVersions
public List<org.wildfly.installationmanager.AvailableManifestVersions> findAvailableManifestVersions(List<org.wildfly.installationmanager.Repository> repositories, boolean includeDowngrades) throws Exception - Specified by:
findAvailableManifestVersionsin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
listChannels
- Specified by:
listChannelsin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
OperationException
-
removeChannel
- Specified by:
removeChannelin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
OperationException
-
addChannel
- Specified by:
addChannelin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
OperationException
-
changeChannel
public void changeChannel(org.wildfly.installationmanager.Channel newChannel) throws OperationException - Specified by:
changeChannelin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
OperationException
-
createSnapshot
-
generateApplyUpdateCommand
public String generateApplyUpdateCommand(Path scriptHome, Path candidatePath) throws org.wildfly.installationmanager.OperationNotAvailableException - Specified by:
generateApplyUpdateCommandin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
org.wildfly.installationmanager.OperationNotAvailableException
-
generateApplyRevertCommand
public String generateApplyRevertCommand(Path scriptHome, Path candidatePath) throws org.wildfly.installationmanager.OperationNotAvailableException - Specified by:
generateApplyRevertCommandin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
org.wildfly.installationmanager.OperationNotAvailableException
-
generateApplyUpdateCommand
public String generateApplyUpdateCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell) throws org.wildfly.installationmanager.OperationNotAvailableException - Specified by:
generateApplyUpdateCommandin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
org.wildfly.installationmanager.OperationNotAvailableException
-
generateApplyRevertCommand
public String generateApplyRevertCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell) throws org.wildfly.installationmanager.OperationNotAvailableException - Specified by:
generateApplyRevertCommandin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
org.wildfly.installationmanager.OperationNotAvailableException
-
generateApplyUpdateCommand
public String generateApplyUpdateCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell, boolean noConflictsOnly) throws org.wildfly.installationmanager.OperationNotAvailableException - Specified by:
generateApplyUpdateCommandin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
org.wildfly.installationmanager.OperationNotAvailableException
-
generateApplyRevertCommand
public String generateApplyRevertCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell, boolean noConflictsOnly) throws org.wildfly.installationmanager.OperationNotAvailableException - Specified by:
generateApplyRevertCommandin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
org.wildfly.installationmanager.OperationNotAvailableException
-
getInstalledVersions
public Collection<org.wildfly.installationmanager.ManifestVersion> getInstalledVersions() throws MetadataException- Specified by:
getInstalledVersionsin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
MetadataException
-