Spring for Apache Hadoop

org.springframework.yarn.container
Interface YarnContainer

All Known Subinterfaces:
LongRunningYarnContainer
All Known Implementing Classes:
AbstractBatchYarnContainer, AbstractIntegrationYarnContainer, AbstractYarnContainer, DefaultBatchYarnContainer, DefaultYarnContainer

public interface YarnContainer

A simple interface for container implementations which should work together with rest of the framework when something in a container should be executed.

Author:
Janne Valkealahti

Method Summary
 void run()
          This method is called when something is ran in a container.
 void setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
          Sets the environment variables.
 void setParameters(java.util.Properties parameters)
          Sets the parameters.
 

Method Detail

run

void run()
This method is called when something is ran in a container.


setEnvironment

void setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
Sets the environment variables. This method should be used by a launcher or any other party handling creation of a container.

Parameters:
environment - the environment variables

setParameters

void setParameters(java.util.Properties parameters)
Sets the parameters. This method should be used by a launcher or any other party handling being aware of a command line parameters.

Parameters:
parameters - the parameters

Spring for Apache Hadoop