public final class ConfigValidator extends Object
Modifier and Type | Method and Description |
---|---|
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 nearCacheConfig)
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,
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, boolean isClient)
mapName
- name of the map that near cache will be created fornearCacheConfig
- the NearCacheConfig
isClient
- true
if the config is for a Hazelcast client, false
otherwisepublic static void checkLocalUpdatePolicy(String mapName, NearCacheConfig nearCacheConfig)
mapName
- name of the map that near cache will be created fornearCacheConfig
- the nearCacheConfig to be checkedpublic 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
otherwiseCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.