Spring for Apache Hadoop

org.springframework.yarn.am.allocate
Interface ContainerAllocator

All Known Implementing Classes:
DefaultContainerAllocator

public interface ContainerAllocator

General interface for container allocators.

Author:
Janne Valkealahti

Method Summary
 void addListener(ContainerAllocatorListener listener)
          Adds the ContainerAllocatorListener.
 void allocateContainers(ContainerAllocateData containerAllocateData)
          Allocate new containers.
 void allocateContainers(int count)
          Allocate new containers.
 void releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
          Release container.
 void releaseContainers(java.util.List<org.apache.hadoop.yarn.api.records.Container> containers)
          Release containers.
 void setProgress(float progress)
          Sets the current progress of application.
 

Method Detail

allocateContainers

void allocateContainers(int count)
Allocate new containers.

Parameters:
count - the new container count to allocate

allocateContainers

void allocateContainers(ContainerAllocateData containerAllocateData)
Allocate new containers.

Parameters:
containerAllocateData - the ContainerAllocateData

releaseContainers

void releaseContainers(java.util.List<org.apache.hadoop.yarn.api.records.Container> containers)
Release containers.

Parameters:
containers - the containers

releaseContainer

void releaseContainer(org.apache.hadoop.yarn.api.records.ContainerId containerId)
Release container.

Parameters:
containerId - the container id

addListener

void addListener(ContainerAllocatorListener listener)
Adds the ContainerAllocatorListener.

Parameters:
listener - the ContainerAllocatorListener

setProgress

void setProgress(float progress)
Sets the current progress of application.

Parameters:
progress - the current progress of application

Spring for Apache Hadoop