@InterfaceAudience.Private @InterfaceStability.Unstable public class GlobalBuilder extends Object implements Builder<Global>
Global.
The properties of the builder can only be set once, an attempt to set them a second time will trigger
an IllegalStateException. The properties that are lists are an exception to this rule, of course multiple
elements can be added / removed.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to build() either.| Modifier and Type | Method and Description |
|---|---|
Global |
build()
Builds and returns an object.
|
GlobalBuilder |
clearJobXmls() |
static GlobalBuilder |
create() |
static GlobalBuilder |
createFromExisting(HasAttributes hasAttributes) |
GlobalBuilder |
withConfigProperty(String key,
String value) |
GlobalBuilder |
withJobXml(String jobXml) |
GlobalBuilder |
withLauncher(Launcher launcher) |
GlobalBuilder |
withNameNode(String nameNode) |
GlobalBuilder |
withoutJobXml(String jobXml) |
GlobalBuilder |
withResourceManager(String resourceManager) |
public static GlobalBuilder create()
public static GlobalBuilder createFromExisting(HasAttributes hasAttributes)
public GlobalBuilder withResourceManager(String resourceManager)
public GlobalBuilder withNameNode(String nameNode)
public GlobalBuilder withLauncher(Launcher launcher)
public GlobalBuilder withJobXml(String jobXml)
public GlobalBuilder withoutJobXml(String jobXml)
public GlobalBuilder clearJobXmls()
public GlobalBuilder withConfigProperty(String key, String value)
Copyright © 2021 Apache Software Foundation. All rights reserved.