public final class ConfigValidator extends Object
Modifier and Type | Method and Description |
---|---|
static void |
checkCacheConfig(CacheSimpleConfig cacheSimpleConfig)
Validates
CacheSimpleConfig . |
static void |
checkCacheConfig(InMemoryFormat inMemoryFormat,
EvictionConfig evictionConfig)
|
static void |
checkEvictionConfig(EvictionConfig evictionConfig,
boolean isNearCache)
Checks if a
EvictionConfig is valid in its context. |
static void |
checkEvictionConfig(EvictionPolicy evictionPolicy,
String comparatorClassName,
Object comparator,
boolean isNearCache)
Checks if parameters for an
EvictionConfig are valid in their context. |
static void |
checkLocalUpdatePolicy(String mapName,
NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
Checks IMaps' supported Near Cache local update policy configuration.
|
static void |
checkMapConfig(MapConfig mapConfig)
Checks preconditions to create a map proxy.
|
static void |
checkNearCacheConfig(String mapName,
NearCacheConfig nearCacheConfig,
NativeMemoryConfig nativeMemoryConfig,
boolean isClient)
Checks preconditions to create a map proxy with Near Cache.
|
public static void checkMapConfig(MapConfig mapConfig)
mapConfig
- the MapConfig
public static void checkNearCacheConfig(String mapName, NearCacheConfig nearCacheConfig, NativeMemoryConfig nativeMemoryConfig, boolean isClient)
mapName
- name of the map that Near Cache will be created fornearCacheConfig
- the NearCacheConfig
to be checkedisClient
- true
if the config is for a Hazelcast client, false
otherwisepublic static void checkLocalUpdatePolicy(String mapName, NearCacheConfig.LocalUpdatePolicy localUpdatePolicy)
mapName
- name of the map that Near Cache will be created forlocalUpdatePolicy
- local update policypublic static void checkEvictionConfig(EvictionConfig evictionConfig, boolean isNearCache)
EvictionConfig
is valid in its context.evictionConfig
- the EvictionConfig
isNearCache
- true
if the config is for a Near Cache, false
otherwisepublic static void checkEvictionConfig(EvictionPolicy evictionPolicy, String comparatorClassName, Object comparator, boolean isNearCache)
EvictionConfig
are valid in their context.evictionPolicy
- the EvictionPolicy
for the EvictionConfig
comparatorClassName
- the comparator class name for the EvictionConfig
comparator
- the comparator implementation for the EvictionConfig
isNearCache
- true
if the config is for a Near Cache, false
otherwisepublic static void checkCacheConfig(CacheSimpleConfig cacheSimpleConfig)
CacheSimpleConfig
.cacheSimpleConfig
- public static void checkCacheConfig(InMemoryFormat inMemoryFormat, EvictionConfig evictionConfig)
inMemoryFormat
- the in-memory format the Cache
is configured withevictionConfig
- eviction configuration of Cache
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.