Class CacheCreateTask
java.lang.Object
org.infinispan.server.core.admin.AdminServerTask<Void>
org.infinispan.server.core.admin.embeddedserver.CacheCreateTask
- All Implemented Interfaces:
JsonSerialization
,Task
- Direct Known Subclasses:
CacheGetOrCreateTask
,TemplateCreateTask
Admin operation to create a cache
Parameters:
- name the name of the cache to create
- flags any flags, e.g. PERMANENT
- Since:
- 9.1
- 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) protected ConfigurationBuilder
getConfigurationBuilder
(String name, String configuration) The named parameters accepted by this taskMethods 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
-
CacheCreateTask
public CacheCreateTask()
-
-
Method Details
-
getTaskContextName
- Specified by:
getTaskContextName
in classAdminServerTask<Void>
-
getTaskOperationName
- Specified by:
getTaskOperationName
in classAdminServerTask<Void>
-
getParameters
Description copied from interface:Task
The named parameters accepted by this task- Returns:
- a java.util.Set of parameter names
-
execute
protected Void execute(EmbeddedCacheManager cacheManager, Map<String, List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> flags) - Specified by:
execute
in classAdminServerTask<Void>
-
getConfigurationBuilder
-