|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jgit.lib.PackLock
public class PackLock
Keeps track of a PackFile's associated .keep file.
| Constructor Summary | |
|---|---|
PackLock(java.io.File packFile)
Create a new lock for a pack file. |
|
| Method Summary | |
|---|---|
boolean |
lock(java.lang.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(java.io.File packFile)
packFile - location of the pack-*.pack file.| Method Detail |
|---|
public boolean lock(java.lang.String msg)
throws java.io.IOException
pack-*.keep file, with the given message.
msg - message to store in the file.
java.io.IOException - the keep file could not be written.public void unlock()
.keep file that holds this pack in place.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||