|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.connector.base.MapWorkspace<JBossCacheNode>
org.modeshape.connector.jbosscache.JBossCacheWorkspace
public class JBossCacheWorkspace

| Field Summary |
|---|
| Fields inherited from class org.modeshape.graph.connector.base.MapWorkspace |
|---|
name, rootNodeUuid |
| Constructor Summary | |
|---|---|
JBossCacheWorkspace(String name,
org.jboss.cache.Cache<UUID,JBossCacheNode> workspaceCache,
JBossCacheNode rootNode)
Create a new workspace instance. |
|
JBossCacheWorkspace(String name,
org.jboss.cache.Cache<UUID,JBossCacheNode> workspaceCache,
JBossCacheWorkspace originalToClone)
Create a new workspace instance. |
|
| Method Summary | |
|---|---|
protected static org.jboss.cache.Node<UUID,JBossCacheNode> |
findOrCreateWorkspaceRoot(String workspaceName,
org.jboss.cache.Cache<UUID,JBossCacheNode> workspaceCache,
UUID rootNodeUuid)
|
JBossCacheNode |
getNode(UUID uuid)
Get the node with the supplied UUID. |
JBossCacheNode |
putNode(JBossCacheNode node)
Add the node into this workspace's map, overwriting any previous record of the node |
void |
removeAll()
Remove all of the nodes in this workspace, and make sure there is a single root node with no properties and no children. |
JBossCacheNode |
removeNode(UUID uuid)
Remove and return the node with the supplied UUID. |
void |
shutdown()
This method shuts down the workspace and makes it no longer usable. |
| Methods inherited from class org.modeshape.graph.connector.base.MapWorkspace |
|---|
getName, getRootNode, getRootNodeUuid, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JBossCacheWorkspace(String name,
org.jboss.cache.Cache<UUID,JBossCacheNode> workspaceCache,
JBossCacheNode rootNode)
name - the name of the workspaceworkspaceCache - the Infinispan cache containing the workspace contentrootNode - the root node for the workspace
public JBossCacheWorkspace(String name,
org.jboss.cache.Cache<UUID,JBossCacheNode> workspaceCache,
JBossCacheWorkspace originalToClone)
name - the name of the workspaceworkspaceCache - the Infinispan cache containing the workspace contentoriginalToClone - the workspace that is to be cloned| Method Detail |
|---|
protected static org.jboss.cache.Node<UUID,JBossCacheNode> findOrCreateWorkspaceRoot(String workspaceName,
org.jboss.cache.Cache<UUID,JBossCacheNode> workspaceCache,
UUID rootNodeUuid)
public JBossCacheNode getNode(UUID uuid)
getNode in class MapWorkspace<JBossCacheNode>uuid - the UUID of the node
MapWorkspace.getNode(java.util.UUID)public JBossCacheNode putNode(JBossCacheNode node)
putNode in class MapWorkspace<JBossCacheNode>node - the new node; may not be null
MapWorkspace.putNode(org.modeshape.graph.connector.base.MapNode)public JBossCacheNode removeNode(UUID uuid)
removeNode in class MapWorkspace<JBossCacheNode>uuid - the UUID of the node to be removed
MapWorkspace.removeNode(java.util.UUID)public void removeAll()
removeAll in class MapWorkspace<JBossCacheNode>MapWorkspace.removeAll()public void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||