public final class AliasedDiscoveryConfigUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<AliasedDiscoveryConfig<?>> |
aliasedDiscoveryConfigsFrom(JoinConfig config)
Gets a list of all aliased discovery configs from
config . |
static List<AliasedDiscoveryConfig<?>> |
aliasedDiscoveryConfigsFrom(WanPublisherConfig config)
Gets a list of all aliased discovery configs from
config . |
static boolean |
allUsePublicAddress(List<AliasedDiscoveryConfig<?>> configs)
Checks whether all aliased discovery configs have the tag <use-public-ip>true</use-public-ip.
|
static List<DiscoveryStrategyConfig> |
createDiscoveryStrategyConfigs(JoinConfig config)
Extracts aliased discovery configs from
config and creates a list of DiscoveryStrategyConfig out of them. |
static List<DiscoveryStrategyConfig> |
createDiscoveryStrategyConfigs(WanPublisherConfig config)
Extracts aliased discovery configs from
config and creates a list of DiscoveryStrategyConfig out of them. |
static AliasedDiscoveryConfig |
getConfigByTag(JoinConfig config,
String tag)
|
static AliasedDiscoveryConfig |
getConfigByTag(WanPublisherConfig config,
String tag)
|
static List<DiscoveryStrategyConfig> |
map(List<AliasedDiscoveryConfig<?>> aliasedDiscoveryConfigs)
Maps aliased discovery strategy configs into discovery strategy configs.
|
static AliasedDiscoveryConfig |
newConfigFor(String tag)
Creates new
AliasedDiscoveryConfig by the given tag . |
static boolean |
supports(String tag)
Checks whether the given XML
tag is supported. |
static String |
tagFor(AliasedDiscoveryConfig config)
Returns an XML tag (e.g.
|
public static boolean supports(String tag)
tag
is supported.public static String tagFor(AliasedDiscoveryConfig config)
public static List<DiscoveryStrategyConfig> createDiscoveryStrategyConfigs(JoinConfig config)
config
and creates a list of DiscoveryStrategyConfig
out of them.public static List<DiscoveryStrategyConfig> createDiscoveryStrategyConfigs(WanPublisherConfig config)
config
and creates a list of DiscoveryStrategyConfig
out of them.public static List<DiscoveryStrategyConfig> map(List<AliasedDiscoveryConfig<?>> aliasedDiscoveryConfigs)
public static AliasedDiscoveryConfig getConfigByTag(JoinConfig config, String tag)
public static AliasedDiscoveryConfig getConfigByTag(WanPublisherConfig config, String tag)
public static List<AliasedDiscoveryConfig<?>> aliasedDiscoveryConfigsFrom(JoinConfig config)
config
.public static List<AliasedDiscoveryConfig<?>> aliasedDiscoveryConfigsFrom(WanPublisherConfig config)
config
.public static boolean allUsePublicAddress(List<AliasedDiscoveryConfig<?>> configs)
Note that if no config is enabled, then the method returns false.
public static AliasedDiscoveryConfig newConfigFor(String tag)
AliasedDiscoveryConfig
by the given tag
.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.