|
ModeShape Distribution 3.0.0.Alpha6 | |||||||||
| 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.
| Constructor Summary | |
|---|---|
WorkspaceCache(ExecutionContext context,
String repositoryKey,
String workspaceName,
SchematicDb database,
long largeValueSize,
NodeKey rootKey,
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. |
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()
|
void |
notify(ChangeSet changeSet)
|
void |
setMinimumBinarySizeInBytes(long largeValueSize)
|
void |
signalDeleted()
|
WorkspaceCache |
workspaceCache()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkspaceCache(ExecutionContext context,
String repositoryKey,
String workspaceName,
SchematicDb database,
long largeValueSize,
NodeKey rootKey,
ChangeSetListener changeSetListener)
| Method Detail |
|---|
public void setMinimumBinarySizeInBytes(long largeValueSize)
public final WorkspaceCache workspaceCache()
workspaceCache in interface DocumentCachepublic final String getProcessKey()
public final String getRepositoryKey()
public final String getWorkspaceKey()
public final String getWorkspaceName()
public NodeKey getRootKey()
NodeCache
getRootKey in interface NodeCachepublic CachedNode getNode(NodeKey key)
NodeCache
getNode in interface NodeCachekey - the node key; may not be null
public CachedNode getNode(ChildReference reference)
NodeCachegetNode(reference.getKey());
getNode in interface NodeCachereference - the child node reference; may not be null
public void clear()
NodeCache
clear in interface NodeCachepublic void notify(ChangeSet changeSet)
notify in interface ChangeSetListenerpublic void changed(ChangeSet changes)
changes - the changes to be made; may not be nullprotected final void checkNotClosed()
public void signalDeleted()
|
ModeShape Distribution 3.0.0.Alpha6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||