public abstract class PlannedNodeBuilder extends Object
NodeProvisioner.PlannedNode
implementations for Kubernetes.
Can be subclassed to provide alternative implementations of NodeProvisioner.PlannedNode
.Constructor and Description |
---|
PlannedNodeBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract NodeProvisioner.PlannedNode |
build()
Builds the
NodeProvisioner.PlannedNode instance based on the given inputs. |
PlannedNodeBuilder |
cloud(KubernetesCloud cloud) |
KubernetesCloud |
getCloud()
Returns the
KubernetesCloud . |
Label |
getLabel() |
int |
getNumExecutors() |
PodTemplate |
getTemplate()
Returns the
PodTemplate . |
PlannedNodeBuilder |
label(Label label) |
PlannedNodeBuilder |
numExecutors(int numExecutors) |
PlannedNodeBuilder |
template(PodTemplate template) |
public KubernetesCloud getCloud()
KubernetesCloud
.KubernetesCloud
.public PodTemplate getTemplate()
PodTemplate
.public Label getLabel()
public int getNumExecutors()
public PlannedNodeBuilder cloud(KubernetesCloud cloud)
cloud
- the KubernetesCloud
instance to use.public PlannedNodeBuilder template(PodTemplate template)
template
- the PodTemplate
instance to use.public PlannedNodeBuilder label(Label label)
label
- the Label
to use.public PlannedNodeBuilder numExecutors(int numExecutors)
numExecutors
- the number of executors.public abstract NodeProvisioner.PlannedNode build()
NodeProvisioner.PlannedNode
instance based on the given inputs.NodeProvisioner.PlannedNode
configured from this builder.Copyright © 2016–2019. All rights reserved.