public class StackServiceComponentResponse extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
StackServiceComponentResponse.StackServiceComponentResponseSwagger
Interface to help correct Swagger documentation generation
|
Constructor and Description |
---|
StackServiceComponentResponse(ComponentInfo component)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AutoDeployInfo |
getAutoDeploy()
Get auto deploy information.
|
String |
getBulkCommandsDisplayName() |
String |
getBulkCommandsMasterComponentName() |
String |
getCardinality()
Get cardinality requirement of component.
|
String |
getComponentCategory()
Get component category.
|
String |
getComponentDisplayName()
Get component display name.
|
String |
getComponentName()
Get component name.
|
String |
getComponentType() |
List<String> |
getCustomCommands()
Gets the names of all of the custom commands for this component.
|
String |
getServiceName()
Get service name.
|
String |
getStackName()
Get stack name.
|
String |
getStackVersion()
Get stack version.
|
List<String> |
getVisibleCustomCommands() |
boolean |
hasBulkCommands() |
boolean |
isClient()
Determine whether the component is a client component.
|
boolean |
isDecommissionAlllowed()
Get whether the components can be decommissioned.
|
boolean |
isMaster()
Determine whether the component is a master component.
|
boolean |
isReassignAlllowed()
Get whether the components can be reassigned.
|
boolean |
isRecoveryEnabled()
Get whether auto start is enabled.
|
boolean |
isRollingRestartSupported()
Get whether the component supports rolling restart
|
boolean |
isVersionAdvertised()
Get whether the components needs to advertise a version.
|
void |
setAutoDeploy(AutoDeployInfo autoDeploy)
Set auto deploy information.
|
void |
setCardinality(String cardinality)
Set component cardinality requirement.
|
void |
setClient(boolean isClient)
Set whether the component is a client component.
|
void |
setComponentCategory(String componentCategory)
Set the component category.
|
void |
setComponentDisplayName(String componentDisplayName)
Set component display name.
|
void |
setComponentName(String componentName)
Set component name.
|
void |
setDecommissionAllowed(String decommissionAllowed)
Set whether the component can be decommissioned.
|
void |
setMaster(boolean isMaster)
Set whether the component is a master component.
|
void |
setReassignAllowed(String reassignAllowed)
Set whether the component can be reassigned.
|
void |
setRecoveryEnabled(boolean recoveryEnabled)
Set whether auto start is enabled.
|
void |
setServiceName(String serviceName)
Set service name.
|
void |
setStackName(String stackName)
Set stack name.
|
void |
setStackVersion(String stackVersion)
Set stack version.
|
void |
setVersionAdvertised(boolean versionAdvertised)
Set whether the component needs to advertise a version.
|
public StackServiceComponentResponse(ComponentInfo component)
component
- the component to generate the response from (not null
).public String getStackName()
public void setStackName(String stackName)
stackName
- stack namepublic String getStackVersion()
public void setStackVersion(String stackVersion)
stackVersion
- stack versionpublic String getServiceName()
public void setServiceName(String serviceName)
serviceName
- service namepublic String getComponentName()
public void setComponentName(String componentName)
componentName
- component namepublic String getComponentDisplayName()
public void setComponentDisplayName(String componentDisplayName)
componentDisplayName
- component display namepublic String getComponentCategory()
public void setComponentCategory(String componentCategory)
componentCategory
- component categorypublic boolean isClient()
public void setClient(boolean isClient)
isClient
- whether the component is a clientpublic boolean isMaster()
public void setMaster(boolean isMaster)
isMaster
- whether the component is a masterpublic String getCardinality()
public void setCardinality(String cardinality)
cardinality
- cardinality requirementpublic boolean isVersionAdvertised()
public void setVersionAdvertised(boolean versionAdvertised)
versionAdvertised
- whether the component needs to advertise a versionpublic boolean isDecommissionAlllowed()
public void setDecommissionAllowed(String decommissionAllowed)
decommissionAllowed
- whether the component can be decommissionedpublic boolean isRollingRestartSupported()
public boolean isReassignAlllowed()
public void setReassignAllowed(String reassignAllowed)
reassignAllowed
- whether the component can be reassignedpublic boolean isRecoveryEnabled()
public void setRecoveryEnabled(boolean recoveryEnabled)
recoveryEnabled
- True or false.public AutoDeployInfo getAutoDeploy()
public void setAutoDeploy(AutoDeployInfo autoDeploy)
autoDeploy
- auto deploy infopublic List<String> getCustomCommands()
null
).public boolean hasBulkCommands()
public String getBulkCommandsDisplayName()
public String getBulkCommandsMasterComponentName()
public String getComponentType()
Copyright © 2022 Apache Software Foundation. All rights reserved.