public class CommandLineClientRunner extends AbstractCommandLineRunner<YarnClient>
修飾子と型 | フィールドと説明 |
---|---|
static java.lang.String | ARG_APPLICATION_ID |
static java.lang.String | OPT_KILL |
static java.lang.String | OPT_LIST |
static java.lang.String | OPT_SUBMIT |
コンストラクターと説明 |
---|
CommandLineClientRunner() |
修飾子と型 | メソッドと説明 |
---|---|
protected java.lang.String | getDefaultBeanIdentifier() アプリケーションコンテキストからインスタンスを解決するために使用されるデフォルトの Bean ID を取得します。 |
protected java.util.List<java.lang.String> | getValidOpts() 有効なオプション引数のリストを取得します。 |
protected ExitStatus | handleBeanRun(YarnClient bean, java.lang.String[] parameters, java.util.Set<java.lang.String> opts) アプリケーションコンテキストが初期化された後の Bean の実行を処理します。 |
static void | main(java.lang.String[] args) |
protected org.apache.hadoop.yarn.api.records.ApplicationId | queryApplicationId(YarnClient client, java.lang.String applicationId) アプリケーション ID を照会します。 |
doMain, exit, getApplicationContext, getChildApplicationContext, getChildContextConfigPath, getContextConfigPath, getErrorMessage, presetSystemExiter, start
public static final java.lang.String OPT_SUBMIT
public static final java.lang.String OPT_KILL
public static final java.lang.String OPT_LIST
public static final java.lang.String ARG_APPLICATION_ID
protected ExitStatus handleBeanRun(YarnClient bean, java.lang.String[] parameters, java.util.Set<java.lang.String> opts)
AbstractCommandLineRunner
このクラスは型指定された Bean インスタンスのみを認識するため、指定された Bean をどのように処理するかを決定するのは実装者の責任です。
AbstractCommandLineRunner<YarnClient>
の handleBeanRun
bean
- Bean インスタンス parameters
- パラメーター opts
- オプション protected java.lang.String getDefaultBeanIdentifier()
AbstractCommandLineRunner
AbstractCommandLineRunner<YarnClient>
の getDefaultBeanIdentifier
protected java.util.List<java.lang.String> getValidOpts()
AbstractCommandLineRunner
有効なオプションを上書きする場合は、オプションがコマンドラインで使用される予定の他のオプションと一致しないことを確認してください。つまり、通常はオプションの前に '-' 文字を付けることをお勧めします。
AbstractCommandLineRunner<YarnClient>
の getValidOpts
protected org.apache.hadoop.yarn.api.records.ApplicationId queryApplicationId(YarnClient client, java.lang.String applicationId)
client
- 糸クライアント applicationId
- アプリケーション IDpublic static void main(java.lang.String[] args)