public class SnapshotRecorder
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected SourceCodeProvider |
sourceCodeProvider |
| Constructor and Description |
|---|
SnapshotRecorder(SourceCodeProvider sourceCodeProvider,
int keySnapshotPacing) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commitAllChanges() |
org.eclipse.jgit.api.Git |
getGit() |
java.nio.file.Path |
getGitDirectory() |
void |
init() |
void |
syncToGitDirectory() |
Snapshot |
takeSnapshot() |
protected final SourceCodeProvider sourceCodeProvider
public SnapshotRecorder(SourceCodeProvider sourceCodeProvider, int keySnapshotPacing)
public void init()
throws SnapshotRecorderException
SnapshotRecorderExceptionpublic org.eclipse.jgit.api.Git getGit()
public java.nio.file.Path getGitDirectory()
public void syncToGitDirectory()
throws java.io.IOException
java.io.IOExceptionpublic void commitAllChanges()
public Snapshot takeSnapshot() throws java.io.IOException
java.io.IOExceptionpublic void close()
close in interface java.lang.AutoCloseable