org.springframework.data.hadoop.test.context
Interface HadoopCluster

All Known Implementing Classes:
StandaloneHadoopCluster

public interface HadoopCluster

Interface for Hadoop miniclusters.

Author:
Janne Valkealahti

Method Summary
 Configuration getConfiguration()
          Gets the Configuration for the cluster.
 FileSystem getFileSystem()
          Gets the configured FileSystem managed by HadoopCluster.
 void start()
          Starts the cluster.
 void stop()
          Stops the cluster.
 

Method Detail

getConfiguration

Configuration getConfiguration()
Gets the Configuration for the cluster. As most of the configuration parameters are not known until after cluster has been started, this configuration should be configured by the cluster itself.

Returns:
the Cluster configured Configuration

start

void start()
           throws Exception
Starts the cluster.

Throws:
Exception - if cluster failed to start

stop

void stop()
Stops the cluster.


getFileSystem

FileSystem getFileSystem()
                         throws IOException
Gets the configured FileSystem managed by HadoopCluster.

Returns:
file system managed by cluster
Throws:
IOException - if error occured