Class CacheGetOrCreateTask
java.lang.Object
org.infinispan.server.core.admin.AdminServerTask<Void>
org.infinispan.server.core.admin.embeddedserver.CacheCreateTask
org.infinispan.server.core.admin.embeddedserver.CacheGetOrCreateTask
- All Implemented Interfaces:
JsonSerialization
,Task
Admin operation to create a cache
Parameters:
- name the name of the cache to create
- template the name of the template to use
- configuration the XML configuration to use
- flags any flags, e.g. PERMANENT
- Since:
- 9.2
- Author:
- Tristan Tarrant
-
Field Summary
Fields inherited from class org.infinispan.server.core.admin.AdminServerTask
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Void
execute
(EmbeddedCacheManager cacheManager, Map<String, List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> flags) Methods inherited from class org.infinispan.server.core.admin.embeddedserver.CacheCreateTask
getConfigurationBuilder, getParameters
Methods inherited from class org.infinispan.server.core.admin.AdminServerTask
execute, getName, getParameter, getType, requireParameter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.tasks.Task
getAllowedRole, getExecutionMode, getInstantiationMode, toJson
-
Constructor Details
-
CacheGetOrCreateTask
public CacheGetOrCreateTask()
-
-
Method Details
-
getTaskContextName
- Overrides:
getTaskContextName
in classCacheCreateTask
-
getTaskOperationName
- Overrides:
getTaskOperationName
in classCacheCreateTask
-
execute
protected Void execute(EmbeddedCacheManager cacheManager, Map<String, List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> flags) - Overrides:
execute
in classCacheCreateTask
-