|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.storage.file.PackLock
public class PackLock
Keeps track of a PackFile's associated .keep file.
| Constructor Summary | |
|---|---|
PackLock(File packFile,
FS fs)
Create a new lock for a pack file. |
|
| Method Summary | |
|---|---|
boolean |
lock(String msg)
Create the pack-*.keep file, with the given message. |
void |
unlock()
Remove the .keep file that holds this pack in place. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackLock(File packFile,
FS fs)
packFile - location of the pack-*.pack file.fs - the filesystem abstraction used by the repository.| Method Detail |
|---|
public boolean lock(String msg)
throws IOException
pack-*.keep file, with the given message.
msg - message to store in the file.
IOException - the keep file could not be written.
public void unlock()
throws IOException
.keep file that holds this pack in place.
IOException - if deletion of .keep file failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||