Package org.wildfly.prospero.spi
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 Classes Modifier and Type Class Description protected static classProsperoInstallationManager.ActionFactory
-
Constructor Summary
Constructors Modifier Constructor Description ProsperoInstallationManager(Path installationDir, org.wildfly.installationmanager.MavenOptions mavenOptions)protectedProsperoInstallationManager(ProsperoInstallationManager.ActionFactory actionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChannel(org.wildfly.installationmanager.Channel channel)voidchangeChannel(org.wildfly.installationmanager.Channel newChannel)PathcreateSnapshot(Path targetPath)List<org.wildfly.installationmanager.ArtifactChange>findUpdates(List<org.wildfly.installationmanager.Repository> repositories)StringgenerateApplyRevertCommand(Path scriptHome, Path candidatePath)StringgenerateApplyRevertCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell)StringgenerateApplyUpdateCommand(Path scriptHome, Path candidatePath)StringgenerateApplyUpdateCommand(Path scriptHome, Path candidatePath, org.wildfly.installationmanager.spi.OsShell shell)Collection<org.wildfly.installationmanager.ManifestVersion>getInstalledVersions()List<org.wildfly.installationmanager.HistoryResult>history()Collection<org.wildfly.installationmanager.Channel>listChannels()voidprepareRevert(String revision, Path targetDir, List<org.wildfly.installationmanager.Repository> repositories)booleanprepareUpdate(Path targetDir, List<org.wildfly.installationmanager.Repository> repositories)voidremoveChannel(String channelName)org.wildfly.installationmanager.InstallationChangesrevisionDetails(String revision)
-
-
-
Constructor Detail
-
ProsperoInstallationManager
public ProsperoInstallationManager(Path installationDir, org.wildfly.installationmanager.MavenOptions mavenOptions) throws Exception
- Throws:
Exception
-
ProsperoInstallationManager
protected ProsperoInstallationManager(ProsperoInstallationManager.ActionFactory actionFactory)
-
-
Method Detail
-
history
public List<org.wildfly.installationmanager.HistoryResult> history() throws Exception
- Specified by:
historyin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
revisionDetails
public org.wildfly.installationmanager.InstallationChanges revisionDetails(String revision) throws MetadataException
- Specified by:
revisionDetailsin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
MetadataException
-
prepareRevert
public void prepareRevert(String revision, Path targetDir, List<org.wildfly.installationmanager.Repository> repositories) throws Exception
- Specified by:
prepareRevertin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
prepareUpdate
public boolean prepareUpdate(Path targetDir, List<org.wildfly.installationmanager.Repository> repositories) throws Exception
- Specified by:
prepareUpdatein interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
findUpdates
public List<org.wildfly.installationmanager.ArtifactChange> findUpdates(List<org.wildfly.installationmanager.Repository> repositories) throws Exception
- Specified by:
findUpdatesin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
listChannels
public Collection<org.wildfly.installationmanager.Channel> listChannels() throws OperationException
- Specified by:
listChannelsin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
OperationException
-
removeChannel
public void removeChannel(String channelName) throws OperationException
- Specified by:
removeChannelin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
OperationException
-
addChannel
public void addChannel(org.wildfly.installationmanager.Channel channel) throws OperationException- 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
public Path createSnapshot(Path targetPath) throws Exception
- Specified by:
createSnapshotin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
Exception
-
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
-
getInstalledVersions
public Collection<org.wildfly.installationmanager.ManifestVersion> getInstalledVersions() throws MetadataException
- Specified by:
getInstalledVersionsin interfaceorg.wildfly.installationmanager.spi.InstallationManager- Throws:
MetadataException
-
-