public static interface NodeOverrides.Builder extends SdkPojo, CopyableBuilder<NodeOverrides.Builder,NodeOverrides>
Modifier and Type | Method and Description |
---|---|
NodeOverrides.Builder |
nodePropertyOverrides(Collection<NodePropertyOverride> nodePropertyOverrides)
The node property overrides for the job.
|
NodeOverrides.Builder |
nodePropertyOverrides(Consumer<NodePropertyOverride.Builder>... nodePropertyOverrides)
The node property overrides for the job.
|
NodeOverrides.Builder |
nodePropertyOverrides(NodePropertyOverride... nodePropertyOverrides)
The node property overrides for the job.
|
NodeOverrides.Builder |
numNodes(Integer numNodes)
The number of nodes to use with a multi-node parallel job.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
NodeOverrides.Builder numNodes(Integer numNodes)
The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes that are specified in the job definition. To use this override:
There must be at least one node range in your job definition that has an open upper boundary (such as
:
or n:
).
The lower boundary of the node range specified in the job definition must be fewer than the number of nodes specified in the override.
The main node index specified in the job definition must be fewer than the number of nodes specified in the override.
numNodes
- The number of nodes to use with a multi-node parallel job. This value overrides the number of nodes
that are specified in the job definition. To use this override:
There must be at least one node range in your job definition that has an open upper boundary (such as
:
or n:
).
The lower boundary of the node range specified in the job definition must be fewer than the number of nodes specified in the override.
The main node index specified in the job definition must be fewer than the number of nodes specified in the override.
NodeOverrides.Builder nodePropertyOverrides(Collection<NodePropertyOverride> nodePropertyOverrides)
The node property overrides for the job.
nodePropertyOverrides
- The node property overrides for the job.NodeOverrides.Builder nodePropertyOverrides(NodePropertyOverride... nodePropertyOverrides)
The node property overrides for the job.
nodePropertyOverrides
- The node property overrides for the job.NodeOverrides.Builder nodePropertyOverrides(Consumer<NodePropertyOverride.Builder>... nodePropertyOverrides)
The node property overrides for the job.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #nodePropertyOverrides(List)
.nodePropertyOverrides
- a consumer that will call methods on List.Builder
#nodePropertyOverrides(List)
Copyright © 2020. All rights reserved.