org.springframework.yarn.am
Interface YarnAppmaster

All Known Implementing Classes:
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(Map<String,String> environment)
          Sets the environment variables.
 void setParameters(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(Map<String,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(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