YARN-8000. Yarn Service component instance name shows up as component name in container record. Contributed by Chandni Singh
This commit is contained in:
parent
32fa3a63e0
commit
4f395063bb
@ -72,7 +72,7 @@ Note, lifetime value of -1 means unlimited lifetime.
|
||||
"state": "READY",
|
||||
"launch_time": 1504051512412,
|
||||
"bare_host": "10.22.8.143",
|
||||
"component_name": "hello-0"
|
||||
"component_instance_name": "hello-0"
|
||||
},
|
||||
{
|
||||
"id": "container_e03_1503963985568_0002_01_000002",
|
||||
@ -81,7 +81,7 @@ Note, lifetime value of -1 means unlimited lifetime.
|
||||
"state": "READY",
|
||||
"launch_time": 1504051536450,
|
||||
"bare_host": "10.22.8.143",
|
||||
"component_name": "hello-1"
|
||||
"component_instance_name": "hello-1"
|
||||
}
|
||||
],
|
||||
"launch_command": "./start_nginx.sh",
|
||||
|
@ -173,20 +173,20 @@ public void setState(ContainerState state) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the component that this container instance belongs to.
|
||||
* Name of the component instance that this container instance belongs to.
|
||||
**/
|
||||
public Container componentName(String componentName) {
|
||||
this.componentInstanceName = componentName;
|
||||
public Container componentInstanceName(String componentInstanceName) {
|
||||
this.componentInstanceName = componentInstanceName;
|
||||
return this;
|
||||
}
|
||||
|
||||
@ApiModelProperty(example = "null", value = "Name of the component that this container instance belongs to.")
|
||||
@JsonProperty("component_name")
|
||||
@ApiModelProperty(example = "null", value = "Name of the component instance that this container instance belongs to.")
|
||||
@JsonProperty("component_instance_name")
|
||||
public String getComponentInstanceName() {
|
||||
return componentInstanceName;
|
||||
}
|
||||
|
||||
@XmlElement(name = "component_name")
|
||||
@XmlElement(name = "component_instance_name")
|
||||
public void setComponentInstanceName(String componentInstanceName) {
|
||||
this.componentInstanceName = componentInstanceName;
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ Note, lifetime value of -1 means unlimited lifetime.
|
||||
"state": "READY",
|
||||
"launch_time": 1504051512412,
|
||||
"bare_host": "10.22.8.143",
|
||||
"component_name": "hello-0"
|
||||
"component_instance_name": "hello-0"
|
||||
},
|
||||
{
|
||||
"id": "container_e03_1503963985568_0002_01_000002",
|
||||
@ -450,7 +450,7 @@ Note, lifetime value of -1 means unlimited lifetime.
|
||||
"state": "READY",
|
||||
"launch_time": 1504051536450,
|
||||
"bare_host": "10.22.8.143",
|
||||
"component_name": "hello-1"
|
||||
"component_instance_name": "hello-1"
|
||||
}
|
||||
],
|
||||
"launch_command": "./start_nginx.sh",
|
||||
|
Loading…
Reference in New Issue
Block a user