Spring for Apache Hadoop

org.springframework.yarn.am
Interface YarnAppmaster

All Known Subinterfaces:
BatchYarnAppmaster
All Known Implementing Classes:
AbstractBatchAppmaster, BatchAppmaster, StaticAppmaster, StaticEventingAppmaster

public interface YarnAppmaster

Interface defining main application master methods needed for external launch implementations.

Author:
Janne Valkealahti

Method Summary
 void addAppmasterStateListener(AppmasterStateListener listener)
          Adds the appmaster state listener.
 void setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
          Sets the environment variables.
 void setParameters(java.util.Properties parameters)
          Sets parameters for the appmaster.
 void submitApplication()
          Submit and run application.
 

Method Detail

submitApplication

void submitApplication()
Submit and run application.


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 an appmaster.

Parameters:
environment - the environment variables

setParameters

void setParameters(java.util.Properties parameters)
Sets parameters for the appmaster.

Parameters:
parameters - the parameters to set

addAppmasterStateListener

void addAppmasterStateListener(AppmasterStateListener listener)
Adds the appmaster state listener.

Parameters:
listener - the AppmasterStateListener

Spring for Apache Hadoop