|
ModeShape Distribution 3.3.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.cache.document.WorkspaceCache
public class WorkspaceCache
A NodeCache
implementation that uses Infinispan's SchematicDb
for storage, with each node represented as a
single Document
. The nodes in this cache represent the actual, unmodified values.
Field Summary | |
---|---|
protected static Logger |
LOGGER
|
Constructor Summary | |
---|---|
|
WorkspaceCache(ExecutionContext context,
String repositoryKey,
String workspaceName,
DocumentStore documentStore,
DocumentTranslator translator,
NodeKey rootKey,
ConcurrentMap<NodeKey,CachedNode> cache,
ChangeSetListener changeSetListener)
|
protected |
WorkspaceCache(WorkspaceCache original,
ConcurrentMap<NodeKey,CachedNode> cache,
ChangeSetListener changeSetListener)
|
Method Summary | |
---|---|
void |
changed(ChangeSet changes)
Signal that changes have been made to the persisted data. |
protected void |
checkNotClosed()
|
void |
clear()
Clears all changes in the cache. |
Iterator<NodeKey> |
getAllNodeKeys()
Get an iterator over all node keys within this cache. |
Iterator<NodeKey> |
getAllNodeKeysAtAndBelow(NodeKey startingKey)
Get an iterator over all keys for the supplied node and all its descendants. |
ChildReference |
getChildReference(NodeKey parentKey,
NodeKey childKey)
|
CachedNode |
getNode(ChildReference reference)
Get the cached representation of the node as represented by the supplied child reference. |
CachedNode |
getNode(NodeKey key)
Get the cached representation of the node with the supplied node key. |
String |
getProcessKey()
|
String |
getRepositoryKey()
|
NodeKey |
getRootKey()
Get the node key for the root node. |
String |
getWorkspaceKey()
|
String |
getWorkspaceName()
|
boolean |
isEmpty()
Checks if this ws cache is empty. |
void |
notify(ChangeSet changes)
|
void |
setMinimumStringLengthForBinaryStorage(long largeValueSize)
|
void |
signalClosed()
|
void |
signalClosing()
|
void |
signalDeleted()
|
String |
toString()
|
NodeCache |
unwrap()
Unwrap this instance. |
WorkspaceCache |
workspaceCache()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Logger LOGGER
Constructor Detail |
---|
public WorkspaceCache(ExecutionContext context, String repositoryKey, String workspaceName, DocumentStore documentStore, DocumentTranslator translator, NodeKey rootKey, ConcurrentMap<NodeKey,CachedNode> cache, ChangeSetListener changeSetListener)
protected WorkspaceCache(WorkspaceCache original, ConcurrentMap<NodeKey,CachedNode> cache, ChangeSetListener changeSetListener)
Method Detail |
---|
public void setMinimumStringLengthForBinaryStorage(long largeValueSize)
public final WorkspaceCache workspaceCache()
workspaceCache
in interface DocumentCache
public final String getProcessKey()
public final String getRepositoryKey()
public final String getWorkspaceKey()
public final String getWorkspaceName()
public NodeKey getRootKey()
NodeCache
getRootKey
in interface NodeCache
public CachedNode getNode(NodeKey key)
NodeCache
getNode
in interface NodeCache
key
- the node key; may not be null
public CachedNode getNode(ChildReference reference)
NodeCache
getNode(reference.getKey());
getNode
in interface NodeCache
reference
- the child node reference; may not be null
public ChildReference getChildReference(NodeKey parentKey, NodeKey childKey)
public Iterator<NodeKey> getAllNodeKeys()
NodeCache
getAllNodeKeys
in interface NodeCache
public Iterator<NodeKey> getAllNodeKeysAtAndBelow(NodeKey startingKey)
NodeCache
getAllNodeKeysAtAndBelow
in interface NodeCache
startingKey
- the key for the node to start; may not be null
public void clear()
NodeCache
clear
in interface NodeCache
public void notify(ChangeSet changes)
notify
in interface ChangeSetListener
public void changed(ChangeSet changes)
changes
- the changes to be made; may not be nullpublic NodeCache unwrap()
NodeCache
unwrap
in interface NodeCache
protected final void checkNotClosed()
public void signalDeleted()
public void signalClosing()
public void signalClosed()
public boolean isEmpty()
true
if the system key is the only key under root, false
other wise.public String toString()
toString
in class Object
|
ModeShape Distribution 3.3.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |