public class HadoopClusterFactoryBean extends Object implements InitializingBean, DisposableBean, FactoryBean<HadoopCluster>
| Constructor and Description |
|---|
HadoopClusterFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
StandaloneHadoopCluster |
getObject() |
Class<HadoopCluster> |
getObjectType() |
boolean |
isSingleton() |
void |
setAutoStart(boolean autoStart)
Set whether cluster should be started automatically
by this factory instance.
|
void |
setClusterId(String clusterId)
Sets the cluster id.
|
void |
setNodes(int nodes)
Sets the number of nodes.
|
public StandaloneHadoopCluster getObject() throws Exception
getObject in interface FactoryBean<HadoopCluster>Exceptionpublic Class<HadoopCluster> getObjectType()
getObjectType in interface FactoryBean<HadoopCluster>public boolean isSingleton()
isSingleton in interface FactoryBean<HadoopCluster>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface DisposableBeanExceptionpublic void setClusterId(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