public class YarnClientFactoryBean extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.FactoryBean<YarnClient>
YarnClient instances.| Constructor and Description |
|---|
YarnClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
YarnClient |
getObject() |
java.lang.Class<YarnClient> |
getObjectType() |
boolean |
isSingleton() |
void |
setAppName(java.lang.String appName)
Sets the name for submitted application.
|
void |
setAppType(java.lang.String appType)
Sets the type for submitted application.
|
void |
setClientClass(java.lang.Class<? extends YarnClient> clientClass)
Sets the client class.
|
void |
setCommands(java.util.List<java.lang.String> commands)
Sets the commands starting appmaster.
|
void |
setCommands(java.lang.String[] commands)
Sets the commands starting appmaster.
|
void |
setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Sets the Yarn configuration.
|
void |
setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
Sets the environment for appmaster.
|
void |
setMemory(int memory)
Sets the memory.
|
void |
setPriority(int priority)
Sets the priority.
|
void |
setQueue(java.lang.String queue)
Sets the queue.
|
void |
setResourceLocalizer(ResourceLocalizer resourceLocalizer)
Sets the resource localizer for appmaster container.
|
void |
setTemplate(ClientRmOperations template) |
void |
setVirtualcores(int virtualcores)
Sets the virtualcores.
|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic YarnClient getObject() throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<YarnClient>java.lang.Exceptionpublic java.lang.Class<YarnClient> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<YarnClient>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<YarnClient>public void setClientClass(java.lang.Class<? extends YarnClient> clientClass)
clientClass - the new client classpublic void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
configuration - the Yarn configurationpublic void setEnvironment(java.util.Map<java.lang.String,java.lang.String> environment)
environment - the environmentpublic void setCommands(java.util.List<java.lang.String> commands)
commands - the commands starting appmasterpublic void setCommands(java.lang.String[] commands)
commands - the commands starting appmasterpublic void setResourceLocalizer(ResourceLocalizer resourceLocalizer)
resourceLocalizer - the new resource localizerpublic void setAppName(java.lang.String appName)
appName - the new application namepublic void setAppType(java.lang.String appType)
appType - the new application typepublic void setPriority(int priority)
priority - the new prioritypublic void setVirtualcores(int virtualcores)
virtualcores - the new virtualcorespublic void setMemory(int memory)
memory - the new memorypublic void setQueue(java.lang.String queue)
queue - the new queuepublic void setTemplate(ClientRmOperations template)