use of com.hazelcast.config.AutoDetectionConfig in project hazelcast by hazelcast.
the class ClientDomConfigProcessor method handleAutoDetection.
protected void handleAutoDetection(Node node, ClientNetworkConfig clientNetworkConfig) {
AutoDetectionConfig discoveryConfig = clientNetworkConfig.getAutoDetectionConfig();
NamedNodeMap atts = node.getAttributes();
for (int i = 0; i < atts.getLength(); i++) {
Node att = atts.item(i);
if (matches("enabled", lowerCaseInternal(att.getNodeName()))) {
discoveryConfig.setEnabled(getBooleanValue(getTextContent(att)));
}
}
}
use of com.hazelcast.config.AutoDetectionConfig in project hazelcast by hazelcast.
the class MemberDomConfigProcessor method handleAutoDetection.
private void handleAutoDetection(Node node, boolean advancedNetworkConfig) {
JoinConfig join = joinConfig(advancedNetworkConfig);
AutoDetectionConfig autoDetectionConfig = join.getAutoDetectionConfig();
NamedNodeMap attributes = node.getAttributes();
for (int a = 0; a < attributes.getLength(); a++) {
Node att = attributes.item(a);
if (matches("enabled", lowerCaseInternal(att.getNodeName()))) {
autoDetectionConfig.setEnabled(getBooleanValue(getTextContent(att)));
}
}
}
Aggregations