YARN-5184. Fix up incompatible changes introduced on ContainerStatus and NodeReport. Contributed by Sangjin Lee.
This commit is contained in:
parent
c8d0a049b0
commit
a7288da595
@ -85,11 +85,17 @@ public static ContainerStatus newInstance(ContainerId containerId,
|
|||||||
*/
|
*/
|
||||||
@Public
|
@Public
|
||||||
@Evolving
|
@Evolving
|
||||||
public abstract ExecutionType getExecutionType();
|
public ExecutionType getExecutionType() {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
@Private
|
@Private
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract void setExecutionType(ExecutionType executionType);
|
public void setExecutionType(ExecutionType executionType) {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the <code>ContainerState</code> of the container.
|
* Get the <code>ContainerState</code> of the container.
|
||||||
@ -148,11 +154,17 @@ public static ContainerStatus newInstance(ContainerId containerId,
|
|||||||
*/
|
*/
|
||||||
@Public
|
@Public
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract Resource getCapability();
|
public Resource getCapability() {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
@Private
|
@Private
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract void setCapability(Resource capability);
|
public void setCapability(Resource capability) {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all the IP addresses with which the container run.
|
* Get all the IP addresses with which the container run.
|
||||||
@ -160,11 +172,17 @@ public static ContainerStatus newInstance(ContainerId containerId,
|
|||||||
*/
|
*/
|
||||||
@Public
|
@Public
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract List<String> getIPs();
|
public List<String> getIPs() {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
@Private
|
@Private
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract void setIPs(List<String> ips);
|
public void setIPs(List<String> ips) {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the hostname where the container runs.
|
* Get the hostname where the container runs.
|
||||||
@ -172,9 +190,15 @@ public static ContainerStatus newInstance(ContainerId containerId,
|
|||||||
*/
|
*/
|
||||||
@Public
|
@Public
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract String getHost();
|
public String getHost() {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
@Private
|
@Private
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract void setHost(String host);
|
public void setHost(String host) {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -203,12 +203,18 @@ public static NodeReport newInstance(NodeId nodeId, NodeState nodeState,
|
|||||||
*/
|
*/
|
||||||
@Public
|
@Public
|
||||||
@Stable
|
@Stable
|
||||||
public abstract ResourceUtilization getAggregatedContainersUtilization();
|
public ResourceUtilization getAggregatedContainersUtilization() {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
@Private
|
@Private
|
||||||
@Unstable
|
@Unstable
|
||||||
public abstract void setAggregatedContainersUtilization(ResourceUtilization
|
public void setAggregatedContainersUtilization(ResourceUtilization
|
||||||
containersUtilization);
|
containersUtilization) {
|
||||||
|
throw new UnsupportedOperationException(
|
||||||
|
"subclass must implement this method");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get node resource utilization
|
* Get node resource utilization
|
||||||
|
Loading…
Reference in New Issue
Block a user