クラス MtpCuiBase
java.lang.Object
org.iplass.mtp.tools.batch.MtpCuiBase
- 直系の既知のサブクラス:
EntityDeleteAll,EntityExport,EntityImport,EntityJavaMappingClassCreator,EntityUpdateAll,EntityViewDDLCreator,EQLExecutor,MetaDataExport,MetaDataExportRdbToFile,MetaDataImport,MetaDataNameListExport,MetaDataPatch,MtpSilentBatch,MySQLPartitionBatch,ObjStoreDDLGenerateBatch,PackageExport,PackageImport,PostgreSQLPartitionBatch,StorageSpaceCleaner,StorageSpaceMigration,TenantBatch
バッチ機能の基底クラス
-
ネストされたクラスの概要
ネストされたクラス -
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明voidaddLogListner(MtpCuiBase.LogListener listner) protected voidclearLog()protected <T> booleanexecuteTask(T param, Predicate<T> task) タスクを実行して、結果を出力します。protected <T> booleanexecuteTask(T param, Predicate<T> task, boolean console, boolean logging) タスクを実行して、結果を出力します。protected static List<org.iplass.mtp.impl.tools.tenant.TenantInfo> protected ConfigSettingprotected static List<org.iplass.mtp.impl.tools.tenant.TenantInfo> booleanprotected voidprotected void環境情報を出力します。protected voidprotected voidprotected abstract org.slf4j.Loggerprotected voidprotected voidprotected voidprotected voidprotected StringreadConsole(String message) Consoleから入力を受け取ります。protected booleanreadConsoleBoolean(String message, boolean retDefault) ConsoleからTrueFalseの入力を受け取ります。protected intreadConsoleInteger(String message, int retDefault) ConsoleからIntegerの入力を受け取ります。protected StringreadConsolePassword(String message) Consoleからパスワード入力を受け取ります。voidremoveLogListner(MtpCuiBase.LogListener listner) protected Stringメッセージを返します。protected voidsetSuccess(boolean isSuccess) protected voidテナントの一覧を出力します。protected void有効なテナントの一覧を出力します。protected voidswitchLog(boolean console, boolean logging) ログ出力モードを切り替えます。
-
フィールド詳細
-
SILENT_MODE
サイレントモードで実行する場合の引数値- 関連項目:
-
-
コンストラクタの詳細
-
MtpCuiBase
public MtpCuiBase()
-
-
メソッドの詳細
-
getLogMessage
-
isSuccess
public boolean isSuccess() -
addLogListner
-
removeLogListner
-
getLanguage
-
setSuccess
protected void setSuccess(boolean isSuccess) -
clearLog
protected void clearLog() -
logDebug
-
logInfo
-
logInfo
-
logWarn
-
logWarn
-
logError
-
logError
-
getConfigSetting
-
logEnvironment
protected void logEnvironment()環境情報を出力します。 -
getValidTenantInfoList
-
getAllTenantInfoList
-
showAllTenantList
protected void showAllTenantList()テナントの一覧を出力します。 -
showValidTenantList
protected void showValidTenantList()有効なテナントの一覧を出力します。 -
switchLog
protected void switchLog(boolean console, boolean logging) ログ出力モードを切り替えます。- パラメータ:
console- コンソール出力logging- ロギング出力
-
executeTask
タスクを実行して、結果を出力します。 結果はコンソールとログに出力します。- 型パラメータ:
T- パラメータ型- パラメータ:
param- タスクパラメータtask- タスク- 戻り値:
- 実行結果
-
executeTask
タスクを実行して、結果を出力します。- 型パラメータ:
T- パラメータ型- パラメータ:
param- タスクパラメータtask- タスクconsole- 実行結果をコンソールに出力logging- 実行結果をログに出力。- 戻り値:
- 実行結果
-
readConsole
Consoleから入力を受け取ります。- パラメータ:
message- メッセージ- 戻り値:
- 入力結果
-
readConsoleBoolean
ConsoleからTrueFalseの入力を受け取ります。- パラメータ:
message- メッセージretDefault- 空の場合のデフォルト値- 戻り値:
- 入力結果
-
readConsoleInteger
ConsoleからIntegerの入力を受け取ります。- パラメータ:
message- メッセージretDefault- 空の場合のデフォルト値- 戻り値:
- 入力結果
-
readConsolePassword
Consoleからパスワード入力を受け取ります。- パラメータ:
message- メッセージ- 戻り値:
- 入力結果
-
rs
メッセージを返します。- パラメータ:
key- メッセージKEYargs- 引数- 戻り値:
- メッセージ
-
loggingLogger
protected abstract org.slf4j.Logger loggingLogger()
-