|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.connector.infinispan.BaseInfinispanSource
org.modeshape.connector.infinispan.RemoteInfinispanSource
@ThreadSafe public class RemoteInfinispanSource

A repository source that uses an Infinispan instance to manage the content. This source is capable of using an existing
CacheContainer or creating a new cache container. This process is controlled entirely by the JavaBean properties of the
InfinispanSource instance.
This source attempts to use the RemoteCacheManager with the supplied server
list.
Like other RepositorySource classes, instances of RemoteInfinispanCacheSource can be placed into JNDI and do support
the creation of JNDI referenceable objects and resolution of references into JBossCacheSource.
| Field Summary | |
|---|---|
protected static String |
INFINISPAN_SERVER_LIST
|
| Fields inherited from class org.modeshape.connector.infinispan.BaseInfinispanSource |
|---|
ALLOW_CREATING_WORKSPACES, DEFAULT_CACHE_POLICY, DEFAULT_NAME_OF_DEFAULT_WORKSPACE, DEFAULT_RETRY_LIMIT, DEFAULT_ROOT_NODE_UUID, DEFAULT_UPDATES_ALLOWED, DEFAULT_WORKSPACE, PREDEFINED_WORKSPACE_NAMES, RETRY_LIMIT, ROOT_NODE_UUID, SOURCE_NAME, UPDATES_ALLOWED |
| Constructor Summary | |
|---|---|
RemoteInfinispanSource()
|
|
| Method Summary | |
|---|---|
protected org.infinispan.manager.CacheContainer |
createCacheContainer()
Method controls how a cache container gets created. |
boolean |
equals(Object obj)
|
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
|
Reference |
getReference()
|
String |
getRemoteInfinispanServerList()
Get the list of remote servers that make up the Infinispan cluster. |
int |
hashCode()
|
void |
setRemoteInfinispanServerList(String remoteInfinispanServerList)
Set the list of remote servers that make up the Infinispan cluster. |
| Methods inherited from class org.modeshape.connector.infinispan.BaseInfinispanSource |
|---|
areUpdatesAllowed, close, getCapabilities, getConnection, getContext, getDefaultCachePolicy, getDefaultWorkspaceName, getName, getObserver, getPredefinedWorkspaceNames, getRepositoryContext, getRetryLimit, getRootNodeUuid, getRootNodeUuidObject, initialize, isCreatingWorkspacesAllowed, setContext, setCreatingWorkspacesAllowed, setDefaultCachePolicy, setDefaultWorkspaceName, setName, setPredefinedWorkspaceNames, setRetryLimit, setRootNodeUuid, setUpdatesAllowed |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String INFINISPAN_SERVER_LIST
| Constructor Detail |
|---|
public RemoteInfinispanSource()
| Method Detail |
|---|
public String getRemoteInfinispanServerList()
host:port[;host:port...] that would be used when defining an Infinispan
RemoteCacheManager instance. If the value is missing, localhost:11311 is assumed.
public void setRemoteInfinispanServerList(String remoteInfinispanServerList)
host:port[;host:port...] that would be used when defining an Infinispan
RemoteCacheManager instance. If the value is missing, localhost:11311 is assumed.
remoteInfinispanServerList - the server list in appropriate server:port;server2:port2 format.protected org.infinispan.manager.CacheContainer createCacheContainer()
BaseInfinispanSource
createCacheContainer in class BaseInfinispanSourcepublic Reference getReference()
getReference in interface ReferenceablegetReference in class BaseInfinispanSource
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable<?,?> environment)
throws Exception
Exceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||