Hitachi

Cosminexus V11 アプリケーションサーバ 機能解説 運用/監視/連携編


9.4.5 Managementアクション実行用プロパティファイルの設定

Managementアクションの定義,メッセージIDとManagementアクションとのマッピングなどは,Managementアクション実行用プロパティファイルmaction.properties)に定義します。maction.propertiesについては,マニュアル「アプリケーションサーバ リファレンス 定義編(サーバ定義)」の「8.2.10 maction.properties(Managementアクション実行用プロパティファイル)」を参照してください。

〈この項の構成〉

(1) ファイルの格納場所

maction.propertiesの格納場所を次に示します。

(2) ファイルの設定例

Windowsの場合のManagementアクション実行用プロパティファイルの設定例を次に示します。

# Managementアクションの定義
maction.restart.command=c\:\\tmp\\command1.bat
maction.restart.timeout=12
maction.restart.timeout.forced_stop=true
maction.restart.exclusive_time=60
maction.restart.max_executable_actions=1
 
# メッセージIDとManagementアクションのマッピング
maction.message.KDJE11111-E.mactions=restart
maction.message.KDJE22222-E.mactions=restart
 
# 論理サーバとManagementアクションのマッピング
maction.server.j2ee1.mactions=restart
maction.server.j2ee2.mactions=restart
maction.server.j2eeClstr1.mactions=restart

この設定例では,Managementアクションを識別するID(ManagementアクションID)として,「restart」を定義しています。「restart」のManagementアクションの動作および設定について説明します。

注※

Managementアクションは,ManagementアクションIDで区別され,複数のサーバや異なるメッセージIDに対して同一のManagementアクションを実行できます。抑止時間や同時実行数を設定してManagementアクションの実行を制御することで,Managementアクションの集約や重複実行の抑止ができます。実行制御については,「9.3 Managementアクションの実行制御とは」を参照してください。

(3) 注意事項

Managementアクション実行用プロパティファイルに関する注意事項を次に示します。