|
Spring for Apache Hadoop | ||||||||
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()
|
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. |
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 java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public YarnClient getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<YarnClient>
java.lang.Exception
public 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)
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |