public abstract class AbstractHadoopClusterTests
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware| 修飾子と型 | フィールドと説明 |
|---|---|
protected org.springframework.context.ApplicationContext | applicationContext |
protected org.apache.hadoop.conf.Configuration | configuration |
protected HadoopCluster | hadoopCluster |
| コンストラクターと説明 |
|---|
AbstractHadoopClusterTests() |
| 修飾子と型 | メソッドと説明 |
|---|---|
org.springframework.context.ApplicationContext | getApplicationContext() テスト用の ApplicationContext を取得します。 |
org.apache.hadoop.conf.Configuration | getConfiguration() テスト用に実行中のクラスターランタイム Configuration を取得します。 |
protected org.apache.hadoop.fs.FileSystem | getFileSystem() テストケースがファイルを読み書きできるように構成された FileSystem インスタンスを返します。 |
HadoopCluster | getHadoopCluster() テスト用に実行中の HadoopCluster を取得します。 |
void | setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void | setConfiguration(org.apache.hadoop.conf.Configuration configuration)Configuration を設定します。 |
void | setHadoopCluster(HadoopCluster hadoopCluster)HadoopCluster を設定します |
protected org.springframework.context.ApplicationContext applicationContext
protected org.apache.hadoop.conf.Configuration configuration
protected HadoopCluster hadoopCluster
public org.springframework.context.ApplicationContext getApplicationContext()
ApplicationContext を取得します。public final void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
org.springframework.context.ApplicationContextAware 内の setApplicationContext public org.apache.hadoop.conf.Configuration getConfiguration()
Configuration を取得します。@Autowired public void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
Configuration を設定します。configuration - 構成 public HadoopCluster getHadoopCluster()
HadoopCluster を取得します。@Autowired public void setHadoopCluster(HadoopCluster hadoopCluster)
HadoopCluster を設定します hadoopCluster - Hadoop クラスター protected org.apache.hadoop.fs.FileSystem getFileSystem()
throws java.io.IOExceptionFileSystem インスタンスを返します。 テストではこの FileSystem インスタンスを使用する必要があります。
java.io.IOException - 例外