Class GitStorage
- java.lang.Object
-
- org.wildfly.prospero.installation.git.GitStorage
-
- All Implemented Interfaces:
AutoCloseable
public class GitStorage extends Object implements AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static StringGIT_HISTORY_USER
-
Constructor Summary
Constructors Constructor Description GitStorage(Path base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()List<ArtifactChange>getArtifactChanges(SavedState savedState)List<ChannelChange>getChannelChanges(SavedState savedState)List<FeatureChange>getFeatureChanges(SavedState latestState)List<SavedState>getRevisions()booleanisStarted()voidrecord()voidrecordChange(SavedState.Type operation)voidrecordChange(SavedState.Type operation, String... files)voidrecordConfigChange()voidreset()Pathrevert(SavedState savedState)
-
-
-
Field Detail
-
GIT_HISTORY_USER
public static final String GIT_HISTORY_USER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GitStorage
public GitStorage(Path base) throws MetadataException
- Throws:
MetadataException
-
-
Method Detail
-
getRevisions
public List<SavedState> getRevisions() throws MetadataException
- Throws:
MetadataException
-
record
public void record() throws MetadataException- Throws:
MetadataException
-
recordChange
public void recordChange(SavedState.Type operation) throws MetadataException
- Throws:
MetadataException
-
recordChange
public void recordChange(SavedState.Type operation, String... files) throws MetadataException
- Throws:
MetadataException
-
recordConfigChange
public void recordConfigChange() throws MetadataException- Throws:
MetadataException
-
revert
public Path revert(SavedState savedState) throws MetadataException
- Throws:
MetadataException
-
reset
public void reset() throws MetadataException- Throws:
MetadataException
-
getArtifactChanges
public List<ArtifactChange> getArtifactChanges(SavedState savedState) throws MetadataException
- Throws:
MetadataException
-
getChannelChanges
public List<ChannelChange> getChannelChanges(SavedState savedState) throws MetadataException
- Throws:
MetadataException
-
getFeatureChanges
public List<FeatureChange> getFeatureChanges(SavedState latestState) throws MetadataException
- Throws:
MetadataException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
isStarted
public boolean isStarted() throws IOException- Throws:
IOException
-
-