public static class SaharaClusterTemplate.ConcreteClusterTemplateBuilder extends Object implements ClusterTemplateBuilder
Modifier and Type | Method and Description |
---|---|
ClusterTemplateBuilder |
addNodeGroup(NodeGroup nodeGroup)
Add a node group
|
ClusterTemplateBuilder |
addServiceConfig(String name,
ServiceConfig config)
Add a cluster config
|
ClusterTemplate |
build()
Creates and return the Model Entity M
|
ClusterTemplateBuilder |
description(String description)
|
ClusterTemplateBuilder |
from(ClusterTemplate in)
Creates a Builder using the param M as the default values
|
ClusterTemplateBuilder |
hadoopVersion(String hadoopVersion)
|
ClusterTemplateBuilder |
managementNetworkId(String networkId)
See
ClusterTemplate#getNeutronManagementNetworkId() |
ClusterTemplateBuilder |
name(String name)
|
ClusterTemplateBuilder |
pluginName(String pluginName)
|
public ClusterTemplate build()
Buildable.Builder
build
in interface Buildable.Builder<ClusterTemplateBuilder,ClusterTemplate>
public ClusterTemplateBuilder from(ClusterTemplate in)
Buildable.Builder
from
in interface Buildable.Builder<ClusterTemplateBuilder,ClusterTemplate>
public ClusterTemplateBuilder pluginName(String pluginName)
ClusterTemplateBuilder
pluginName
in interface ClusterTemplateBuilder
pluginName
- the name of the sahara pluginpublic ClusterTemplateBuilder hadoopVersion(String hadoopVersion)
ClusterTemplateBuilder
hadoopVersion
in interface ClusterTemplateBuilder
hadoopVersion
- the version of hadooppublic ClusterTemplateBuilder addNodeGroup(NodeGroup nodeGroup)
ClusterTemplateBuilder
addNodeGroup
in interface ClusterTemplateBuilder
nodeGroup
- the node grouppublic ClusterTemplateBuilder name(String name)
ClusterTemplateBuilder
name
in interface ClusterTemplateBuilder
name
- the name of the cluster templatepublic ClusterTemplateBuilder description(String description)
ClusterTemplateBuilder
description
in interface ClusterTemplateBuilder
description
- the description of cluster templatepublic ClusterTemplateBuilder managementNetworkId(String networkId)
ClusterTemplateBuilder
ClusterTemplate#getNeutronManagementNetworkId()
managementNetworkId
in interface ClusterTemplateBuilder
networkId
- the id of management networkpublic ClusterTemplateBuilder addServiceConfig(String name, ServiceConfig config)
ClusterTemplateBuilder
addServiceConfig
in interface ClusterTemplateBuilder
name
- the service nameconfig
- the configCopyright © 2017. All rights reserved.