クラス 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

public abstract class MtpCuiBase extends Object
バッチ機能の基底クラス
  • フィールド詳細

    • SILENT_MODE

      public static final String SILENT_MODE
      サイレントモードで実行する場合の引数値
      関連項目:
  • コンストラクタの詳細

    • MtpCuiBase

      public MtpCuiBase()
  • メソッドの詳細

    • getLogMessage

      public List<String> getLogMessage()
    • isSuccess

      public boolean isSuccess()
    • addLogListner

      public void addLogListner(MtpCuiBase.LogListener listner)
    • removeLogListner

      public void removeLogListner(MtpCuiBase.LogListener listner)
    • getLanguage

      public String getLanguage()
    • setSuccess

      protected void setSuccess(boolean isSuccess)
    • clearLog

      protected void clearLog()
    • logDebug

      protected void logDebug(String message)
    • logInfo

      protected void logInfo(String message)
    • logInfo

      protected void logInfo(String message, Throwable e)
    • logWarn

      protected void logWarn(String message)
    • logWarn

      protected void logWarn(String message, Throwable e)
    • logError

      protected void logError(String message)
    • logError

      protected void logError(String message, Throwable e)
    • getConfigSetting

      protected ConfigSetting getConfigSetting()
    • logEnvironment

      protected void logEnvironment()
      環境情報を出力します。
    • getValidTenantInfoList

      protected static List<org.iplass.mtp.impl.tools.tenant.TenantInfo> getValidTenantInfoList()
    • getAllTenantInfoList

      protected static List<org.iplass.mtp.impl.tools.tenant.TenantInfo> getAllTenantInfoList()
    • showAllTenantList

      protected void showAllTenantList()
      テナントの一覧を出力します。
    • showValidTenantList

      protected void showValidTenantList()
      有効なテナントの一覧を出力します。
    • switchLog

      protected void switchLog(boolean console, boolean logging)
      ログ出力モードを切り替えます。
      パラメータ:
      console - コンソール出力
      logging - ロギング出力
    • executeTask

      protected <T> boolean executeTask(T param, Predicate<T> task)
      タスクを実行して、結果を出力します。 結果はコンソールとログに出力します。
      型パラメータ:
      T - パラメータ型
      パラメータ:
      param - タスクパラメータ
      task - タスク
      戻り値:
      実行結果
    • executeTask

      protected <T> boolean executeTask(T param, Predicate<T> task, boolean console, boolean logging)
      タスクを実行して、結果を出力します。
      型パラメータ:
      T - パラメータ型
      パラメータ:
      param - タスクパラメータ
      task - タスク
      console - 実行結果をコンソールに出力
      logging - 実行結果をログに出力。
      戻り値:
      実行結果
    • readConsole

      protected String readConsole(String message)
      Consoleから入力を受け取ります。
      パラメータ:
      message - メッセージ
      戻り値:
      入力結果
    • readConsoleBoolean

      protected boolean readConsoleBoolean(String message, boolean retDefault)
      ConsoleからTrueFalseの入力を受け取ります。
      パラメータ:
      message - メッセージ
      retDefault - 空の場合のデフォルト値
      戻り値:
      入力結果
    • readConsoleInteger

      protected int readConsoleInteger(String message, int retDefault)
      ConsoleからIntegerの入力を受け取ります。
      パラメータ:
      message - メッセージ
      retDefault - 空の場合のデフォルト値
      戻り値:
      入力結果
    • readConsolePassword

      protected String readConsolePassword(String message)
      Consoleからパスワード入力を受け取ります。
      パラメータ:
      message - メッセージ
      戻り値:
      入力結果
    • rs

      protected String rs(String key, Object... args)
      メッセージを返します。
      パラメータ:
      key - メッセージKEY
      args - 引数
      戻り値:
      メッセージ
    • loggingLogger

      protected abstract org.slf4j.Logger loggingLogger()