RefDirectory.
| Modifier and Type | Field and Description |
|---|---|
| private final RefDirectory | |
| private LockFile | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | doAfterLocking(String
the name of the reference. name)Do any actions needed immediately after a lock on the ref is acquired |
| protected RefUpdate. | doDelete(RefUpdate.
a statusorg. object.Implements abstract org. Do delete |
| protected RefUpdate. | doLink(String
a target)java. object.Implements abstract org. Do link |
| protected RefUpdate. | doUpdate(RefUpdate.
a statusorg. object.Implements abstract org. Do update |
| protected RefDirectory | getRefDatabase()
Implements abstract org. Get the reference database this update modifies. |
| protected Repository | getRepository()
Implements abstract org. Get the repository storing the database's objects. |
| private String | |
| protected boolean | tryLock(boolean
true if the lock should be taken against the leaf level
reference; false if it should be taken exactly against the
current reference. deref)Implements abstract org. Try to acquire the lock on the reference. |
| protected void | unlock()
Implements abstract org. Releases the lock taken by |
| database | back to summary |
|---|---|
| private final RefDirectory database | |
| lock | back to summary |
|---|---|
| private LockFile lock | |
| shouldDeref | back to summary |
|---|---|
| private boolean shouldDeref | |
| RefDirectoryUpdate | back to summary |
|---|---|
| pack-priv RefDirectoryUpdate(RefDirectory r, Ref ref) | |
| doAfterLocking | back to summary |
|---|---|
| protected void doAfterLocking(String name) Do any actions needed immediately after a lock on the ref is acquired
| |
| doDelete | back to summary |
|---|---|
| protected RefUpdate. Implements abstract org. Doc from org. Do delete
| |
| doLink | back to summary |
|---|---|
| protected RefUpdate. Implements abstract org. Doc from org. Do link
| |
| doUpdate | back to summary |
|---|---|
| protected RefUpdate. Implements abstract org. Doc from org. Do update
| |
| getRefDatabase | back to summary |
|---|---|
| protected RefDirectory getRefDatabase() Implements abstract org. Doc from org. Get the reference database this update modifies.
| |
| getRepository | back to summary |
|---|---|
| protected Repository getRepository() Implements abstract org. Doc from org. Get the repository storing the database's objects.
| |
| toResultString | back to summary |
|---|---|
| private String toResultString(RefUpdate. | |
| tryLock | back to summary |
|---|---|
| protected boolean tryLock(boolean deref) throws IOException Implements abstract org. Doc from org. Try to acquire the lock on the reference.
If the locking was successful the implementor must set the current
identity value by calling
| |
| unlock | back to summary |
|---|---|
| protected void unlock() Implements abstract org. Doc from org. Releases the lock taken by
| |