abstract class DirectoryService.LockHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
lock
Intermediate lock
|
protected java.lang.String |
name
Attribute name
|
protected java.lang.String |
nodeId
Node ID
|
(package private) Remapper |
remapper
Reference to remapper
|
| Constructor and Description |
|---|
LockHelper(java.lang.String nodeId,
java.lang.String name)
Construct an instance for specified node ID and attribute name.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
lock()
Perform preliminary steps required to access node and attribute.
|
protected boolean |
pre(boolean batchWr,
int lockOp)
Lock node.
|
protected boolean |
pre(boolean batchWr,
int lockOp,
int nodeOp)
Lock node and check access rights.
|
protected boolean |
pre(boolean batchWr,
int lockOp,
int nodeOp,
int attrOp)
Lock node and check access rights to node and attribute.
|
(package private) void |
release()
Perform cleanup.
|
protected java.lang.Object lock
protected java.lang.String name
protected java.lang.String nodeId
Remapper remapper
LockHelper(java.lang.String nodeId,
java.lang.String name)
nodeId - Node ID for which operation will be performed.name - Attribute name.protected abstract boolean lock()
true if preliminary steps were successful.protected boolean pre(boolean batchWr,
int lockOp)
batchWr - Flag for synchBatch().lockOp - Locking mode for LockManager.true if preliminary steps were successful.protected boolean pre(boolean batchWr,
int lockOp,
int nodeOp)
batchWr - Flag for synchBatch().lockOp - Locking mode for LockManager.nodeOp - Node access mode.true if preliminary steps were successful.protected boolean pre(boolean batchWr,
int lockOp,
int nodeOp,
int attrOp)
batchWr - Flag for synchBatch().lockOp - Locking mode for LockManager.nodeOp - Node access mode.attrOp - Attribute access mode.true if preliminary steps were successful.void release()