|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.graph.connector.base.Repository<InfinispanNode,InfinispanWorkspace>
org.modeshape.connector.infinispan.InfinispanRepository
@ThreadSafe public class InfinispanRepository

The representation of an in-memory repository and its content.
| Field Summary |
|---|
| Fields inherited from class org.modeshape.graph.connector.base.Repository |
|---|
context, rootNodeUuid, source |
| Constructor Summary | |
|---|---|
InfinispanRepository(BaseInfinispanSource source,
org.infinispan.manager.CacheContainer cacheContainer)
|
|
| Method Summary | |
|---|---|
protected Set<String> |
getAllWorkspaceNames(Set<String> alreadyKnownNames)
Utility method to obtain all of the names of the workspaces within the supplied cache container. |
protected org.infinispan.manager.CacheContainer |
getCacheContainer()
Get the cache manager used by this repository. |
protected org.infinispan.Cache<UUID,InfinispanNode> |
getCacheOrCreateIfMissing(String cacheName)
|
Set<String> |
getWorkspaceNames()
Get the names of the available workspaces that have been loaded. |
void |
shutdown()
This method shuts down the workspace and makes it no longer usable. |
InfinispanTransaction |
startTransaction(ExecutionContext context,
boolean readonly)
Begin a transaction, hinting whether the transaction will be used only to read the content. |
| Methods inherited from class org.modeshape.graph.connector.base.Repository |
|---|
createRequestProcessor, createWorkspace, destroyWorkspace, getContext, getDefaultWorkspaceName, getRootNodeUuid, getSourceName, getWorkspace, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InfinispanRepository(BaseInfinispanSource source,
org.infinispan.manager.CacheContainer cacheContainer)
| Method Detail |
|---|
public Set<String> getWorkspaceNames()
getWorkspaceNames in class Repository<InfinispanNode,InfinispanWorkspace>Repository.getWorkspaceNames()protected Set<String> getAllWorkspaceNames(Set<String> alreadyKnownNames)
alreadyKnownNames - the names of the workspaces that are already known; may not be null but may be empty
protected org.infinispan.Cache<UUID,InfinispanNode> getCacheOrCreateIfMissing(String cacheName)
protected org.infinispan.manager.CacheContainer getCacheContainer()
public void shutdown()
public InfinispanTransaction startTransaction(ExecutionContext context,
boolean readonly)
committed or rolled back.
startTransaction in class Repository<InfinispanNode,InfinispanWorkspace>context - the context in which the transaction is to be performed; may not be nullreadonly - true if the transaction will not modify any content, or false if changes are to be made
Repository.startTransaction(org.modeshape.graph.ExecutionContext, boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||