• R/O
  • SSH
  • HTTPS

opengion: Commit


Commit MetaInfo

Revision1458 (tree)
Zeit2017-07-18 16:45:28
Autorchatrun

Log Message

(empty log message)

Ändern Zusammenfassung

Diff

--- trunk/opengionV6/uap/webapps/gf/src/META-INF/resources/jsp/common/quickReference.html (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/META-INF/resources/jsp/common/quickReference.html (revision 1458)
@@ -27,7 +27,7 @@
2727 <link rel="stylesheet" type="text/css" href="../custom/custom.css?v=1449725288354" />
2828 </head>
2929 <!-- DB検索 SQL文記述 debug="true" でSQL文を確認できます。-->
30-<div id="queryTime" value="31"></div>
30+<div id="queryTime" value="15"></div>
3131
3232 <!-- ColumnEditorTagを使用すると、登録画面の入力フィールドで、入力の必須状態を表したり(must="true"を使用)、 -->
3333 <!-- DBからの検索結果を、コンボボックスでプルダウン表示させる(editor="DBMENU"を使用)ことが可能となります。 -->
@@ -1074,7 +1074,7 @@
10741074 </tr>
10751075 </tbody>
10761076 </table>
1077-</div><input type="hidden" name="pageSize" value="100000" id="pageSize" /><input type="hidden" name="h_consisKey" value="1500334836133" id="h_consisKey" /><div id="viewTime" value="15"></div>
1077+</div><input type="hidden" name="pageSize" value="100000" id="pageSize" /><input type="hidden" name="h_consisKey" value="1500348481010" id="h_consisKey" /><div id="viewTime" value="16"></div>
10781078
10791079 <div style="page-break-before: always" ></div>
10801080
@@ -6225,11 +6225,11 @@
62256225 <a href="#TAG_writeTableParam" alt="writeTableParam">og:writeTableParam</a>&gt;</td><td colspan="2" /></tr>
62266226 <tr><td colspan="4"> </td></tr></tbody>
62276227 </table>
6228-</div><input type="hidden" name="pageSize" value="1000000" id="pageSize" /><input type="hidden" name="h_consisKey" value="1500334836180" id="h_consisKey" /><div id="viewTime" value="265"></div>
6228+</div><input type="hidden" name="pageSize" value="1000000" id="pageSize" /><input type="hidden" name="h_consisKey" value="1500348481056" id="h_consisKey" /><div id="viewTime" value="93"></div>
62296229
62306230 <div style="page-break-before: always" ></div>
62316231
6232-<div id="queryTime" value="187"></div>
6232+<div id="queryTime" value="0"></div>
62336233
62346234
62356235
@@ -8408,7 +8408,7 @@
84088408 </tr>
84098409 </tbody>
84108410 </table>
8411-</div><input type="hidden" name="pageSize" value="1000" id="pageSize" /><input type="hidden" name="h_consisKey" value="1500334836601" id="h_consisKey" /><div id="viewTime" value="16"></div>
8411+</div><input type="hidden" name="pageSize" value="1000" id="pageSize" /><input type="hidden" name="h_consisKey" value="1500348481181" id="h_consisKey" /><div id="viewTime" value="0"></div>
84128412
84138413
84148414
--- trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/AppliExec.java (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/AppliExec.java (revision 1458)
@@ -75,6 +75,8 @@
7575 * @param execId 処理ID
7676 */
7777 private AppliExec( final String systemId , final String execId ) {
78+ LOGGER.debug( () -> "AppliExec systemId=" + systemId + " , execId=" + execId );
79+
7880 final List<String[]> cmdRow = DBUtil.dbQuery( GE74.SELECT , systemId , execId );
7981
8082 if( cmdRow.isEmpty() ) {
@@ -86,10 +88,9 @@
8688 }
8789
8890 /**
89- * コマンドタイプから、対応するAppliDataオブジェクトを返します。
91+ * システムIDと処理IDから、対応するAppliExecオブジェクトを返します。
9092 *
91- * AppliDataオブジェクトは、CLS_BASE({@value #CLS_BASE})+コマンドタイプ のクラスです。
92- * これを、動的に作成します。
93+ * AppliExecオブジェクトを、動的に作成します。
9394 * このメソッドは、ClassNotFoundException を拾うために、用意した簡易メソッドです。
9495 *
9596 * 何らかの Exception が、throw された場合は、null を返します。
@@ -111,19 +112,22 @@
111112 * @return 処理結果(true:正常/false:異常)
112113 */
113114 public boolean exec( final Path path ) {
115+ LOGGER.debug( () -> "AppliExec exec() : Path=" + path + " , runType=" + ge74Data[GE74.RUNTYPE.NO] );
116+
114117 boolean rtn = false;
115118 try {
116119 switch( ge74Data[GE74.RUNTYPE.NO] ) {
117- case "0" : rtn = true; break;
118- case "1" : rtn = execDBin( path ); break;
119- case "2" : rtn = execPLSQL( path ); break;
120- case "3" : rtn = execBAT( path ); break;
121- case "4" : rtn = execJSP( path ); break;
122- default : rtn = execNon( path ); break;
120+ case "0" : rtn = true; break; // なにもしない
121+ case "1" : rtn = execDBin( path ); break; // DB入力
122+ case "2" : rtn = execPLSQL( path ); break; // PL/SQLコール
123+ case "3" : rtn = execBAT( path ); break; // BATファイルコール
124+ case "4" : rtn = execJSP( path ); break; // JSPファイルコール(URLコネクション)
125+ default : rtn = false; break; // なにもしない(runTypeなしエラー)
123126 }
124127 }
125128 catch( final Throwable th ) {
126- rtn = false;
129+ // MSG0021 = 予期せぬエラーが発生しました。\n\tメッセージ=[{0}]
130+ MsgUtil.errPrintln( th , "MSG0021" , path );
127131 }
128132
129133 return rtn ;
@@ -136,6 +140,8 @@
136140 * @return 処理結果(true:正常/false:異常)
137141 */
138142 private boolean execDBin( final Path path ) {
143+ LOGGER.debug( () -> "AppliExec execDBin() : Path=" + path );
144+
139145 return true;
140146 }
141147
@@ -146,7 +152,9 @@
146152 * @return 処理結果(true:正常/false:異常)
147153 */
148154 private boolean execPLSQL( final Path path ) {
149- return true;
155+ LOGGER.debug( () -> "AppliExec execPLSQL() : Path=" + path );
156+
157+ return false;
150158 }
151159
152160 /**
@@ -156,7 +164,9 @@
156164 * @return 処理結果(true:正常/false:異常)
157165 */
158166 private boolean execBAT( final Path path ) {
159- return true;
167+ LOGGER.debug( () -> "AppliExec execBAT() : Path=" + path );
168+
169+ return false;
160170 }
161171
162172 /**
@@ -166,16 +176,8 @@
166176 * @return 処理結果(true:正常/false:異常)
167177 */
168178 private boolean execJSP( final Path path ) {
169- return true;
170- }
179+ LOGGER.debug( () -> "AppliExec execJSP() : Path=" + path );
171180
172- /**
173- * 何も実行しません。
174- *
175- * @param path 処理するファイルパス
176- * @return 処理結果(true:正常/false:異常)
177- */
178- private boolean execNon( final Path path ) {
179181 return false;
180182 }
181183 }
--- trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/BasePath.java (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/BasePath.java (revision 1458)
@@ -44,6 +44,8 @@
4444 * @since JDK1.8,
4545 */
4646 public final class BasePath {
47+ private static final XLogger LOGGER= XLogger.getLogger( BasePath.class.getName() ); // ログ出力
48+
4749 /** BASEフォルダの相対パスの処理フォルダ(WORK)の初期値 {@value} */
4850 public static final String DEF_WORK_DIR = "work" ;
4951 /** BASEフォルダの相対パスの処理済フォルダ(正常)の初期値 {@value} */
@@ -90,5 +92,11 @@
9092 NG_PATH = dirs[4] == null || dirs[4].isEmpty()
9193 ? FileUtil.writePath( dirs[0] , DEF_NG_DIR )
9294 : FileUtil.writePath( dirs[4] );
95+
96+ LOGGER.debug( () -> "BasePath BASE_PATH=" + BASE_PATH
97+ + " , SUB_PATH=" + SUB_PATH
98+ + " , WORK_PATH=" + WORK_PATH
99+ + " , OK_PATH=" + OK_PATH
100+ + " , NG_PATH=" + NG_PATH );
93101 }
94102 }
--- trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/CommandLine.java (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/CommandLine.java (revision 1458)
@@ -114,7 +114,6 @@
114114 cmndData = Arrays.copyOf( values, values.length );
115115
116116 cmndStr = Arrays.toString( cmndData );
117-// LOGGER.fine( () -> cmndStr );
118117 LOGGER.debug( () -> cmndStr );
119118
120119 if( cmndData[RSRV_NO.NO] == null || cmndData[EXECID.NO] == null ) {
--- trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/Machine.java (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/fileexec/Machine.java (revision 1458)
@@ -15,7 +15,7 @@
1515 */
1616 package org.opengion.fukurou.fileexec;
1717
18-// import java.nio.file.Files;
18+import java.nio.file.Files;
1919 import java.nio.file.Path;
2020 // import java.nio.file.Paths;
2121 // import java.nio.file.DirectoryStream;
@@ -122,6 +122,10 @@
122122 * @param filePath ファイルパス(相対パス)
123123 */
124124 private void checkFile( final String event,final Path filePath ) {
125+ Path bkup = null;
126+ Path okFile = null;
127+ Path ngFile = null;
128+
125129 try {
126130 // FileUtil.stablePath は、書き込まれている途中かもしれないので、安定するまで待つ。
127131 if( FileUtil.stablePath( filePath ) ) {
@@ -129,7 +133,7 @@
129133 LOGGER.debug( () -> "event=" + event + " , Path=" + filePath );
130134
131135 // ワークへ移動してから、DB取り込み処理を行います。
132- final Path bkup = FileUtil.backup( filePath,basePath.WORK_PATH ); // WORKに移動します。
136+ bkup = FileUtil.backup( filePath,basePath.WORK_PATH ); // WORKに移動します。
133137
134138 final String tmStr = StringUtil.getTimeFormat(); // 開始時刻
135139
@@ -137,9 +141,7 @@
137141
138142 final boolean isOk = appli.exec( bkup );
139143
140- Path okFile = null;
141- Path ngFile = null;
142- String fgtKan = "1" ;
144+ final String fgtKan ; // 取込完了フラグ 1:処理中 2:済 7:デーモンエラー 8:アプリエラー
143145
144146 if( isOk ) {
145147 okFile = FileUtil.backup( bkup,basePath.OK_PATH ); // 処理済OKフォルダに移動
@@ -152,7 +154,7 @@
152154
153155 tableGE71.dbInsert( fgtKan , tmStr , filePath , okFile , ngFile );
154156
155- LOGGER.info( () -> "DAT execute. " + filePath );
157+ LOGGER.info( () -> "DAT execute. " + filePath + " , FGTKAN=" + fgtKan );
156158 }
157159 }
158160 catch( final Throwable th ) {
@@ -159,7 +161,11 @@
159161 // MSG0021 = 予期せぬエラーが発生しました。\n\tメッセージ=[{0}]
160162 MsgUtil.errPrintln( th , "MSG0021" , filePath );
161163
162- tableGE71.dbInsert( "7" , StringUtil.getTimeFormat() , filePath , null , null );
164+ if( Files.exists( bkup ) ) { // WORKに移動するところまでは、成功しており、その後の、移動ができていない。
165+ ngFile = FileUtil.backup( bkup,basePath.NG_PATH ); // 処理済NGフォルダに移動
166+ }
167+
168+ tableGE71.dbInsert( "7" , StringUtil.getTimeFormat() , filePath , null , ngFile );
163169 }
164170 }
165171
--- trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/system/BuildNumber.java (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/org/opengion/fukurou/system/BuildNumber.java (revision 1458)
@@ -73,7 +73,7 @@
7373 * このエンジンのビルド時刻を設定します。
7474 * @og.paramLevel 9:自動設定
7575 */
76- public static final String TIMESTAMP = "2017/07/18 12:25:26" ;
76+ public static final String TIMESTAMP = "2017/07/18 16:36:29" ;
7777
7878 /**
7979 * 稼動しているサーバーのOS情報。
@@ -118,7 +118,7 @@
118118 *
119119 * @og.paramLevel 9:自動設定
120120 */
121- public static final String BUILD_ID = "20170718122526" ;
121+ public static final String BUILD_ID = "20170718163629" ;
122122
123123 /**
124124 * デフォルトコンストラクターをprivateにして、
--- trunk/opengionV6/uap/webapps/gf/src/org/opengion/hayabusa/common/GE12_Param.xml (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/org/opengion/hayabusa/common/GE12_Param.xml (revision 1458)
@@ -2868,7 +2868,7 @@
28682868 <fieldDoc>
28692869 <paramId>TIMESTAMP</paramId>
28702870 <seq>1030</seq>
2871- <param>2017/07/18 12:25:26</param>
2871+ <param>2017/07/18 16:36:29</param>
28722872 <title>エンジンビルド時刻。</title>
28732873 <contents>エンジンビルド時刻。
28742874 このエンジンのビルド時刻を設定します。</contents>
@@ -2911,7 +2911,7 @@
29112911 <fieldDoc>
29122912 <paramId>BUILD_ID</paramId>
29132913 <seq>1070</seq>
2914- <param>20170718122526</param>
2914+ <param>20170718163629</param>
29152915 <title>エンジンビルドID
29162916 このエンジンのビルドIDを設定します。</title>
29172917 <contents>エンジンビルドID
--- trunk/opengionV6/uap/webapps/gf/src/org/opengion/hayabusa/taglib/QueryButtonTag.java (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/org/opengion/hayabusa/taglib/QueryButtonTag.java (revision 1458)
@@ -446,7 +446,7 @@
446446 // 6.4.0.5 (2016/01/09) true/false に加えて、none:表示しない を追加。
447447 // if( useCrear ) {
448448 if( "true".equalsIgnoreCase( useClear ) ) {
449- final char ch = clearHref.indexOf( '?' ) >= 0 ? '?' : '&' ; // 連結文字列
449+ final char ch = clearHref.indexOf( '?' ) < 0 ? '?' : '&' ; // 連結文字列
450450
451451 rtn = "<input type=\"button\" onClick=\"window.open('" + JSP + '/' + getGUIInfoAttri( "ADDRESS" ) +
452452 // "/query.jsp?GAMENID=" + getGUIInfoAttri("KEY") + "&command=NEW','QUERY')\" " +
--- trunk/opengionV6/uap/webapps/gf/src/xslt/specific.xml (revision 1457)
+++ trunk/opengionV6/uap/webapps/gf/src/xslt/specific.xml (revision 1458)
@@ -7160,7 +7160,7 @@
71607160 <name>toString</name>
71617161 <modifiers>public String</modifiers>
71627162 <signature>toString()</signature>
7163- <position>172</position>
7163+ <position>178</position>
71647164 <extendClass></extendClass>
71657165 <extendFlag>0</extendFlag>
71667166 <description>機械クラスの文字列表現を返します。</description>
@@ -7191,7 +7191,7 @@
71917191 <name>GE71</name>
71927192 <modifiers>public</modifiers>
71937193 <signature>GE71(String sysId,String rsNo,String exId)</signature>
7194- <position>196</position>
7194+ <position>202</position>
71957195 <extendClass></extendClass>
71967196 <extendFlag>0</extendFlag>
71977197 <description>GE71 データベースにインサート処理を行うクラスのコンストラクター</description>
@@ -7208,7 +7208,7 @@
72087208 <name>dbInsert</name>
72097209 <modifiers>public void</modifiers>
72107210 <signature>dbInsert(String fgtKan,String tmStr,Path fIn,Path fOk,Path fNg)</signature>
7211- <position>211</position>
7211+ <position>217</position>
72127212 <extendClass></extendClass>
72137213 <extendFlag>0</extendFlag>
72147214 <description>データベースにインサート処理を行います。</description>
@@ -8773,7 +8773,7 @@
87738773 <name>getValue</name>
87748774 <modifiers>public String</modifiers>
87758775 <signature>getValue(CommandLine.GE70 clm)</signature>
8776- <position>146</position>
8776+ <position>145</position>
87778777 <extendClass></extendClass>
87788778 <extendFlag>0</extendFlag>
87798779 <description>設定値を返します。</description>
@@ -8789,7 +8789,7 @@
87898789 <name>getKeyValMap</name>
87908790 <modifiers>public ConcurrentMap</modifiers>
87918791 <signature>getKeyValMap()</signature>
8792- <position>154</position>
8792+ <position>153</position>
87938793 <extendClass></extendClass>
87948794 <extendFlag>0</extendFlag>
87958795 <description>パラメータ(key1=val1 key2=val2 ・・・ のリスト)のMapを返します。</description>
@@ -8805,7 +8805,7 @@
88058805 <name>dbCommand</name>
88068806 <modifiers>public static List</modifiers>
88078807 <signature>dbCommand()</signature>
8808- <position>161</position>
8808+ <position>160</position>
88098809 <extendClass></extendClass>
88108810 <extendFlag>0</extendFlag>
88118811 <description>指定のGE70テーブルを読み込んで、CommandLineオブジェクトのListを作成します。</description>
@@ -8820,7 +8820,7 @@
88208820 <name>toString</name>
88218821 <modifiers>public String</modifiers>
88228822 <signature>toString()</signature>
8823- <position>199</position>
8823+ <position>198</position>
88248824 <extendClass></extendClass>
88258825 <extendFlag>0</extendFlag>
88268826 <description>コマンドリストクラスの文字列表現を返します。</description>
@@ -8925,7 +8925,7 @@
89258925 <name>BasePath</name>
89268926 <modifiers>public</modifiers>
89278927 <signature>BasePath(String[] dirs)</signature>
8928- <position>75</position>
8928+ <position>77</position>
89298929 <extendClass></extendClass>
89308930 <extendFlag>0</extendFlag>
89318931 <description>フォルダを指定して、オブジェクトを作成します。</description>
@@ -8981,14 +8981,13 @@
89818981 <name>newInstance</name>
89828982 <modifiers>public static AppliExec</modifiers>
89838983 <signature>newInstance(String systemId,String execId)</signature>
8984- <position>101</position>
8984+ <position>102</position>
89858985 <extendClass></extendClass>
89868986 <extendFlag>0</extendFlag>
8987- <description>コマンドタイプから、対応するAppliDataオブジェクトを返します。</description>
8988- <contents>コマンドタイプから、対応するAppliDataオブジェクトを返します。
8987+ <description>システムIDと処理IDから、対応するAppliExecオブジェクトを返します。</description>
8988+ <contents>システムIDと処理IDから、対応するAppliExecオブジェクトを返します。
89898989
8990- AppliDataオブジェクトは、CLS_BASE(#CLS_BASE)+コマンドタイプ のクラスです。
8991- これを、動的に作成します。
8990+ AppliExecオブジェクトを、動的に作成します。
89928991 このメソッドは、ClassNotFoundException を拾うために、用意した簡易メソッドです。
89938992
89948993 何らかの Exception が、throw された場合は、null を返します。</contents>
@@ -9004,7 +9003,7 @@
90049003 <name>exec</name>
90059004 <modifiers>public boolean</modifiers>
90069005 <signature>exec(Path path)</signature>
9007- <position>113</position>
9006+ <position>114</position>
90089007 <extendClass></extendClass>
90099008 <extendFlag>0</extendFlag>
90109009 <description>GE74.RUNTYPE に基づいて、各種処理を実行します。</description>
@@ -9020,7 +9019,7 @@
90209019 <name>execDBin</name>
90219020 <modifiers>private boolean</modifiers>
90229021 <signature>execDBin(Path path)</signature>
9023- <position>138</position>
9022+ <position>142</position>
90249023 <extendClass></extendClass>
90259024 <extendFlag>0</extendFlag>
90269025 <description>データベースに追加処理を呼び出します。</description>
@@ -9036,7 +9035,7 @@
90369035 <name>execPLSQL</name>
90379036 <modifiers>private boolean</modifiers>
90389037 <signature>execPLSQL(Path path)</signature>
9039- <position>148</position>
9038+ <position>154</position>
90409039 <extendClass></extendClass>
90419040 <extendFlag>0</extendFlag>
90429041 <description>PL/SQLを呼び出します。</description>
@@ -9052,7 +9051,7 @@
90529051 <name>execBAT</name>
90539052 <modifiers>private boolean</modifiers>
90549053 <signature>execBAT(Path path)</signature>
9055- <position>158</position>
9054+ <position>166</position>
90569055 <extendClass></extendClass>
90579056 <extendFlag>0</extendFlag>
90589057 <description>バッチファイルを呼び出します。</description>
@@ -9068,7 +9067,7 @@
90689067 <name>execJSP</name>
90699068 <modifiers>private boolean</modifiers>
90709069 <signature>execJSP(Path path)</signature>
9071- <position>168</position>
9070+ <position>178</position>
90729071 <extendClass></extendClass>
90739072 <extendFlag>0</extendFlag>
90749073 <description>JSP を呼び出します。</description>
@@ -9079,22 +9078,6 @@
90799078 </tagText>
90809079 <history></history>
90819080 </menber>
9082- <menber>
9083- <type>メソッド</type>
9084- <name>execNon</name>
9085- <modifiers>private boolean</modifiers>
9086- <signature>execNon(Path path)</signature>
9087- <position>178</position>
9088- <extendClass></extendClass>
9089- <extendFlag>0</extendFlag>
9090- <description>何も実行しません。</description>
9091- <contents>何も実行しません。</contents>
9092- <tagText>
9093-@param path 処理するファイルパス
9094-@return 処理結果(true:正常/false:異常)
9095- </tagText>
9096- <history></history>
9097- </menber>
90989081 </classDoc>
90999082 <classDoc>
91009083 <fullName>org.opengion.fukurou.fileexec.AppliExec.GE74</fullName>
Show on old repository browser