static class DirectoryService.BatchRef
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ShadowRemapper |
backend
Back-end which handles batch operations until commit.
|
private java.lang.String |
baseId
ID of the base node of the subtree.
|
private java.lang.Object |
lock
Object returned by the
LockManager.enterLock() |
Constructor and Description |
---|
BatchRef(java.lang.Object lock,
java.lang.String baseId,
ShadowRemapper backend)
Create an instance for given lock, base ID and back-end reference.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup(DirectoryService.WorkArea wa)
Does the cleanup for bound sessions.
|
(package private) ShadowRemapper |
getBackend()
Return reference to backend which holds changed tree.
|
(package private) java.lang.String |
getBaseId()
Get ID of the root node of subtree.
|
(package private) java.lang.Object |
getLock()
Get reference to the lock obtained during batch initialisation.
|
private ShadowRemapper backend
private java.lang.String baseId
private java.lang.Object lock
LockManager.enterLock()
BatchRef(java.lang.Object lock, java.lang.String baseId, ShadowRemapper backend)
lock
- Reference to the lock returned by the
LockManager.enterLock()
.baseId
- Node ID for which lock is placed.backend
- Reference to Remapper which will be used for batch
operations.public void cleanup(DirectoryService.WorkArea wa)
wa
- The context-local WorkArea
that contains the
reference to active batch to be cleaned.ShadowRemapper getBackend()
java.lang.String getBaseId()
java.lang.Object getLock()