Modifier and Type | Method and Description |
---|---|
abstract InvocationContext |
InvocationContext.copy()
This is a "copy-factory-method" that should be used whenever a clone of this class is needed.
|
InvocationContext |
Cache.getInvocationContext() |
Modifier and Type | Method and Description |
---|---|
void |
NodeSPI.commitUpdate(InvocationContext ctx,
DataContainer container)
Commits any updates made on this node to the underlying data structure, making it visible to all other transactions.
|
InternalNode<K,V> |
AbstractNodeFactory.createChildNode(Fqn fqn,
InternalNode<K,V> parent,
InvocationContext ctx,
boolean attachToParent) |
InternalNode<K,V> |
NodeFactory.createChildNode(Fqn fqn,
InternalNode<K,V> parent,
InvocationContext ctx,
boolean attachToParent)
Creates a new node, and optionally attaches the node to its parent.
|
protected void |
InvocationContext.doCopy(InvocationContext copy) |
GravitateResult |
CacheSPI.gravitateData(Fqn fqn,
boolean searchBuddyBackupSubtrees,
InvocationContext ctx)
Used with buddy replication's data gravitation interceptor.
|
void |
Cache.setInvocationContext(InvocationContext ctx)
Sets the passed in
InvocationContext as current. |
void |
InvocationContext.setState(InvocationContext template)
Sets the state of the InvocationContext based on the template context passed in
|
Modifier and Type | Method and Description |
---|---|
Object |
PessGetChildrenNamesCommand.perform(InvocationContext ctx)
Deprecated.
Retrieves the names of children for a specific Fqn.
|
Modifier and Type | Method and Description |
---|---|
Object |
CreateNodeCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor)
Deprecated.
|
protected void |
VersionedInvalidateCommand.createTombstone(InvocationContext ctx)
Deprecated.
|
protected boolean |
LegacyEvictCommand.evictNode(Fqn fqn,
InvocationContext ctx,
NodeSPI node)
Deprecated.
|
protected NodeSPI |
LegacyEvictCommand.lookupForEviction(InvocationContext ctx,
Fqn fqn)
Deprecated.
|
Object |
CreateNodeCommand.perform(InvocationContext ctx)
Deprecated.
Creates a node in the cache, specified by the given Fqn.
|
Object |
VersionedInvalidateCommand.perform(InvocationContext ctx)
Deprecated.
|
Object |
PessRemoveNodeCommand.perform(InvocationContext ctx)
Deprecated.
|
Object |
PessPutForExternalReadCommand.perform(InvocationContext ctx)
Deprecated.
|
Object |
PessPutDataMapCommand.perform(InvocationContext ctx)
Deprecated.
|
Object |
PessPutKeyValueCommand.perform(InvocationContext ctx)
Deprecated.
|
Object |
PessMoveCommand.perform(InvocationContext ctx)
Deprecated.
Moves a node, from fqn to to, and returns null.
|
Object |
PessClearDataCommand.perform(InvocationContext ctx)
Deprecated.
|
Object |
PessRemoveKeyCommand.perform(InvocationContext ctx)
Deprecated.
|
protected void |
PessRemoveNodeCommand.recursivelyMarkAsRemoved(NodeSPI node,
InvocationContext ctx)
Deprecated.
|
protected void |
VersionedInvalidateCommand.removeData(NodeSPI n,
InvocationContext ctx)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
GravitateDataCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
GetNodeCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
GetDataMapCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
GetKeysCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
GetKeyValueCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
GetChildrenNamesCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
ExistsCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
GravitateDataCommand.perform(InvocationContext ctx)
Searches for data to gravitate given an Fqn and whether buddy backup subtrees are to be searched as well.
|
Object |
GetNodeCommand.perform(InvocationContext ctx)
Retrieves a
Node referenced by the specified Fqn. |
Object |
GetDataMapCommand.perform(InvocationContext ctx)
Retrieves an unmodifiable map of data contained in a node referenced by the specified Fqn.
|
Object |
GetKeysCommand.perform(InvocationContext ctx)
Retrieves Set of keys for all the data stored in a node referenced by the specified Fqn.
|
Object |
GetKeyValueCommand.perform(InvocationContext ctx)
Retrieves the value stored under a specified key in a node referenced by the specified Fqn.
|
Object |
GetChildrenNamesCommand.perform(InvocationContext ctx)
Retrieves the names of children for a specific Fqn.
|
Object |
ExistsCommand.perform(InvocationContext ctx)
Checks whether a node represented by a given Fqn exists.
|
Modifier and Type | Method and Description |
---|---|
Object |
AnnounceBuddyPoolNameCommand.perform(InvocationContext ctx)
This method calls the relevant handler on the buddy manager to deal with this pool broadcast.
|
Object |
RemoveFromBuddyGroupCommand.perform(InvocationContext ctx)
This method calls the relevant handler on the buddy manager to deal with being removed from a buddy group
|
Object |
DataGravitationCleanupCommand.perform(InvocationContext ctx)
Performs a cleanup on nodes that would have been previously gravitated away from the current cache instance.
|
Object |
ReplicateCommand.perform(InvocationContext ctx)
Executes commands replicated to the current cache instance by other cache instances.
|
Object |
ClusteredGetCommand.perform(InvocationContext context)
Invokes a
DataCommand on a remote cache and returns results. |
Object |
StateTransferControlCommand.perform(InvocationContext ctx) |
Object |
AssignToBuddyGroupCommand.perform(InvocationContext ctx)
This method calls the relevant handler on the buddy manager to deal with being assigned to a buddy group
|
Modifier and Type | Method and Description |
---|---|
Object |
RollbackCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
PrepareCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
OptimisticPrepareCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
CommitCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
AbstractTransactionCommand.perform(InvocationContext ctx)
Default implementation which is a no-op.
|
Modifier and Type | Method and Description |
---|---|
Object |
PutKeyValueCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
EvictCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
RemoveKeyCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
MoveCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
ClearDataCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
InvalidateCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
PutForExternalReadCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
PutDataMapCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
Object |
RemoveNodeCommand.acceptVisitor(InvocationContext ctx,
Visitor visitor) |
protected boolean |
EvictCommand.evictNode(Fqn fqn,
InvocationContext ctx,
NodeSPI node) |
protected NodeSPI |
EvictCommand.lookupForEviction(InvocationContext ctx,
Fqn fqn) |
protected NodeSPI |
AbstractVersionedDataCommand.peekVersioned(InvocationContext ctx)
Utility method to peek a node and throw an exception if the version isn't what is expected.
|
Object |
PutKeyValueCommand.perform(InvocationContext ctx)
Puts the specified key and value into the data map in the node referenced by the specified Fqn.
|
Object |
EvictCommand.perform(InvocationContext ctx)
Evicts a node.
|
Object |
RemoveKeyCommand.perform(InvocationContext ctx)
Removes the specified key from the data map in the node referenced by the specified Fqn.
|
Object |
MoveCommand.perform(InvocationContext ctx)
Moves a node, from fqn to to, and returns null.
|
Object |
ClearDataCommand.perform(InvocationContext ctx)
Clears the data map in the node referenced by the specified Fqn.
|
Object |
InvalidateCommand.perform(InvocationContext ctx)
Performs an invalidation on a specified node
|
Object |
PutDataMapCommand.perform(InvocationContext ctx)
Adds the provided data map to the data map in the node referenced by the specified Fqn.
|
Object |
RemoveNodeCommand.perform(InvocationContext ctx)
Removes the node referenced by the specified Fqn.
|
protected void |
RemoveNodeCommand.recursivelyMarkAsRemoved(NodeSPI node,
InvocationContext ctx)
Recursively marks a node as removed.
|
Modifier and Type | Method and Description |
---|---|
InvocationContext |
PessimisticContextFactory.createInvocationContext()
Deprecated.
|
InvocationContext |
ContextFactory.createInvocationContext() |
InvocationContext |
MVCCContextFactory.createInvocationContext() |
Modifier and Type | Method and Description |
---|---|
InvocationContext |
InterceptorChain.getInvocationContext() |
Modifier and Type | Class and Description |
---|---|
class |
LegacyInvocationContext
Deprecated.
will be removed along with optimistic and pessimistic locking.
|
class |
MVCCInvocationContext
An invocation context that is specific to MVCC locking
|
Modifier and Type | Method and Description |
---|---|
InvocationContext |
MVCCInvocationContext.copy() |
InvocationContext |
LegacyInvocationContext.copy()
Deprecated.
|
InvocationContext |
CacheInvocationDelegate.getInvocationContext() |
protected InvocationContext |
InvocationContextContainer.initialValue() |
Modifier and Type | Method and Description |
---|---|
protected void |
CacheInvocationDelegate.cacheStatusCheck(InvocationContext ctx) |
void |
NodeInvocationDelegate.commitUpdate(InvocationContext ctx,
DataContainer container) |
GravitateResult |
CacheInvocationDelegate.gravitateData(Fqn fqn,
boolean searchBuddyBackupSubtrees,
InvocationContext ctx) |
void |
CacheInvocationDelegate.setInvocationContext(InvocationContext ctx) |
Modifier and Type | Method and Description |
---|---|
Object |
LockManager.getLockOwner(InvocationContext ctx)
Determines the owner to be used when obtaining locks, given an invocation context.
|
Object |
AbstractLockManager.getLockOwner(InvocationContext ctx) |
boolean |
LockManager.lockAllAndRecord(Fqn fqn,
LockType lockType,
InvocationContext ctx)
Locks the node and all child nodes, acquiring lock of type specified for the owner specified.
|
boolean |
NodeBasedLockManager.lockAllAndRecord(Fqn fqn,
LockType lockType,
InvocationContext ctx)
Deprecated.
|
boolean |
MVCCLockManager.lockAllAndRecord(Fqn fqn,
LockType lockType,
InvocationContext ctx) |
boolean |
LockManager.lockAllAndRecord(NodeSPI<?,?> node,
LockType lockType,
InvocationContext ctx)
Locks the node and all child nodes, acquiring lock of type specified for the owner specified.
|
boolean |
NodeBasedLockManager.lockAllAndRecord(NodeSPI node,
LockType lockType,
InvocationContext ctx)
Deprecated.
|
boolean |
MVCCLockManager.lockAllAndRecord(NodeSPI node,
LockType lockType,
InvocationContext ctx) |
boolean |
LockManager.lockAndRecord(Fqn fqn,
LockType lockType,
InvocationContext ctx)
Acquires a lock of type lockType, on a specific Node in the cache, denoted by fqn.
|
boolean |
NodeBasedLockManager.lockAndRecord(Fqn fqn,
LockType lockType,
InvocationContext ctx)
Deprecated.
|
boolean |
MVCCLockManager.lockAndRecord(Fqn fqn,
LockType lockType,
InvocationContext ctx) |
boolean |
LockManager.lockAndRecord(NodeSPI<?,?> node,
LockType lockType,
InvocationContext ctx)
Acquires a lock of type lockType, on a specific Node in the cache, denoted by fqn.
|
boolean |
NodeBasedLockManager.lockAndRecord(NodeSPI node,
LockType lockType,
InvocationContext ctx)
Deprecated.
|
boolean |
FqnLockManager.lockAndRecord(NodeSPI node,
LockType lockType,
InvocationContext ctx) |
boolean |
PessimisticNodeBasedLockManager.lockPessimistically(InvocationContext ctx,
Fqn fqn,
LockType lockType,
boolean createIfNotExists,
boolean zeroLockTimeout,
boolean acquireWriteLockOnParent,
boolean reverseRemoveCheck,
List<NodeSPI> createdNodes,
boolean skipNotification)
Deprecated.
A specific lock method for the PessimisticLockInterceptor.
|
static void |
LockUtil.manageReverseRemove(InvocationContext ctx,
NodeSPI childNode,
boolean reverseRemoveCheck,
List createdNodes,
CommandsFactory commandsFactory)
Test if this node needs to be 'undeleted'
reverse the "remove" if the node has been previously removed in the same tx, if this operation is a put()
|
void |
LockManager.unlock(InvocationContext ctx)
Releases locks present in an invocation context and transaction entry, if one is available.
|
void |
NodeBasedLockManager.unlock(InvocationContext ctx)
Deprecated.
|
void |
MVCCLockManager.unlock(InvocationContext ctx) |
Constructor and Description |
---|
PessimisticNodeBasedLockManager.LockAcquirer(InvocationContext ctx,
LockType type,
long timeout,
Object owner) |
Modifier and Type | Method and Description |
---|---|
void |
ReadCommittedNode.commitUpdate(InvocationContext ctx,
DataContainer container) |
InternalNode<K,V> |
MVCCNodeFactory.createChildNode(Fqn fqn,
InternalNode<K,V> parent,
InvocationContext ctx,
boolean attachToParent) |
protected InternalNode |
ReadCommittedNode.lookupParent(Fqn fqn,
InvocationContext ctx,
DataContainer container)
Performs a lookup for the parent node of the Fqn passed in.
|
protected void |
RepeatableReadNode.updateNode(Fqn fqn,
InvocationContext ctx,
DataContainer dataContainer) |
protected void |
NullMarkerNodeForRemoval.updateNode(Fqn fqn,
InvocationContext ctx,
DataContainer dataContainer) |
protected void |
ReadCommittedNode.updateNode(Fqn fqn,
InvocationContext ctx,
DataContainer dataContainer)
Updates state changes on the current node in the underlying data structure.
|
NodeSPI |
MVCCNodeHelper.wrapNodeForReading(InvocationContext ctx,
Fqn fqn,
boolean putInContext)
Similar to
MVCCNodeHelper.wrapNodesForReading(org.jboss.cache.InvocationContext, java.util.Collection) except that this
version takes a single Fqn parameter to wrap a single node. |
ReadCommittedNode |
MVCCNodeHelper.wrapNodeForWriting(InvocationContext context,
Fqn fqn,
boolean lockForWriting,
boolean createIfAbsent,
boolean includeInvalidNodes,
boolean forRemoval,
boolean force)
First checks in contexts for the existence of the node.
|
ReadCommittedNode |
MVCCNodeHelper.wrapNodeForWriting(InvocationContext context,
Fqn fqn,
boolean lockForWriting,
boolean createIfAbsent,
boolean includeInvalidNodes,
boolean forRemoval,
boolean force,
boolean childIsNull) |
NodeSPI |
MVCCNodeHelper.wrapNodeForWriting(InvocationContext context,
InternalNode node,
InternalNode parent)
The same as
MVCCNodeHelper.wrapNodeForWriting(org.jboss.cache.InvocationContext, org.jboss.cache.Fqn, boolean, boolean,
boolean, boolean, boolean) except that it takes in an InternalNode instead of a Fqn . |
void |
MVCCNodeHelper.wrapNodesForReading(InvocationContext ctx,
Collection<Fqn> fqns)
Attempts to provide the context with a set of wrapped nodes based on the Collection of fqns passed in.
|
List<Fqn> |
MVCCNodeHelper.wrapNodesRecursivelyForRemoval(InvocationContext ctx,
Fqn fqn)
Wraps a node and all its subnodes and adds them to the context, acquiring write locks for them all.
|
Modifier and Type | Method and Description |
---|---|
void |
NotifierImpl.notifyNodeActivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx) |
void |
Notifier.notifyNodeActivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeActivated event.
|
void |
NotifierImpl.notifyNodeCreated(Fqn fqn,
boolean pre,
InvocationContext ctx) |
void |
Notifier.notifyNodeCreated(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeCreated event.
|
void |
NotifierImpl.notifyNodeEvicted(Fqn fqn,
boolean pre,
InvocationContext ctx) |
void |
Notifier.notifyNodeEvicted(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeEvicted event.
|
void |
NotifierImpl.notifyNodeInvalidated(Fqn fqn,
boolean pre,
InvocationContext ctx) |
void |
Notifier.notifyNodeInvalidated(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeInvalidated event.
|
void |
NotifierImpl.notifyNodeLoaded(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx) |
void |
Notifier.notifyNodeLoaded(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeLoaded event.
|
void |
NotifierImpl.notifyNodeModified(Fqn fqn,
boolean pre,
NodeModifiedEvent.ModificationType modificationType,
Map data,
InvocationContext ctx) |
void |
Notifier.notifyNodeModified(Fqn fqn,
boolean pre,
NodeModifiedEvent.ModificationType modificationType,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeModified event.
|
void |
NotifierImpl.notifyNodeMoved(Fqn originalFqn,
Fqn newFqn,
boolean pre,
InvocationContext ctx) |
void |
Notifier.notifyNodeMoved(Fqn originalFqn,
Fqn newFqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeMoved event.
|
void |
NotifierImpl.notifyNodePassivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx) |
void |
Notifier.notifyNodePassivated(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodePassivated event.
|
void |
NotifierImpl.notifyNodeRemoved(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx) |
void |
Notifier.notifyNodeRemoved(Fqn fqn,
boolean pre,
Map data,
InvocationContext ctx)
Notifies all registered listeners of a nodeRemoved event.
|
void |
NotifierImpl.notifyNodeVisited(Fqn fqn,
boolean pre,
InvocationContext ctx) |
void |
Notifier.notifyNodeVisited(Fqn fqn,
boolean pre,
InvocationContext ctx)
Notifies all registered listeners of a nodeVisited event.
|
void |
NotifierImpl.notifyTransactionCompleted(Transaction transaction,
boolean successful,
InvocationContext ctx) |
void |
Notifier.notifyTransactionCompleted(Transaction transaction,
boolean successful,
InvocationContext ctx)
Notifies all registered listeners of a transaction completion event.
|
void |
NotifierImpl.notifyTransactionRegistered(Transaction transaction,
InvocationContext ctx) |
void |
Notifier.notifyTransactionRegistered(Transaction transaction,
InvocationContext ctx)
Notifies all registered listeners of a transaction registration event.
|
void |
NotifierImpl.notifyViewChange(org.jgroups.View newView,
InvocationContext ctx) |
void |
Notifier.notifyViewChange(org.jgroups.View view,
InvocationContext ctx)
Notifies all registered listeners of a viewChange event.
|
Modifier and Type | Method and Description |
---|---|
static void |
TransactionTable.assertTransactionValid(InvocationContext ctx)
Tests whether the caller is in a valid transaction.
|
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.