expose settings builder in the node builder API
This commit is contained in:
parent
f6777f1e03
commit
e87a4117b6
|
@ -68,6 +68,20 @@ public class NodeBuilder {
|
|||
return new NodeBuilder();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set addition settings simply by working directly against the settings builder.
|
||||
*/
|
||||
public ImmutableSettings.Builder settings() {
|
||||
return settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set addition settings simply by working directly against the settings builder.
|
||||
*/
|
||||
public ImmutableSettings.Builder getSettings() {
|
||||
return settings;
|
||||
}
|
||||
|
||||
/**
|
||||
* Explicit node settings to set.
|
||||
*/
|
||||
|
|
|
@ -41,6 +41,10 @@ public class GNodeBuilder {
|
|||
new GNodeBuilder()
|
||||
}
|
||||
|
||||
public ImmutableSettings.Builder getSettings() {
|
||||
return settingsBuilder;
|
||||
}
|
||||
|
||||
def settings(Settings.Builder settings) {
|
||||
settingsBuilder.put(settings.build())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue