• R/O
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision71 (tree)
Time2015-08-21 00:17:07
Authort_nakayama1971

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/framework/fwBatch/src/batch/status/JobFileStatusImpl.java (revision 70)
+++ trunk/framework/fwBatch/src/batch/status/JobFileStatusImpl.java (revision 71)
@@ -15,10 +15,9 @@
1515 import org.apache.logging.log4j.LogManager;
1616
1717 import common.sql.QueryUtil;
18-
1918 import core.exception.PhysicalException;
2019 import core.exception.ThrowableUtil;
21-import core.util.bean.Tuple;
20+import core.util.bean.Pair;
2221
2322 /**
2423 * ジョブファイル管理テーブル取得/更新クラス
@@ -178,14 +177,14 @@
178177 */
179178 @Override
180179 public int setFiles(final Connection conn, final long seq,
181- final int dtlno, final List<Tuple<String>> list) {
180+ final int dtlno, final List<Pair<String, String>> list) {
182181
183182 int ret = 0;
184183 if (list != null) {
185184 int fseq = 1;
186- for (final Tuple<String> strs : list) {
185+ for (final Pair<String, String> strs : list) {
187186 // フルパスファイル名取得
188- String fullpath = strs.get(0);
187+ String fullpath = strs.left();
189188 if (fullpath == null) {
190189 continue;
191190 }
@@ -203,7 +202,7 @@
203202 info.setFileName(f.getName());
204203 info.setPathName(new File(f.getParent()).toURI().getPath());
205204 info.setFileSize(f.length());
206- info.setDownloadName(strs.get(1));
205+ info.setDownloadName(strs.right());
207206 cnt = insertJobFile(conn, info);
208207 } else {
209208 cnt = updateJobFile(conn, seq, dtlno, fseq,
--- trunk/framework/fwBatch/src/batch/status/JobFileStatus.java (revision 70)
+++ trunk/framework/fwBatch/src/batch/status/JobFileStatus.java (revision 71)
@@ -3,7 +3,7 @@
33 import java.sql.Connection;
44 import java.util.List;
55
6-import core.util.bean.Tuple;
6+import core.util.bean.Pair;
77
88 /**
99 * ジョブファイル管理テーブル取得/更新インタフェース
@@ -84,7 +84,7 @@
8484 * @param list 作成ファイルリスト
8585 * @return 作成レコード数
8686 */
87- int setFiles(Connection conn, long jseq, int dtlno, List<Tuple<String>> list);
87+ int setFiles(Connection conn, long jseq, int dtlno, List<Pair<String, String>> list);
8888
8989 /**
9090 * ファイル削除
--- trunk/framework/fwBatch/src/batch/base/BaseBatch.java (revision 70)
+++ trunk/framework/fwBatch/src/batch/base/BaseBatch.java (revision 71)
@@ -5,7 +5,7 @@
55 import java.util.Objects;
66 import java.util.concurrent.CopyOnWriteArrayList;
77
8-import core.util.bean.Tuple;
8+import core.util.bean.Pair;
99
1010 /**
1111 * バッチ作成のための親抽象クラス
@@ -18,7 +18,8 @@
1818 /** メッセージテキスト */
1919 private String message = null;
2020 /** 作成ファイルリスト */
21- private final CopyOnWriteArrayList<Tuple<String>> fileList = new CopyOnWriteArrayList<>();
21+ private final CopyOnWriteArrayList<Pair<String, String>> fileList =
22+ new CopyOnWriteArrayList<>();
2223
2324 /**
2425 * メッセージ取得
@@ -45,7 +46,7 @@
4546 * @return ファイルリスト
4647 */
4748 @Override
48- public final List<Tuple<String>> getOutputFiles() {
49+ public final List<Pair<String, String>> getOutputFiles() {
4950 return Collections.unmodifiableList(this.fileList);
5051 }
5152
@@ -57,9 +58,9 @@
5758 */
5859 protected final void addFile(final String file, final String download) {
5960 if (Objects.toString(download, "").trim().isEmpty()) {
60- this.fileList.add(new Tuple<>(file, null));
61+ this.fileList.add(new Pair<>(file, null));
6162 } else {
62- this.fileList.add(new Tuple<>(file, download));
63+ this.fileList.add(new Pair<>(file, download));
6364 }
6465 }
6566 }
--- trunk/framework/fwBatch/src/batch/base/Batch.java (revision 70)
+++ trunk/framework/fwBatch/src/batch/base/Batch.java (revision 71)
@@ -2,7 +2,7 @@
22
33 import java.util.List;
44
5-import core.util.bean.Tuple;
5+import core.util.bean.Pair;
66
77 /**
88 * バッチ作成のためのインタフェース
@@ -65,5 +65,5 @@
6565 *
6666 * @return ファイルリスト
6767 */
68- List<Tuple<String>> getOutputFiles();
68+ List<Pair<String, String>> getOutputFiles();
6969 }
--- trunk/framework/fwBatch/src/batch/base/BatchProcessorImpl.java (revision 70)
+++ trunk/framework/fwBatch/src/batch/base/BatchProcessorImpl.java (revision 71)
@@ -4,6 +4,8 @@
44 import java.sql.SQLException;
55 import java.sql.Timestamp;
66
7+import org.apache.logging.log4j.LogManager;
8+
79 import batch.controller.JobUtil;
810 import batch.status.JobDetailStatus;
911 import batch.status.JobFileStatus;
@@ -109,6 +111,7 @@
109111 return postprocess(exitCode);
110112
111113 } catch (final PhysicalException ex) {
114+ LogManager.getLogger().info(ex.getMessage());
112115 return Batch.RET_FAILED;
113116 } catch (final Throwable th) {
114117 ThrowableUtil.error(th);
@@ -162,6 +165,7 @@
162165 }
163166 } catch (final InterruptedException ex) {
164167 Thread.interrupted();
168+ LogManager.getLogger().info(ex.getMessage());
165169 exitCode = Batch.RET_FAILED;
166170 }
167171
--- trunk/framework/fwBatch/src/batch/base/BatchStatus.java (revision 70)
+++ trunk/framework/fwBatch/src/batch/base/BatchStatus.java (revision 71)
@@ -112,6 +112,7 @@
112112 }
113113
114114 } catch (final IllegalArgumentException ex) {
115+ LogManager.getLogger().info(ex.getMessage());
115116 printUsage(BatchStatus.class.getName());
116117 Runtime.getRuntime().exit(Batch.RET_PARAM_ERROR);
117118 } catch (final Throwable th) {