batchstartup package
Submodules
batchstartup.batchexecute module
- class batchstartup.batchexecute.BatchExecute(clog, clogname)[ソース]
ベースクラス:
object
バッチ起動用ファイルをPythonから起動する。 ModelクラスのfromRequestToSqlメソッド内から呼び出される
- log
- Type:
clog
batchstartup.batchstartup module
- class batchstartup.batchstartup.BatchStartup(file_path, output_path)[ソース]
ベースクラス:
object
- 起動元:モデル内でbatchstartup/batchexecute.pyが実行されると、
BatchStartupDaily_~.py や BatchStartupMonthly_~.py が起動され 当該クラスがインスタンス・コールされる
呼び出し元: 仮引数:file_path : 入力トランザクションjsonのファイルパス
output_path : 出力ファイルのファイルパス
戻り値:output_path へ responsedict を出力する
batchstartup.batchstartupmaincontroller module
- class batchstartup.batchstartupmaincontroller.BatchStartupMainController(clog, clogname, mainmodel, mainview)[ソース]
ベースクラス:
object
1.AppServer からリクエストデータを受け取る 2.Controllerを呼び出し、リクエストデータをチェック 3.modelを呼び出す指示がある場合、MainModelを呼び出しSQLデータを取得 4.MainViewを呼び出しレスポンスデータを取得 5.レスポンスデータをAppServer に返す
- log
- Type:
- call(requestdict)[ソース]
メイン処理(AppServer から呼び出される)
- パラメータ:
requestdict (dict) --
リクエストJSONの "message": {"status": "OK",の時
"model": を検索する
"model": "yes",の時
4. main_modelからsqldictを貰う 5.sqldict["sqls"]内に
sql_info['id'] == 'printParam'、もしくは、sql_info['id'] == 'printKey'がある時 プリント処理を起動し、レスポンスデータを取得する。 どちらもない時は、メインビューのcallを実行し、レスポンスデータを取得する
- 戻り値:
responsedict -- レスポンスデータ main_view.call の戻り値
- 戻り値の型:
dict