|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.data.hadoop.test.junit.AbstractHadoopClusterTests
public abstract class AbstractHadoopClusterTests
Abstract base class providing default functionality for running tests using Hadoop mini cluster.
| Field Summary | |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
|
protected org.apache.hadoop.conf.Configuration |
configuration
|
protected HadoopCluster |
hadoopCluster
|
| Constructor Summary | |
|---|---|
AbstractHadoopClusterTests()
|
|
| Method Summary | |
|---|---|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the ApplicationContext for tests. |
org.apache.hadoop.conf.Configuration |
getConfiguration()
Gets the running cluster runtime Configuration for tests. |
protected org.apache.hadoop.fs.FileSystem |
getFileSystem()
Returns a configured FileSystem instance for
test cases to read and write files to it. |
HadoopCluster |
getHadoopCluster()
Gets the running HadoopCluster for tests. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Sets the Configuration. |
void |
setHadoopCluster(HadoopCluster hadoopCluster)
Sets the HadoopCluster |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.springframework.context.ApplicationContext applicationContext
protected org.apache.hadoop.conf.Configuration configuration
protected HadoopCluster hadoopCluster
| Constructor Detail |
|---|
public AbstractHadoopClusterTests()
| Method Detail |
|---|
public org.springframework.context.ApplicationContext getApplicationContext()
ApplicationContext for tests.
public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic org.apache.hadoop.conf.Configuration getConfiguration()
Configuration for tests.
@Autowired public void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Configuration.
configuration - the Configurationpublic HadoopCluster getHadoopCluster()
HadoopCluster for tests.
@Autowired public void setHadoopCluster(HadoopCluster hadoopCluster)
HadoopCluster
hadoopCluster - the Hadoop cluster
protected org.apache.hadoop.fs.FileSystem getFileSystem()
throws java.io.IOException
FileSystem instance for
test cases to read and write files to it.
Tests should use this FileSystem instance.
java.io.IOException
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||