public abstract class BaseClusterRequest extends Object implements TopologyRequest
TopologyRequest.Type| Modifier and Type | Field and Description |
|---|---|
protected Blueprint |
blueprint
blueprint
|
protected static BlueprintFactory |
blueprintFactory
blueprint factory
|
protected Long |
clusterId
cluster id
|
protected Configuration |
configuration
configuration
|
protected Map<String,HostGroupInfo> |
hostGroupInfoMap
host group info map
|
static String |
PROVISION_ACTION_PROPERTY
Support for controlling whether Install and Start tasks are created on
blueprint deploy by default.
|
protected ProvisionAction |
provisionAction |
protected SecurityConfiguration |
securityConfiguration
security configuration
|
| Constructor and Description |
|---|
BaseClusterRequest() |
| Modifier and Type | Method and Description |
|---|---|
Blueprint |
getBlueprint()
Get the blueprint instance associated with the request.
|
protected BlueprintFactory |
getBlueprintFactory()
Get the blueprint factory.
|
Long |
getClusterId()
Get the cluster id associated with the request.
|
Configuration |
getConfiguration()
Get the cluster scoped configuration for the request.
|
Map<String,HostGroupInfo> |
getHostGroupInfo()
Get host group info.
|
ProvisionAction |
getProvisionAction()
Get requested @ProvisionClusterRequest.ProvisionAction
|
SecurityConfiguration |
getSecurityConfiguration() |
static void |
init(BlueprintFactory factory)
inject blueprint factory
|
protected void |
setBlueprint(Blueprint blueprint)
Set the request blueprint.
|
protected void |
setConfiguration(Configuration configuration)
Set the request configuration.
|
void |
setProvisionAction(ProvisionAction provisionAction) |
protected void |
validateHostPredicateProperties(String predicate)
Validate that all properties specified in the predicate are valid for the Host resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getTypepublic static final String PROVISION_ACTION_PROPERTY
protected final Map<String,HostGroupInfo> hostGroupInfoMap
protected ProvisionAction provisionAction
protected Long clusterId
protected Blueprint blueprint
protected Configuration configuration
protected SecurityConfiguration securityConfiguration
protected static BlueprintFactory blueprintFactory
public static void init(BlueprintFactory factory)
factory - blueprint factorypublic Long getClusterId()
TopologyRequestnull.getClusterId in interface TopologyRequestpublic Blueprint getBlueprint()
TopologyRequestgetBlueprint in interface TopologyRequestpublic Configuration getConfiguration()
TopologyRequestgetConfiguration in interface TopologyRequestpublic Map<String,HostGroupInfo> getHostGroupInfo()
TopologyRequestgetHostGroupInfo in interface TopologyRequestprotected void validateHostPredicateProperties(String predicate) throws InvalidTopologyTemplateException
predicate - predicate to validateInvalidTopologyTemplateException - if any of the properties specified in the predicate are invalid
for the Host resource typeprotected void setBlueprint(Blueprint blueprint)
blueprint - blueprintprotected void setConfiguration(Configuration configuration)
configuration - configurationprotected BlueprintFactory getBlueprintFactory()
public SecurityConfiguration getSecurityConfiguration()
public ProvisionAction getProvisionAction()
public void setProvisionAction(ProvisionAction provisionAction)
Copyright © 2022 Apache Software Foundation. All rights reserved.