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 expirationLifeSpan,
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.
|
close, createBatchRequest, createReadAttributeRequest, createReadAttributeRequest, createRequest, createRequest, createWriteAttributeRequest, execute, findNodeInList, getAttribute, getAttribute, 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 checkException - any errorpublic boolean isLocalCache(String cacheContainerName, String localCacheName) throws Exception
cacheContainerName - the parent containerlocalCacheName - the name to checkException - any errorpublic org.jboss.dmr.ModelNode createNewCacheContainerRequest(String name, String defaultCacheName)
The JNDI name will be java:jboss/infinispan/<cacheContainerName>
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 expirationLifeSpan, Long expirationMaxIdle, String isolationLevel) throws Exception
cacheContainerName - cache container namelocalCacheName - cache nametransactionMode - if null, defaults to "NONE"evictionStrategy - if null, defaults to "LRU"evictionMaxEntries - if null, defaults to 50000expirationLifeSpan - if null, defaults to -1expirationMaxIdle - if null, defaults to 100000isolationLevel - if null, defaults to REPEATABLE_READ (currently ignored)Exception - if cacheContainerName does not correspond to a defined container or any other errorCopyright © 2015 Red Hat, Inc.. All rights reserved.