|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.client.YarnClientFactoryBean
public class YarnClientFactoryBean
Factory bean building YarnClient instances.
| Constructor Summary | |
|---|---|
YarnClientFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
YarnClient |
getObject()
|
Class<YarnClient> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setAppName(String appName)
Sets the name for submitted application. |
void |
setAppType(String appType)
Sets the type for submitted application. |
void |
setClientClass(Class<? extends YarnClient> clientClass)
Sets the client class. |
void |
setCommands(List<String> commands)
Sets the commands starting appmaster. |
void |
setCommands(String[] commands)
Sets the commands starting appmaster. |
void |
setConfiguration(Configuration configuration)
Sets the Yarn configuration. |
void |
setEnvironment(Map<String,String> environment)
Sets the environment for appmaster. |
void |
setMemory(int memory)
Sets the memory. |
void |
setPriority(int priority)
Sets the priority. |
void |
setQueue(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YarnClientFactoryBean()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanException
public YarnClient getObject()
throws Exception
getObject in interface FactoryBean<YarnClient>Exceptionpublic Class<YarnClient> getObjectType()
getObjectType in interface FactoryBean<YarnClient>public boolean isSingleton()
isSingleton in interface FactoryBean<YarnClient>public void setClientClass(Class<? extends YarnClient> clientClass)
clientClass - the new client classpublic void setConfiguration(Configuration configuration)
configuration - the Yarn configurationpublic void setEnvironment(Map<String,String> environment)
environment - the environmentpublic void setCommands(List<String> commands)
commands - the commands starting appmasterpublic void setCommands(String[] commands)
commands - the commands starting appmasterpublic void setResourceLocalizer(ResourceLocalizer resourceLocalizer)
resourceLocalizer - the new resource localizerpublic void setAppName(String appName)
appName - the new application namepublic void setAppType(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(String queue)
queue - the new queuepublic void setTemplate(ClientRmOperations template)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||