Skip to content

yellow-man/sena-batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 

Repository files navigation

Sena-batchとは(Overview)

日本国内株式の情報を、ウェブスクレイピング技術を使用し収集する、
Play Framework 2.3ベースのバッチアプリケーションです。
収集する情報につきましては、下記をご確認ください。

ダウンロード(Download)

バイナリをダウンロードする場合は こちら です。

インストール(Install)

Sena-batchの動作環境、セットアップ方法についてです。

  • 動作環境
    基本的にJava 8が動作する環境であれば起動します。
    (※以降、テスト運用を行ってるCentOS 7.2に合わせて説明を進めていきます。)

    • 実行環境
      • Java 8が動作する環境
    • データベース
      • MariaDB 5.5(MySQL互換)
  • バイナリセットアップ
    ダウンロードしたzipファイルを解凍するだけです。

    • sena-1.0.0-batch1.0.zipを展開
    # unzip ./sena-1.0.0-batch1.0.zip
    
  • DBセットアップ

    • DBユーザ作成
      • ユーザ作成用DDLを用意しています。DBユーザ名、パスワードを置き換えて実行してください。
        00_init_ddl.sql
    • 各テーブル作成
  • 設定ファイルの調整

    • 展開したzipフォルダに設定ファイルも展開されます。
      環境に合わせてDB接続先、ログ出力先、実行結果をメール送信するためのSMTPサーバ、メール配信先の設定を調整してください。
    ./sena-1.0.0-batch1.0/conf/application.conf
    
  • テストバッチの起動方法

    • 設定内容確認用に、テストバッチを用意しています。
      ログ出力、実行結果を設定ファイルで指定したメールアドレスに配信するだけのバッチです。
    # cd ./sena-1.0.0-batch1.0
    # java -cp './lib/*' -Dconfig.file=./conf/application.conf -Dlogger.file=./conf/logger.xml -Dfile.encoding=utf-8 yokohama.yellow_man.sena.jobs.JobExecutor yokohama.yellow_man.sena.jobs.TestJob
    

使い方・実行可能なバッチ一覧(Usage)

実行可能なバッチのクラス名と、バッチの名前を記載しています。

ドキュメント(Document)

ライセンス(License)

Copyright 2016 yellow-man.yokohama This software is licensed under the Apache 2 license, quoted below.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages