@InterfaceAudience.Public @InterfaceStability.Unstable public class Component extends Object implements Serializable
Constructor and Description |
---|
Component() |
Modifier and Type | Method and Description |
---|---|
void |
addContainer(Container container) |
void |
addDecommissionedInstance(String componentInstanceName) |
Component |
artifact(Artifact artifact)
Artifact of the component (optional).
|
Component |
configuration(Configuration configuration)
Config properties for this component.
|
Component |
decommissionedInstances(List<String> decommissionedInstances)
A list of decommissioned component instances.
|
Component |
dependencies(List<String> dependencies)
An array of service components which should be in READY state (as
defined by readiness check), before this component can be started.
|
boolean |
equals(Object o) |
Artifact |
getArtifact() |
Container |
getComponentInstance(String compInstanceName) |
Configuration |
getConfiguration() |
Container |
getContainer(String id) |
List<Container> |
getContainers() |
List<String> |
getDecommissionedInstances() |
List<String> |
getDependencies() |
String |
getLaunchCommand() |
String |
getName() |
Long |
getNumberOfContainers() |
PlacementPolicy |
getPlacementPolicy() |
List<String> |
getQuicklinks() |
ReadinessCheck |
getReadinessCheck() |
Resource |
getResource() |
org.apache.hadoop.yarn.service.api.records.Component.RestartPolicyEnum |
getRestartPolicy()
Policy of restart component.
|
Boolean |
getRunPrivilegedContainer() |
ComponentState |
getState() |
int |
hashCode() |
Component |
launchCommand(String launchCommand)
The custom launch command of this component (optional).
|
void |
mergeFrom(Component that)
Merge from another component into this component without overwriting.
|
Component |
name(String name)
Name of the service component (mandatory).
|
Component |
numberOfContainers(Long numberOfContainers)
Number of containers for this component (optional).
|
void |
overwrite(Component that) |
Component |
placementPolicy(PlacementPolicy placementPolicy)
Advanced scheduling and placement policies for all containers of this
component.
|
Component |
quicklinks(List<String> quicklinks)
A list of quicklink keys defined at the service level, and to be
resolved by this component.
|
Component |
readinessCheck(ReadinessCheck readinessCheck)
Readiness check for this component.
|
void |
removeContainer(Container container) |
Component |
resource(Resource resource)
Resource of this component (optional).
|
Component |
restartPolicy(org.apache.hadoop.yarn.service.api.records.Component.RestartPolicyEnum restartPolicyEnumVal) |
Component |
runPrivilegedContainer(Boolean runPrivilegedContainer)
Run all containers of this component in privileged mode (YARN-4262).
|
void |
setArtifact(Artifact artifact) |
void |
setConfiguration(Configuration configuration) |
void |
setContainers(List<Container> containers) |
void |
setDecommissionedInstances(List<String> decommissionedInstances) |
void |
setDependencies(List<String> dependencies) |
void |
setLaunchCommand(String launchCommand) |
void |
setName(String name) |
void |
setNumberOfContainers(Long numberOfContainers) |
void |
setPlacementPolicy(PlacementPolicy placementPolicy) |
void |
setQuicklinks(List<String> quicklinks) |
void |
setReadinessCheck(ReadinessCheck readinessCheck) |
void |
setResource(Resource resource) |
void |
setRestartPolicy(org.apache.hadoop.yarn.service.api.records.Component.RestartPolicyEnum restartPolicy) |
void |
setRunPrivilegedContainer(Boolean runPrivilegedContainer) |
void |
setState(ComponentState state) |
Component |
state(ComponentState state) |
String |
toString() |
public Component restartPolicy(org.apache.hadoop.yarn.service.api.records.Component.RestartPolicyEnum restartPolicyEnumVal)
public org.apache.hadoop.yarn.service.api.records.Component.RestartPolicyEnum getRestartPolicy()
public void setRestartPolicy(org.apache.hadoop.yarn.service.api.records.Component.RestartPolicyEnum restartPolicy)
public String getName()
public void setName(String name)
public Component dependencies(List<String> dependencies)
public Component readinessCheck(ReadinessCheck readinessCheck)
public ReadinessCheck getReadinessCheck()
public void setReadinessCheck(ReadinessCheck readinessCheck)
public Component artifact(Artifact artifact)
public Artifact getArtifact()
public void setArtifact(Artifact artifact)
public Component launchCommand(String launchCommand)
public String getLaunchCommand()
public void setLaunchCommand(String launchCommand)
public Component resource(Resource resource)
public Resource getResource()
public void setResource(Resource resource)
public Component numberOfContainers(Long numberOfContainers)
public Long getNumberOfContainers()
public void setNumberOfContainers(Long numberOfContainers)
public Component decommissionedInstances(List<String> decommissionedInstances)
public void setDecommissionedInstances(List<String> decommissionedInstances)
public void addDecommissionedInstance(String componentInstanceName)
public void addContainer(Container container)
public void removeContainer(Container container)
public Component runPrivilegedContainer(Boolean runPrivilegedContainer)
public Boolean getRunPrivilegedContainer()
public void setRunPrivilegedContainer(Boolean runPrivilegedContainer)
public Component placementPolicy(PlacementPolicy placementPolicy)
public PlacementPolicy getPlacementPolicy()
public void setPlacementPolicy(PlacementPolicy placementPolicy)
public Component configuration(Configuration configuration)
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
public Component quicklinks(List<String> quicklinks)
public Component state(ComponentState state)
public ComponentState getState()
public void setState(ComponentState state)
public void mergeFrom(Component that)
public void overwrite(Component that)
Copyright © 2024 Apache Software Foundation. All rights reserved.