public class YarnClusterManager
extends java.lang.Object| 修飾子と型 | メソッドと説明 |
|---|---|
void | close() マネージャーを閉じ、シャットダウンフックを削除し、実行中のすべてのクラスターを閉じます。 |
boolean | closeCluster(YarnCluster cluster)YarnCluster を閉じてマネージャーキャッシュから削除します。 |
protected void | doClose() 実行中のすべてのクラスターを停止し、登録を解除します。 |
YarnCluster | getCluster(ClusterInfo clusterInfo) ミニクラスターを取得して起動します。 |
static YarnClusterManager | getInstance()YarnClusterManager のシングルトンインスタンスを取得します。 |
static YarnClusterManager | getInstance(boolean registerShutdownHook)YarnClusterManager のシングルトンインスタンスを取得します。 |
void | registerShutdownHook() まだシャットダウンされていない場合にマネージャーがクラスターを正常にシャットダウンできるように、JVM シャットダウンフックを登録します。 |
public static YarnClusterManager getInstance()
YarnClusterManager のシングルトンインスタンスを取得します。public static YarnClusterManager getInstance(boolean registerShutdownHook)
YarnClusterManager のシングルトンインスタンスを取得します。registerShutdownHook - 真の場合、シャットダウンフックを登録する public YarnCluster getCluster(ClusterInfo clusterInfo)
clusterInfo - クラスターに関する情報 public boolean closeCluster(YarnCluster cluster)
YarnCluster を閉じてマネージャーキャッシュから削除します。cluster - Yarn クラスター public void close()
public void registerShutdownHook()
protected void doClose()