Spring for Apache Hadoop

org.springframework.yarn.launch
Class LaunchCommandsFactoryBean

java.lang.Object
  extended by org.springframework.yarn.launch.LaunchCommandsFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<java.lang.String[]>, org.springframework.beans.factory.InitializingBean

public class LaunchCommandsFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<java.lang.String[]>

Factory bean helping to construct a command meant to start application master or a container.

Author:
Janne Valkealahti

Constructor Summary
LaunchCommandsFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.String[] getObject()
           
 java.lang.Class<java.lang.String[]> getObjectType()
           
 boolean isSingleton()
           
 void setArguments(java.util.Properties arguments)
          Sets the arguments.
 void setBeanName(java.lang.String beanName)
          Sets the bean name.
 void setCommand(java.lang.String command)
          Sets the main command.
 void setContextFile(java.lang.String contextFile)
          Sets the context file.
 void setRunner(java.lang.Class<? extends AbstractCommandLineRunner<?>> runner)
          Sets the runner class.
 void setStderr(java.lang.String stderr)
          Sets the stderr.
 void setStdout(java.lang.String stdout)
          Sets the stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaunchCommandsFactoryBean

public LaunchCommandsFactoryBean()
Method Detail

getObject

public java.lang.String[] getObject()
                             throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<java.lang.String[]>
Throws:
java.lang.Exception

getObjectType

public java.lang.Class<java.lang.String[]> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<java.lang.String[]>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<java.lang.String[]>

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

setCommand

public void setCommand(java.lang.String command)
Sets the main command.

Parameters:
command - the new command

setRunner

public void setRunner(java.lang.Class<? extends AbstractCommandLineRunner<?>> runner)
Sets the runner class.

Parameters:
runner - the new runner

setContextFile

public void setContextFile(java.lang.String contextFile)
Sets the context file.

Parameters:
contextFile - the new context file

setBeanName

public void setBeanName(java.lang.String beanName)
Sets the bean name.

Parameters:
beanName - the new bean name

setArguments

public void setArguments(java.util.Properties arguments)
Sets the arguments.

Parameters:
arguments - the new arguments

setStdout

public void setStdout(java.lang.String stdout)
Sets the stdout.

Parameters:
stdout - the new stdout

setStderr

public void setStderr(java.lang.String stderr)
Sets the stderr.

Parameters:
stderr - the new stderr

Spring for Apache Hadoop