public class InfinispanJBossASClient extends JBossASClient
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_CONTAINER |
static String |
LOCAL_CACHE |
static String |
SUBSYSTEM_INFINISPAN |
ADD, ADDRESS, BATCH, BATCH_STEPS, FAILURE_DESCRIPTION, log, NAME, OPERATION, OUTCOME, OUTCOME_SUCCESS, PERSISTENT, READ_ATTRIBUTE, READ_RESOURCE, REMOVE, RESULT, SUBSYSTEM, SYSTEM_PROPERTY, VALUE, WRITE_ATTRIBUTE| Constructor and Description |
|---|
InfinispanJBossASClient(org.jboss.as.controller.client.ModelControllerClient client) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.dmr.ModelNode |
createNewCacheContainerRequest(String name,
String defaultCacheName)
Returns a ModelNode that can be used to create a cache container configuration for
subsequent cache configuration.
|
org.jboss.dmr.ModelNode |
createNewLocalCacheRequest(String cacheContainerName,
String localCacheName,
String transactionMode,
String evictionStrategy,
Long evictionMaxEntries,
Long expirationMaxIdle,
String isolationLevel)
Returns a ModelNode that can be used to create a local cache.
|
boolean |
isCacheContainer(String cacheContainerName)
Checks to see if there is already a cache container with the given name.
|
boolean |
isLocalCache(String cacheContainerName,
String localCacheName)
Checks to see if there is already a local cache with the given name.
|
createBatchRequest, createReadAttributeRequest, createReadAttributeRequest, createRequest, createRequest, createWriteAttributeRequest, execute, findNodeInList, getFailureDescription, getModelControllerClient, getResultListAsStrings, getResults, getStringAttribute, getStringAttribute, isSuccess, readResource, readResource, remove, setPossibleExpressionpublic static final String SUBSYSTEM_INFINISPAN
public static final String CACHE_CONTAINER
public static final String LOCAL_CACHE
public InfinispanJBossASClient(org.jboss.as.controller.client.ModelControllerClient client)
public boolean isCacheContainer(String cacheContainerName) throws Exception
cacheContainerName - the name to checkExceptionpublic boolean isLocalCache(String cacheContainerName, String localCacheName) throws Exception
cacheContainerName - the parent containerlocalCacheName - the name to checkExceptionpublic org.jboss.dmr.ModelNode createNewCacheContainerRequest(String name, String defaultCacheName)
The JNDI name will be java:jboss/infinispan/
name - the name of the cache containerdefaultCacheName - the name of the default cache. The referenced cache must be
subsequently created.public org.jboss.dmr.ModelNode createNewLocalCacheRequest(String cacheContainerName, String localCacheName, String transactionMode, String evictionStrategy, Long evictionMaxEntries, Long expirationMaxIdle, String isolationLevel) throws Exception
localCacheName - transactionMode - if null, defaults to "NONE"evictionStrategy - if null, defaults to "LRU"evictionMaxEntries - if null, defaults to 50000expirationMaxIdle - if null, defaults to 100000isolationLevel - if null, defaults to REPEATABLE_READ (currently ignored)ExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.