org.springframework.yarn.test.context
Interface YarnCluster

All Known Implementing Classes:
StandaloneYarnCluster

public interface YarnCluster

Interface for Yarn miniclusters.

Author:
Janne Valkealahti

Method Summary
 Configuration getConfiguration()
          Gets the Configuration for the cluster.
 File getYarnWorkDir()
          Gets the working directory of Yarn nodes.
 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.


getYarnWorkDir

File getYarnWorkDir()
Gets the working directory of Yarn nodes. This directory can be used to find log files of running containers.

Returns:
Yarn working directory.