|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.connector.base.MapWorkspace<DiskNode>
org.modeshape.connector.disk.DiskWorkspace
public class DiskWorkspace
Workspace implementation for disk connector
Field Summary |
---|
Fields inherited from class org.modeshape.graph.connector.base.MapWorkspace |
---|
name, rootNodeUuid |
Constructor Summary | |
---|---|
DiskWorkspace(String name,
File workspaceRoot,
DiskNode rootNode,
DiskRepository repository)
Create a new workspace instance. |
|
DiskWorkspace(String name,
File workspaceRoot,
DiskWorkspace originalToClone)
Create a new workspace instance. |
Method Summary | |
---|---|
void |
cachePolicyChanged(NodeCachePolicyChangedEvent<UUID,DiskNode> event)
Notifies this workspace that the cache policy has changed and the cache should be reset. |
void |
destroy()
|
NodeCache<UUID,DiskNode> |
getCache()
|
DiskNode |
getNode(UUID uuid)
Get the node with the supplied UUID. |
DiskNode |
putNode(DiskNode 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. |
DiskNode |
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, hasNodeCache, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiskWorkspace(String name, File workspaceRoot, DiskNode rootNode, DiskRepository repository)
name
- the name of the workspace; may not be nullworkspaceRoot
- a pointer to the root of the workspace on disk; may not be nullrootNode
- the root node for the workspace; may not be nullrepository
- the repository to which this workspace belongs; may not be nullpublic DiskWorkspace(String name, File workspaceRoot, DiskWorkspace originalToClone)
name
- the name of the workspaceworkspaceRoot
- a pointer to the root of the workspace on diskoriginalToClone
- the workspace that is to be clonedMethod Detail |
---|
public void destroy()
public void shutdown()
public void cachePolicyChanged(NodeCachePolicyChangedEvent<UUID,DiskNode> event)
cachePolicyChanged
in interface NodeCachePolicyChangedListener<UUID,DiskNode>
event
- the cache policy changed event; may not be nullpublic NodeCache<UUID,DiskNode> getCache()
getCache
in interface NodeCachingWorkspace<UUID,DiskNode>
public DiskNode getNode(UUID uuid)
MapWorkspace
getNode
in class MapWorkspace<DiskNode>
uuid
- the UUID of the node
public DiskNode putNode(DiskNode node)
MapWorkspace
putNode
in class MapWorkspace<DiskNode>
node
- the new node; may not be null
public void removeAll()
MapWorkspace
removeAll
in class MapWorkspace<DiskNode>
public DiskNode removeNode(UUID uuid)
MapWorkspace
removeNode
in class MapWorkspace<DiskNode>
uuid
- the UUID of the node to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |