Spring for Apache Hadoop

org.springframework.yarn.am.assign
Interface ContainerAssign<E>

Type Parameters:
E - the type of data assigned
All Known Implementing Classes:
DefaultContainerAssign

public interface ContainerAssign<E>

Interface storing and keeping data associated with a container. This is useful when i.e. container is failing and appmaster needs to decide what to do with it.

Author:
Janne Valkealahti

Method Summary
 void assign(org.apache.hadoop.yarn.api.records.ContainerId containerId, E data)
          Assign data with container.
 org.apache.hadoop.yarn.api.records.ContainerId getAssignedContainer(E data)
          Gets the assigned container.
 E getAssignedData(org.apache.hadoop.yarn.api.records.ContainerId containerId)
          Gets the assigned data.
 

Method Detail

assign

void assign(org.apache.hadoop.yarn.api.records.ContainerId containerId,
            E data)
Assign data with container.

Parameters:
containerId - the container id
data - the data

getAssignedData

E getAssignedData(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Gets the assigned data.

Parameters:
containerId - the container id
Returns:
the assigned data

getAssignedContainer

org.apache.hadoop.yarn.api.records.ContainerId getAssignedContainer(E data)
Gets the assigned container.

Parameters:
data - the data
Returns:
the assigned container

Spring for Apache Hadoop