public static class SaharaCluster.ConcreteClusterBuilder extends Object implements ClusterBuilder
Modifier and Type | Method and Description |
---|---|
ClusterBuilder |
addNodeGroup(NodeGroup nodeGroup)
Add a node group
|
ClusterBuilder |
addServiceConfig(String name,
ServiceConfig config)
Add a cluster config
|
Cluster |
build()
Creates and return the Model Entity M
|
ClusterBuilder |
from(Cluster in)
Creates a Builder using the param M as the default values
|
ClusterBuilder |
hadoopVersion(String hadoopVersion)
|
ClusterBuilder |
image(Image image) |
ClusterBuilder |
image(String imageId)
|
ClusterBuilder |
keypairName(String keypairName)
See
Cluster#getKeypairName() |
ClusterBuilder |
managementNetworkId(String networkId)
|
ClusterBuilder |
name(String name)
|
ClusterBuilder |
pluginName(String pluginName)
|
ClusterBuilder |
template(String clusterTemplateId)
|
public ClusterBuilder name(String name)
ClusterBuilder
name
in interface ClusterBuilder
name
- the name of the clusterpublic ClusterBuilder hadoopVersion(String hadoopVersion)
ClusterBuilder
hadoopVersion
in interface ClusterBuilder
hadoopVersion
- the version of hadooppublic ClusterBuilder pluginName(String pluginName)
ClusterBuilder
pluginName
in interface ClusterBuilder
pluginName
- the name of the sahara pluginpublic ClusterBuilder template(String clusterTemplateId)
ClusterBuilder
template
in interface ClusterBuilder
clusterTemplateId
- the id of cluster templatepublic ClusterBuilder image(String imageId)
ClusterBuilder
image
in interface ClusterBuilder
imageId
- the id of imagepublic ClusterBuilder image(Image image)
public ClusterBuilder keypairName(String keypairName)
ClusterBuilder
Cluster#getKeypairName()
keypairName
in interface ClusterBuilder
keypairName
- the name of key pairpublic ClusterBuilder managementNetworkId(String networkId)
ClusterBuilder
managementNetworkId
in interface ClusterBuilder
networkId
- the id of management networkpublic ClusterBuilder addNodeGroup(NodeGroup nodeGroup)
ClusterBuilder
addNodeGroup
in interface ClusterBuilder
nodeGroup
- the node grouppublic ClusterBuilder addServiceConfig(String name, ServiceConfig config)
ClusterBuilder
addServiceConfig
in interface ClusterBuilder
name
- the service nameconfig
- the configpublic Cluster build()
Buildable.Builder
build
in interface Buildable.Builder<ClusterBuilder,Cluster>
public ClusterBuilder from(Cluster in)
Buildable.Builder
from
in interface Buildable.Builder<ClusterBuilder,Cluster>
Copyright © 2017. All rights reserved.