|
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.test.support.YarnClusterFactoryBean
public class YarnClusterFactoryBean
Factory bean building Yarn mini clusters.
| Constructor Summary | |
|---|---|
YarnClusterFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
destroy()
|
StandaloneYarnCluster |
getObject()
|
java.lang.Class<YarnCluster> |
getObjectType()
|
boolean |
isSingleton()
|
void |
setAutoStart(boolean autoStart)
Set whether cluster should be started automatically by this factory instance. |
void |
setClusterId(java.lang.String clusterId)
Sets the cluster id. |
void |
setNodes(int nodes)
Sets the number of nodes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YarnClusterFactoryBean()
| Method Detail |
|---|
public StandaloneYarnCluster getObject()
throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<YarnCluster>java.lang.Exceptionpublic java.lang.Class<YarnCluster> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<YarnCluster>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<YarnCluster>
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
public void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic void setClusterId(java.lang.String clusterId)
clusterId - the cluster idpublic void setAutoStart(boolean autoStart)
autoStart - the flag if cluster should be started automaticallypublic void setNodes(int nodes)
nodes - the number of nodes
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||