public class DefaultContainerAssign extends java.lang.Object implements ContainerAssign<java.lang.Object>
ContainerAssign
implementation using
Object
s as assigned data.Constructor and Description |
---|
DefaultContainerAssign() |
Modifier and Type | Method and Description |
---|---|
void |
assign(org.apache.hadoop.yarn.api.records.ContainerId containerId,
java.lang.Object data)
Assign data with container.
|
org.apache.hadoop.yarn.api.records.ContainerId |
getAssignedContainer(java.lang.Object data)
Gets the assigned container.
|
java.lang.Object |
getAssignedData(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Gets the assigned data.
|
public void assign(org.apache.hadoop.yarn.api.records.ContainerId containerId, java.lang.Object data)
ContainerAssign
assign
in interface ContainerAssign<java.lang.Object>
containerId
- the container iddata
- the datapublic java.lang.Object getAssignedData(org.apache.hadoop.yarn.api.records.ContainerId containerId)
ContainerAssign
getAssignedData
in interface ContainerAssign<java.lang.Object>
containerId
- the container idpublic org.apache.hadoop.yarn.api.records.ContainerId getAssignedContainer(java.lang.Object data)
ContainerAssign
getAssignedContainer
in interface ContainerAssign<java.lang.Object>
data
- the data