Class CacheUpdateConfigurationAttributeTask
java.lang.Object
org.infinispan.server.core.admin.AdminServerTask<Void>
org.infinispan.server.core.admin.embeddedserver.CacheUpdateConfigurationAttributeTask
- All Implemented Interfaces:
JsonSerialization,Task
Administrative operation to update a specific configuration attribute for a given cache with the following parameters:
Parameters:
- name specifies the cache for which its configuration attribute will be updated.
- attribute the path of the attribute we want to change, e.g. `indexing.indexed-entities`.
- value the new value to apply to the attribute, e.g. `org.infinispan.Developer org.infinispan.Engineer`
- flags any flags, e.g. PERMANENT
Note: the attribute is supposed to be mutable in order to be mutated by this operation.
- Since:
- 14.0.7
- Author:
- Fabio Massimo Ercoli
-
Field Summary
Fields inherited from class org.infinispan.server.core.admin.AdminServerTask
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Voidexecute(EmbeddedCacheManager cacheManager, Map<String, List<String>> parameters, EnumSet<CacheContainerAdmin.AdminFlag> flags) The named parameters accepted by this taskMethods inherited from class org.infinispan.server.core.admin.AdminServerTask
execute, getName, getParameter, getType, requireParameterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.tasks.Task
getAllowedRole, getExecutionMode, getInstantiationMode, toJson
-
Constructor Details
-
CacheUpdateConfigurationAttributeTask
public CacheUpdateConfigurationAttributeTask()
-
-
Method Details
-
getTaskContextName
- Specified by:
getTaskContextNamein classAdminServerTask<Void>
-
getTaskOperationName
- Specified by:
getTaskOperationNamein classAdminServerTask<Void>
-
getParameters
Description copied from interface:TaskThe 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:
executein classAdminServerTask<Void>
-