From 8b722996895ead9ec42b445f1652fb08c98fe132 Mon Sep 17 00:00:00 2001 From: cho Date: Tue, 3 Mar 2026 14:09:55 +0900 Subject: [PATCH] =?UTF-8?q?system=5Fout=5F=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.gradle | 4 +- .../eai/adapter/db/sql/AdapterUtils.java | 4 +- .../adapter/db/sql/DBInboudSqlAdapter.java | 2 +- .../impl/HttpClient5AdapterServiceRest.java | 4 +- .../impl/HttpAdapterServiceBypass.java | 2 +- .../dynamic/wrapper/KeepAliveTrueWrapper.java | 2 +- .../eai/adapter/jtc/JtcBeanSample.java | 10 ++-- .../eai/adapter/jtc/JtcClientSample.java | 6 +- .../eai/adapter/jtc/JtcServerAdapterBean.java | 2 +- .../eai/adapter/jtc/TestMsgListener.java | 5 +- .../adapter/socket2/app/dump/DumpServer.java | 6 +- .../adapter/socket2/app/echo/EchoServer.java | 4 +- .../eai/adapter/socket2/app/muxer/Muxer.java | 14 ++--- .../socket2/app/proxy/ProxyServer.java | 2 +- .../socket2/app/tester/LoadRunner.java | 56 +++++++++--------- .../socket2/app/tester/LoadRunner2.java | 58 +++++++++---------- .../adapter/socket2/common/ExpiringMap.java | 10 ++-- .../protocol/admin/TelnetAdminHandler.java | 2 +- .../adapter/socket2/protocol/http/Server.java | 4 +- .../protocol/http/codec/HttpResponse.java | 4 +- .../adapter/socket2/tool/admin/NetAdmin.java | 6 +- .../eai/adapter/socket2/tool/admin/Shell.java | 10 ++-- .../eai/adapter/wca/WCASessionThread.java | 4 +- .../eai/adapter/wca/data/WCAQueue.java | 2 +- .../eactive/eai/adapter/wca/util/MyLog.java | 4 +- ...HttpClientAccessTokenServiceWithParam.java | 4 +- .../circuitBreaker/PrometheusController.java | 2 +- .../eactive/eai/common/logger/EAILogDAO.java | 4 +- .../eai/common/state/ElinkStateManager.java | 2 +- .../com/eactive/eai/env/SystemPropConfig.java | 4 +- .../eai/flowcontroller/C2RFCProcess.java | 2 +- .../inbound/processor/RequestProcessor.java | 2 +- .../eai/message/StandardMessageUtil.java | 16 ++--- .../eactive/eai/util/ByteCharSequence.java | 2 +- .../java/com/eactive/eai/util/CryptoUtil.java | 10 ++-- .../java/com/eactive/eai/util/IpUtil.java | 4 +- .../com/eactive/eai/util/JsonBeatiUtil.java | 2 +- .../com/eactive/eai/util/JsonPathUtil.java | 12 ++-- .../eai/util/json/JsonPathsTransform.java | 2 +- .../util/json/JsonSimplePathsTransform.java | 2 +- .../eai/common/header/SHINBOHeaderAction.java | 2 +- .../eai/common/loader/EAILogFIleLoader.java | 46 +++++++-------- 42 files changed, 173 insertions(+), 172 deletions(-) diff --git a/settings.gradle b/settings.gradle index 0791851..082155b 100644 --- a/settings.gradle +++ b/settings.gradle @@ -3,7 +3,9 @@ rootProject.name = 'elink-online-common' include 'elink-online-core-jpa' include 'elink-online-core' include 'elink-online-transformer' +include 'elink-online-alarm' project (':elink-online-core-jpa').projectDir = new File(settingsDir, "../elink-online-core-jpa") project (':elink-online-core').projectDir = new File(settingsDir, "../elink-online-core") -project (':elink-online-transformer').projectDir = new File(settingsDir, "../elink-online-transformer") \ No newline at end of file +project (':elink-online-transformer').projectDir = new File(settingsDir, "../elink-online-transformer") +project (':elink-online-alarm').projectDir = new File(settingsDir, "../elink-online-alarm") \ No newline at end of file diff --git a/src/main/java/com/eactive/eai/adapter/db/sql/AdapterUtils.java b/src/main/java/com/eactive/eai/adapter/db/sql/AdapterUtils.java index 28279ec..2da8689 100644 --- a/src/main/java/com/eactive/eai/adapter/db/sql/AdapterUtils.java +++ b/src/main/java/com/eactive/eai/adapter/db/sql/AdapterUtils.java @@ -14,8 +14,8 @@ public class AdapterUtils { map.put("Unid", "ID00000001"); String prefix = "%", surfix = "%"; - System.out.println(updateSql); - System.out.println(getUpdateQuery(updateSql, map, prefix, surfix)); + // System.out.println(updateSql); + // System.out.println(getUpdateQuery(updateSql, map, prefix, surfix)); } public static Properties getAdapterProerties(String propGroupName) { diff --git a/src/main/java/com/eactive/eai/adapter/db/sql/DBInboudSqlAdapter.java b/src/main/java/com/eactive/eai/adapter/db/sql/DBInboudSqlAdapter.java index 7a4797b..050c3ac 100644 --- a/src/main/java/com/eactive/eai/adapter/db/sql/DBInboudSqlAdapter.java +++ b/src/main/java/com/eactive/eai/adapter/db/sql/DBInboudSqlAdapter.java @@ -56,7 +56,7 @@ public class DBInboudSqlAdapter { if(isLocal != null && "true".equalsIgnoreCase(isLocal)) { isLocalTest = true; } - System.out.println("$$$ DBInboudSqlAdapter] isLocalTest = " + isLocalTest); + // System.out.println("$$$ DBInboudSqlAdapter] isLocalTest = " + isLocalTest); } public boolean execute() { diff --git a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java index ef810ae..2b699de 100644 --- a/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java +++ b/src/main/java/com/eactive/eai/adapter/http/client/impl/HttpClient5AdapterServiceRest.java @@ -1122,10 +1122,10 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp ECDHESA256Cipher cipher = new ECDHESA256Cipher(); encryptedMessage = cipher.encrypt(eaiBody.toString()); - System.out.println("Encrypted JWE: " + encryptedMessage); + // System.out.println("Encrypted JWE: " + encryptedMessage); String decrypted = cipher.decrypt(encryptedMessage); - System.out.println("Decrypted Payload: " + decrypted); + // System.out.println("Decrypted Payload: " + decrypted); //아래 인증서로 테스트 ECDHESA256Cipher cipherCert = new ECDHESA256Cipher(certPath); diff --git a/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceBypass.java b/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceBypass.java index 7cf71d2..dd5ab69 100644 --- a/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceBypass.java +++ b/src/main/java/com/eactive/eai/adapter/http/dynamic/impl/HttpAdapterServiceBypass.java @@ -504,6 +504,6 @@ public class HttpAdapterServiceBypass extends HttpAdapterServiceSupport { String orgUri = "/HTT/CbsInNetSys/abcd/123456"; String result = ""; result = getExtUri(orgUri, 3); - System.out.println(result); + // System.out.println(result); } } diff --git a/src/main/java/com/eactive/eai/adapter/http/dynamic/wrapper/KeepAliveTrueWrapper.java b/src/main/java/com/eactive/eai/adapter/http/dynamic/wrapper/KeepAliveTrueWrapper.java index ae9e4fc..4364ead 100644 --- a/src/main/java/com/eactive/eai/adapter/http/dynamic/wrapper/KeepAliveTrueWrapper.java +++ b/src/main/java/com/eactive/eai/adapter/http/dynamic/wrapper/KeepAliveTrueWrapper.java @@ -54,7 +54,7 @@ public class KeepAliveTrueWrapper implements HandlerWrapper { // 최대 요청 횟수를 초과한 경우 연결을 종료하고 로그를 출력 if (count > maxRequestCount) { exchange.getConnection().close(); - System.out.println("Connection closed due to exceeding max requests limit."); + // System.out.println("Connection closed due to exceeding max requests limit."); return; } handler.handleRequest(exchange); diff --git a/src/main/java/com/eactive/eai/adapter/jtc/JtcBeanSample.java b/src/main/java/com/eactive/eai/adapter/jtc/JtcBeanSample.java index 705afc9..87a1d47 100644 --- a/src/main/java/com/eactive/eai/adapter/jtc/JtcBeanSample.java +++ b/src/main/java/com/eactive/eai/adapter/jtc/JtcBeanSample.java @@ -45,7 +45,7 @@ public class JtcBeanSample implements JtmaxService { String bufferType = tux.getBufferTypeString(); if ("STRING".equals(bufferType)) { TuxStringBuffer tuxbuf = (TuxStringBuffer) tux; - System.out.println("received string value : " + tuxbuf.getString()); + // System.out.println("received string value : " + tuxbuf.getString()); TuxStringBuffer ret = new TuxStringBuffer(WebtSystem.getDefaultCharset()); ret.setString(tuxbuf.getString().toUpperCase()); return ret; @@ -60,8 +60,8 @@ public class JtcBeanSample implements JtmaxService { } String rtnstr = rcvstr.toUpperCase(); - System.out.println("received string value : " + rcvstr); - System.out.println("return string value : " + rtnstr); + // System.out.println("received string value : " + rcvstr); + // System.out.println("return string value : " + rtnstr); TuxCarrayBuffer ret = new TuxCarrayBuffer(WebtSystem.getDefaultCharset()); ret.setBytes(rtnstr.getBytes());; return ret; @@ -73,8 +73,8 @@ public class JtcBeanSample implements JtmaxService { String rcvstr = tuxbuf.getField("SEC100").get().stringValue(); String rtnstr = rcvstr.toUpperCase(); - System.out.println("received string value : " + rcvstr); - System.out.println("return string value : " + rtnstr); + // System.out.println("received string value : " + rcvstr); + // System.out.println("return string value : " + rtnstr); TuxFieldBuffer ret = new TuxFieldBuffer(false); // FML 16임으로 false로 // ret.createField(sample.fml_sec2).add(rtnstr); ret.createField("SEC2").add(rtnstr); diff --git a/src/main/java/com/eactive/eai/adapter/jtc/JtcClientSample.java b/src/main/java/com/eactive/eai/adapter/jtc/JtcClientSample.java index dd90520..cf80d3e 100644 --- a/src/main/java/com/eactive/eai/adapter/jtc/JtcClientSample.java +++ b/src/main/java/com/eactive/eai/adapter/jtc/JtcClientSample.java @@ -73,7 +73,7 @@ public class JtcClientSample { try { // if(cd == null) { - System.out.println("tpconnect failed!"); + // System.out.println("tpconnect failed!"); // } // else { @@ -84,12 +84,12 @@ public class JtcClientSample { sndbuf.setString("conversation service"); TuxBuffer rcvbuf = service.tpcall(sndbuf); - System.out.println(rcvbuf.getString()); + // System.out.println(rcvbuf.getString()); // } } catch (WebtException e) { e.printStackTrace(); - System.out.println("error Occurred"); + // System.out.println("error Occurred"); } finally { diff --git a/src/main/java/com/eactive/eai/adapter/jtc/JtcServerAdapterBean.java b/src/main/java/com/eactive/eai/adapter/jtc/JtcServerAdapterBean.java index 74ccd59..211cf54 100644 --- a/src/main/java/com/eactive/eai/adapter/jtc/JtcServerAdapterBean.java +++ b/src/main/java/com/eactive/eai/adapter/jtc/JtcServerAdapterBean.java @@ -58,7 +58,7 @@ public class JtcServerAdapterBean implements JtmaxService { try { if ("STRING".equals(bufferType)) { TuxStringBuffer tuxbuf = (TuxStringBuffer) tux; - System.out.println("received string value : " + tuxbuf.getString()); + // System.out.println("received string value : " + tuxbuf.getString()); byte[] request = tuxbuf.getString().getBytes(); RequestDispatcher dispatcher = RequestDispatcher.getRequestDispatcher(adapterGroupName); byte[] response = (byte[]) dispatcher.handle(adapterName, request, prop); diff --git a/src/main/java/com/eactive/eai/adapter/jtc/TestMsgListener.java b/src/main/java/com/eactive/eai/adapter/jtc/TestMsgListener.java index 6ed12d0..46fcd28 100644 --- a/src/main/java/com/eactive/eai/adapter/jtc/TestMsgListener.java +++ b/src/main/java/com/eactive/eai/adapter/jtc/TestMsgListener.java @@ -31,12 +31,11 @@ public class TestMsgListener implements TuxAsyncMsgListener { } public void handleError(Exception e) { - System.out.println(e); + // System.out.println(e); } public void handleEvent(TuxBuffer rcvBuffer) { - System.out.println(Thread.currentThread().getName() - +" ] rcv " + rcvBuffer); + // System.out.println(Thread.currentThread().getName()+" ] rcv " + rcvBuffer); try { // TODO : Call Internal service } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/app/dump/DumpServer.java b/src/main/java/com/eactive/eai/adapter/socket2/app/dump/DumpServer.java index 707db00..5004e19 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/app/dump/DumpServer.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/app/dump/DumpServer.java @@ -9,7 +9,7 @@ import com.eactive.eai.adapter.socket2.protocol.ISocketAdapter; public class DumpServer { static public void main(String[] args) throws Exception { if (args.length != 1) { - System.out.println("Usage : dump "); + // System.out.println("Usage : dump "); return; } int port = Integer.parseInt(args[0]); @@ -53,12 +53,12 @@ public class DumpServer { System.out.print("> "); String cmd = (new java.io.BufferedReader(new java.io.InputStreamReader(System.in))).readLine(); if ("".equals(cmd)) { - System.out.println(SocketAdapterManager.getInstance()); + // System.out.println(SocketAdapterManager.getInstance()); } else if ("exit".equals(cmd)) { System.exit(1); } } catch(Exception e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } } } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/app/echo/EchoServer.java b/src/main/java/com/eactive/eai/adapter/socket2/app/echo/EchoServer.java index 7f7d510..dba092a 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/app/echo/EchoServer.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/app/echo/EchoServer.java @@ -46,12 +46,12 @@ public class EchoServer { System.out.print("> "); String cmd = (new java.io.BufferedReader(new java.io.InputStreamReader(System.in))).readLine(); if ("".equals(cmd)) { - System.out.println(SocketAdapterManager.getInstance()); + // System.out.println(SocketAdapterManager.getInstance()); } else if ("exit".equals(cmd)) { System.exit(1); } } catch(Exception e) { - System.out.println("processCommand errpr "+ e.toString()); + // System.out.println("processCommand errpr "+ e.toString()); } } } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/app/muxer/Muxer.java b/src/main/java/com/eactive/eai/adapter/socket2/app/muxer/Muxer.java index d69560e..ca4ccbe 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/app/muxer/Muxer.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/app/muxer/Muxer.java @@ -49,15 +49,15 @@ public class Muxer { } public synchronized byte[] handle(byte[] message) { - System.out.println("##############################################################"); - System.out.println("CiscoListener | message received : " + new String(message)); - System.out.println("##############################################################"); + // System.out.println("##############################################################"); + // System.out.println("CiscoListener | message received : " + new String(message)); + // System.out.println("##############################################################"); return message; } static public void main(String[] args) throws Exception { if (args.length != 3) { - System.out.println("java " + Muxer.class.getName() + " "); + // System.out.println("java " + Muxer.class.getName() + " "); return; } @@ -77,9 +77,9 @@ class MuxerRequestProcessor implements IRequestProcessor { } public synchronized byte[] handle(byte[] message) throws EAIException { - System.out.println("##############################################################"); - System.out.println("MuxerRequestProcessor | message received : " + new String(message)); - System.out.println("##############################################################"); + // System.out.println("##############################################################"); + // System.out.println("MuxerRequestProcessor | message received : " + new String(message)); + // System.out.println("##############################################################"); return (byte[]) outboundAdapter.sendMessage(message); } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/app/proxy/ProxyServer.java b/src/main/java/com/eactive/eai/adapter/socket2/app/proxy/ProxyServer.java index 38f238a..d4114f3 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/app/proxy/ProxyServer.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/app/proxy/ProxyServer.java @@ -34,7 +34,7 @@ public class ProxyServer { static public void main(String[] args) throws Exception { if (args.length != 3) { - System.out.println("java " + ProxyServer.class.getName() + " "); + // System.out.println("java " + ProxyServer.class.getName() + " "); return; } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner.java b/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner.java index 4d2ca64..2fb9795 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner.java @@ -188,9 +188,9 @@ public class LoadRunner { } stopLatch.countDown(); } catch (Exception e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } catch (Error e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } } }); @@ -202,7 +202,7 @@ public class LoadRunner { stopLatch.await(); } catch (InterruptedException ex) { //ex.printStackTrace(); - System.out.println("wait error"); + // System.out.println("wait error"); } executor.shutdown(); @@ -211,27 +211,27 @@ public class LoadRunner { boolean result = executor.awaitTermination(1000, TimeUnit.MILLISECONDS); if (result) break; - System.out.println("[LoadRunner] shutdown() progressing ... await 1 seconds more"); + // System.out.println("[LoadRunner] shutdown() progressing ... await 1 seconds more"); } catch (InterruptedException e) { //e.printStackTrace(); - System.out.println("awaitTermination error"); + // System.out.println("awaitTermination error"); } } latch.await(); stopWatch.stop(); - System.out.println(); - System.out.println(); - System.out.println("==============================================================="); - System.out.println(" think time : " + thinkTime + " ms"); - System.out.println(" thread count : " + threadCount); - System.out.println(" loop count : " + loopCount); - System.out.println(" total request : " + (threadCount * loopCount)); - System.out.println(" elapsed : " + stopWatch.toString()); - System.out.println(" tps : " + new Integer(threadCount * loopCount * 1000).longValue() / stopWatch.getTime()); - System.out.println("==============================================================="); - System.out.println(); + // System.out.println(); + // System.out.println(); + // System.out.println("==============================================================="); + // System.out.println(" think time : " + thinkTime + " ms"); + // System.out.println(" thread count : " + threadCount); + // System.out.println(" loop count : " + loopCount); + // System.out.println(" total request : " + (threadCount * loopCount)); + // System.out.println(" elapsed : " + stopWatch.toString()); + // System.out.println(" tps : " + new Integer(threadCount * loopCount * 1000).longValue() / stopWatch.getTime()); + // System.out.println("==============================================================="); + // System.out.println(); } @@ -245,13 +245,13 @@ public class LoadRunner { break; } else if ("".equals(line.trim())) { } else if ("help".equals(line.trim())) { - System.out.println("==============================================================="); - System.out.println("LoadRunner v1.0 (http port = 8282)"); - System.out.println("==============================================================="); - System.out.println(" help : help"); - System.out.println(" start : start [thread count] [loop count] [think time]"); - System.out.println(" exit : exit"); - System.out.println(""); + // System.out.println("==============================================================="); + // System.out.println("LoadRunner v1.0 (http port = 8282)"); + // System.out.println("==============================================================="); + // System.out.println(" help : help"); + // System.out.println(" start : start [thread count] [loop count] [think time]"); + // System.out.println(" exit : exit"); + // System.out.println(""); } else if (line.trim().startsWith("start")) { String[] tokens = line.trim().split("[ ]+"); if (tokens.length > 1) @@ -264,10 +264,10 @@ public class LoadRunner { } else if ("exit".equals(line.trim())) { System.exit(1); } else { - System.out.println("Unknow command. type help."); + // System.out.println("Unknow command. type help."); } } catch(Exception e) { - System.out.println("Error " + e.toString()); + // System.out.println("Error " + e.toString()); } } } @@ -298,7 +298,7 @@ public class LoadRunner { if(br != null) br.close(); } catch(Exception ee) { - System.out.println("close error"); + // System.out.println("close error"); } } @@ -369,10 +369,10 @@ public class LoadRunner { if (args.length == 2) { hostname = args[0]; - System.out.println("remote host : " + hostname); + // System.out.println("remote host : " + hostname); filename = args[1]; } else { - System.out.println("Usage : loadrunner [ip] [file]"); + // System.out.println("Usage : loadrunner [ip] [file]"); return; } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner2.java b/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner2.java index 2248622..a2724f5 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner2.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/app/tester/LoadRunner2.java @@ -189,10 +189,10 @@ public class LoadRunner2 { stopLatch.countDown(); } catch (Exception e) { // e.printStackTrace(); - System.out.println("executor.execute Exception"); + // System.out.println("executor.execute Exception"); } catch (Error e) { // e.printStackTrace(); - System.out.println("executor.execute error"); + // System.out.println("executor.execute error"); } } }); @@ -204,7 +204,7 @@ public class LoadRunner2 { stopLatch.await(); } catch (InterruptedException ex) { // ex.printStackTrace(); - System.out.println("InterruptedException"); + // System.out.println("InterruptedException"); } executor.shutdown(); @@ -213,27 +213,27 @@ public class LoadRunner2 { boolean result = executor.awaitTermination(1000, TimeUnit.MILLISECONDS); if (result) break; - System.out.println("[LoadRunner] shutdown() progressing ... await 1 seconds more"); + // System.out.println("[LoadRunner] shutdown() progressing ... await 1 seconds more"); } catch (InterruptedException e) { // e.printStackTrace(); - System.out.println("[LoadRunner] shutdown() progressing ...InterruptedException"); + // System.out.println("[LoadRunner] shutdown() progressing ...InterruptedException"); } } latch.await(); stopWatch.stop(); - System.out.println(); - System.out.println(); - System.out.println("==============================================================="); - System.out.println(" think time : " + thinkTime + " ms"); - System.out.println(" thread count : " + threadCount); - System.out.println(" loop count : " + loopCount); - System.out.println(" total request : " + (threadCount * loopCount)); - System.out.println(" elapsed : " + stopWatch.toString()); - System.out.println(" tps : " + new Integer(threadCount * loopCount * 1000).longValue() / stopWatch.getTime()); - System.out.println("==============================================================="); - System.out.println(); + // System.out.println(); + // System.out.println(); + // System.out.println("==============================================================="); + // System.out.println(" think time : " + thinkTime + " ms"); + // System.out.println(" thread count : " + threadCount); + // System.out.println(" loop count : " + loopCount); + // System.out.println(" total request : " + (threadCount * loopCount)); + // System.out.println(" elapsed : " + stopWatch.toString()); + // System.out.println(" tps : " + new Integer(threadCount * loopCount * 1000).longValue() / stopWatch.getTime()); + // System.out.println("==============================================================="); + // System.out.println(); } @@ -247,13 +247,13 @@ public class LoadRunner2 { break; } else if ("".equals(line.trim())) { } else if ("help".equals(line.trim())) { - System.out.println("==============================================================="); - System.out.println("LoadRunner v1.0 (http port = 8282)"); - System.out.println("==============================================================="); - System.out.println(" help : help"); - System.out.println(" start : start [thread count] [loop count] [think time]"); - System.out.println(" exit : exit"); - System.out.println(""); + // System.out.println("==============================================================="); + // System.out.println("LoadRunner v1.0 (http port = 8282)"); + // System.out.println("==============================================================="); + // System.out.println(" help : help"); + // System.out.println(" start : start [thread count] [loop count] [think time]"); + // System.out.println(" exit : exit"); + // System.out.println(""); } else if (line.trim().startsWith("start")) { String[] tokens = line.trim().split("[ ]+"); if (tokens.length > 1) @@ -266,11 +266,11 @@ public class LoadRunner2 { } else if ("exit".equals(line.trim())) { System.exit(1); } else { - System.out.println("Unknow command. type help."); + // System.out.println("Unknow command. type help."); } } catch(Exception e) { // e.printStackTrace(); - System.out.println("Exception"); + // System.out.println("Exception"); } } } @@ -293,14 +293,14 @@ public class LoadRunner2 { } } catch(Exception e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } finally { try { br.close(); } catch(Exception e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } } @@ -371,10 +371,10 @@ public class LoadRunner2 { if (args.length == 2) { hostname = args[0]; - System.out.println("remote host : " + hostname); + // System.out.println("remote host : " + hostname); filename = args[1]; } else { - System.out.println("Usage : loadrunner [ip] [file]"); + // System.out.println("Usage : loadrunner [ip] [file]"); return; } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/common/ExpiringMap.java b/src/main/java/com/eactive/eai/adapter/socket2/common/ExpiringMap.java index f1cc512..f267d00 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/common/ExpiringMap.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/common/ExpiringMap.java @@ -623,14 +623,14 @@ public class ExpiringMap implements Map { ExpiringMap m = new ExpiringMap(1); String key ="aaaaaaa"; m.put(key,key); - System.out.println(m.get(key)); + // System.out.println(m.get(key)); Thread.sleep(1 * 1000L); - System.out.println(m.get(key)); + // System.out.println(m.get(key)); Thread.sleep(1 * 1000L); - System.out.println(m.get(key)); + // System.out.println(m.get(key)); Thread.sleep(1 * 1000L); - System.out.println(m.get(key)); + // System.out.println(m.get(key)); Thread.sleep(1 * 1000L); - System.out.println(m.get(key)); + // System.out.println(m.get(key)); } } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/protocol/admin/TelnetAdminHandler.java b/src/main/java/com/eactive/eai/adapter/socket2/protocol/admin/TelnetAdminHandler.java index 590feb2..7caba50 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/protocol/admin/TelnetAdminHandler.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/protocol/admin/TelnetAdminHandler.java @@ -18,7 +18,7 @@ public class TelnetAdminHandler extends ProtocolHandler { @Override public void messageReceived(IoSession session, Object message) throws Exception { String msg = message.toString().trim(); - System.out.println(" " + msg); + // System.out.println(" " + msg); if ("quit".equals(msg) || "exit".equals(msg)) { session.write("bye......"); diff --git a/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/Server.java b/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/Server.java index d093d96..8720275 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/Server.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/Server.java @@ -42,10 +42,10 @@ public class Server { acceptor .bind(new InetSocketAddress(port), new ServerHandler(), cfg); - System.out.println("Server now listening on port " + port); + // System.out.println("Server now listening on port " + port); } catch (Exception ex) { // ex.printStackTrace(); - System.out.println("Error" + ex.toString()); + // System.out.println("Error" + ex.toString()); } } } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/codec/HttpResponse.java b/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/codec/HttpResponse.java index 84362ed..b9e0ef6 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/codec/HttpResponse.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/protocol/http/codec/HttpResponse.java @@ -61,7 +61,7 @@ public class HttpResponse { try { body.write(b); } catch (IOException ex) { - System.out.println("appendBody error"); + // System.out.println("appendBody error"); } } @@ -69,7 +69,7 @@ public class HttpResponse { try { body.write(s.getBytes()); } catch (IOException ex) { - System.out.println("appendBody string error"); + // System.out.println("appendBody string error"); } } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/NetAdmin.java b/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/NetAdmin.java index bcb0491..dffe926 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/NetAdmin.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/NetAdmin.java @@ -10,8 +10,8 @@ public class NetAdmin { if (args.length == 1) { hostname = args[0]; } else if (args.length == 2) { - System.out.println("args[0] " + args[0]); - System.out.println("args[1] " + args[1]); + // System.out.println("args[0] " + args[0]); + // System.out.println("args[1] " + args[1]); hostname = args[0]; port = Integer.parseInt(args[1]); } @@ -32,6 +32,6 @@ public class NetAdmin { sb.append("set connection - Max Connection 수 조정 ( netadmin set connection adapterName #OfConnection )"); sb.append("set thread - Max Thread 수 조정 ( netadmin set thread adapterName #OfSession )"); sb.append("set trace - 소켓어뎁터 추적관리 레벨 조정 ( netadmin set trace adapterName [ 0 | 1 | 2] )\n"); - System.out.println(sb.toString()); + // System.out.println(sb.toString()); } } diff --git a/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/Shell.java b/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/Shell.java index 75b6b71..3e7fe11 100644 --- a/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/Shell.java +++ b/src/main/java/com/eactive/eai/adapter/socket2/tool/admin/Shell.java @@ -64,7 +64,7 @@ public class Shell { public void loop() throws Exception { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); - System.out.println(welcomeMsg); + // System.out.println(welcomeMsg); do { // set prompt prompt = "\nnetadmin-" + hostname + ":" + port + "| " + context + "> "; @@ -74,7 +74,7 @@ public class Shell { try { if(line != null) process(line); } catch(Exception e) { - System.out.println("loop error "+ e.toString()); + // System.out.println("loop error "+ e.toString()); } } while(true); } @@ -87,9 +87,9 @@ public class Shell { SimpleFuture future = admin.stop(); future.join(); } catch(Exception e) { - System.out.println("stop error"); + // System.out.println("stop error"); } - System.out.println(byeMsg); + // System.out.println(byeMsg); System.exit(1); } @@ -103,6 +103,6 @@ public class Shell { context = res; } } - System.out.println(new String(response)); + // System.out.println(new String(response)); } } diff --git a/src/main/java/com/eactive/eai/adapter/wca/WCASessionThread.java b/src/main/java/com/eactive/eai/adapter/wca/WCASessionThread.java index 2536f9f..9bd65fe 100644 --- a/src/main/java/com/eactive/eai/adapter/wca/WCASessionThread.java +++ b/src/main/java/com/eactive/eai/adapter/wca/WCASessionThread.java @@ -393,7 +393,7 @@ public class WCASessionThread implements Runnable { myLog.logMsg(MyLog.WARN, "myLog Path : " + sMyLogPath); } catch(Exception ignore) { - System.out.println("WCASessionThread> Exception Msg = " + ignore.toString()); + // System.out.println("WCASessionThread> Exception Msg = " + ignore.toString()); } /* 20080523 End */ } @@ -739,7 +739,7 @@ public class WCASessionThread implements Runnable { } } catch (Exception ignore) { - System.out.println("WCASessionThread:run> Exception Msg = " + ignore.toString()); + // System.out.println("WCASessionThread:run> Exception Msg = " + ignore.toString()); } /* 20080523 SMS 로그 추가 끝 */ } diff --git a/src/main/java/com/eactive/eai/adapter/wca/data/WCAQueue.java b/src/main/java/com/eactive/eai/adapter/wca/data/WCAQueue.java index d4872b0..47fe9e6 100644 --- a/src/main/java/com/eactive/eai/adapter/wca/data/WCAQueue.java +++ b/src/main/java/com/eactive/eai/adapter/wca/data/WCAQueue.java @@ -382,7 +382,7 @@ public class WCAQueue { if (pBuff.length >= WCAHeader.WCA_HEADER_LEN + 3) System.arraycopy(pBuff, WCAHeader.WCA_HEADER_LEN, pDFSBuff, 0, pDFSBuff.length); - System.out.println("------> DFS : " + new String(pDFSBuff)); + // System.out.println("------> DFS : " + new String(pDFSBuff)); if((new String(pDFSBuff)).equals(new String(WCADefine.DFS_MSG))) bDFSFlag = true; else bDFSFlag = false; diff --git a/src/main/java/com/eactive/eai/adapter/wca/util/MyLog.java b/src/main/java/com/eactive/eai/adapter/wca/util/MyLog.java index 243b102..def9be8 100644 --- a/src/main/java/com/eactive/eai/adapter/wca/util/MyLog.java +++ b/src/main/java/com/eactive/eai/adapter/wca/util/MyLog.java @@ -544,7 +544,7 @@ public class MyLog { logMsg("LOG LEVLE = " + nLogLevel + ", LOG SIZE = " + MAX_LOG_FILE_SIZE + "M"); } catch (Exception e) { - System.out.println("openLogStream error -"+e.toString()); + // System.out.println("openLogStream error -"+e.toString()); } } @@ -559,7 +559,7 @@ public class MyLog { } } catch (Exception e) { - System.out.println("closeLogStream error -"+e.toString()); + // System.out.println("closeLogStream error -"+e.toString()); } } diff --git a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithParam.java b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithParam.java index c2a6dd1..5eb9f07 100644 --- a/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithParam.java +++ b/src/main/java/com/eactive/eai/authoutbound/client/impl/HttpClientAccessTokenServiceWithParam.java @@ -228,10 +228,10 @@ public class HttpClientAccessTokenServiceWithParam implements HttpClientAccessTo OAuth2AccessTokenVO accessToken = new OAuth2AccessTokenVO(); try (CloseableHttpResponse response = httpClient.execute(httpPost)) { if (response.getCode() != 200) { - System.out.println("OAuth token receive status fail value= "+ response.getCode()); + logger.info("OAuth token receive status fail value= " + response.getCode()); throw new Exception("OAuth token receive status fail value= " + response.getCode()); } - System.out.println("OAuth token receive status SUCCESS value= "+ response.getCode()); + logger.info("OAuth token receive status SUCCESS value= "+ response.getCode()); HttpEntity entity = response.getEntity(); String responseString = EntityUtils.toString(entity, encode); diff --git a/src/main/java/com/eactive/eai/common/circuitBreaker/PrometheusController.java b/src/main/java/com/eactive/eai/common/circuitBreaker/PrometheusController.java index 4364a38..4df265a 100644 --- a/src/main/java/com/eactive/eai/common/circuitBreaker/PrometheusController.java +++ b/src/main/java/com/eactive/eai/common/circuitBreaker/PrometheusController.java @@ -7,7 +7,7 @@ public class PrometheusController { public PrometheusController() { - System.out.println("init"); + // System.out.println("init"); } // @GetMapping("/prometheus") diff --git a/src/main/java/com/eactive/eai/common/logger/EAILogDAO.java b/src/main/java/com/eactive/eai/common/logger/EAILogDAO.java index e8509f1..55b386f 100644 --- a/src/main/java/com/eactive/eai/common/logger/EAILogDAO.java +++ b/src/main/java/com/eactive/eai/common/logger/EAILogDAO.java @@ -880,7 +880,7 @@ public class EAILogDAO { } originalAttribute = sb.toString(); - System.out.println("DB 암호화 #2 : {"+ originalAttribute +"} -> {"+attribute+"}"); + // System.out.println("DB 암호화 #2 : {"+ originalAttribute +"} -> {"+attribute+"}"); //logger.debug("DB 암호화 #2 : {} -> {}", originalAttribute, attribute); } } @@ -964,7 +964,7 @@ public class EAILogDAO { try { encryptedBytes1 = safedb.encrypt(userName, tableName, columnName1, byteMsg); - System.out.println("Encrypted Data : [" + new String(encryptedBytes1) + "]"); + // System.out.println("Encrypted Data : [" + new String(encryptedBytes1) + "]"); byte[] decryptedBytes1 = safedb.decrypt(userName, tableName, columnName1, encryptedBytes1); diff --git a/src/main/java/com/eactive/eai/common/state/ElinkStateManager.java b/src/main/java/com/eactive/eai/common/state/ElinkStateManager.java index 7f69873..31823bc 100644 --- a/src/main/java/com/eactive/eai/common/state/ElinkStateManager.java +++ b/src/main/java/com/eactive/eai/common/state/ElinkStateManager.java @@ -19,7 +19,7 @@ public class ElinkStateManager { if (logger != null) { logger.warn(message); } - System.out.println(DatetimeUtil.getCurrentTime() + " " + LOG_PREFIX + message); + // System.out.println(DatetimeUtil.getCurrentTime() + " " + LOG_PREFIX + message); } public static synchronized ElinkStateManager getInstance() { diff --git a/src/main/java/com/eactive/eai/env/SystemPropConfig.java b/src/main/java/com/eactive/eai/env/SystemPropConfig.java index 48eb84a..4c7cf0c 100644 --- a/src/main/java/com/eactive/eai/env/SystemPropConfig.java +++ b/src/main/java/com/eactive/eai/env/SystemPropConfig.java @@ -25,14 +25,14 @@ public class SystemPropConfig implements ServletContextAware { @PostConstruct public void loadlPropertiesToSystemProp() { - System.out.println("loadPropertiesToSystemProp: "+SYSTEM_PROP_FILE_PATH); + // System.out.println("loadPropertiesToSystemProp: "+SYSTEM_PROP_FILE_PATH); Properties sysProp = new Properties(); try(InputStream is = servletContext.getResourceAsStream(SYSTEM_PROP_FILE_PATH)){ sysProp.load(is); sysProp.forEach((key, value) -> { if (StringUtils.isBlank(System.getProperty((String) key))) { System.setProperty((String) key, (String) value); - System.out.println("Set system prop: "+key+"="+value); + // System.out.println("Set system prop: "+key+"="+value); } }); } catch (Throwable th) { diff --git a/src/main/java/com/eactive/eai/flowcontroller/C2RFCProcess.java b/src/main/java/com/eactive/eai/flowcontroller/C2RFCProcess.java index 7808b59..76ed592 100644 --- a/src/main/java/com/eactive/eai/flowcontroller/C2RFCProcess.java +++ b/src/main/java/com/eactive/eai/flowcontroller/C2RFCProcess.java @@ -358,7 +358,7 @@ public class C2RFCProcess extends Process { if (this.callProp != null) { String mode = this.callProp.getProperty(EAIKeys.CALL_MODE_KEY); if (mode != null && EAIKeys.CALL_MODE_WARMUP.equals(mode)) { - System.out.println(guidLogPrefix + " Warming Up Called"); + // System.out.println(guidLogPrefix + " Warming Up Called"); return false; } else { return true; diff --git a/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java b/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java index 25d4c1d..b3f43c8 100644 --- a/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java +++ b/src/main/java/com/eactive/eai/inbound/processor/RequestProcessor.java @@ -346,7 +346,7 @@ public class RequestProcessor extends RequestProcessorSupport { // 3. EAIMessage Object 생성 //String eaiSvcCd = mapper.getEaiSvcCode(standardMessage); // commnet by jwhong String eaiSvcCd = prop.getProperty("API_SERVICE_CODE"); - System.out.println("***** eaiSvcCd is"+ eaiSvcCd); + logger.info("eaiSvcCd = "+eaiSvcCd); if (StringUtils.isEmpty(eaiSvcCd)) eaiSvcCd = mapper.getEaiSvcCode(standardMessage); // HTT 어댑터로 들어오는거래는 Prop에 서비스코드가 없음. String guid = mapper.getGuid(standardMessage); String guidSeq = mapper.getGuidSeq(standardMessage); diff --git a/src/main/java/com/eactive/eai/message/StandardMessageUtil.java b/src/main/java/com/eactive/eai/message/StandardMessageUtil.java index ea503a3..996b58a 100644 --- a/src/main/java/com/eactive/eai/message/StandardMessageUtil.java +++ b/src/main/java/com/eactive/eai/message/StandardMessageUtil.java @@ -363,13 +363,13 @@ public class StandardMessageUtil { StandardMessage stdmsg = generateMessageFromCsvFile(filePath); - System.out.println("==========================================================================="); - System.out.println(stdmsg.getChilds().size()); - System.out.println(stdmsg); - System.out.println("==========================================================================="); - System.out.println(stdmsg.getLlDataPath()); - System.out.println(stdmsg.getBizDataPath()); - System.out.println(stdmsg.getZzDataPath()); - System.out.println("==========================================================================="); + // System.out.println("==========================================================================="); + // System.out.println(stdmsg.getChilds().size()); + // System.out.println(stdmsg); + // System.out.println("==========================================================================="); + // System.out.println(stdmsg.getLlDataPath()); + // System.out.println(stdmsg.getBizDataPath()); + // System.out.println(stdmsg.getZzDataPath()); + // System.out.println("==========================================================================="); } } diff --git a/src/main/java/com/eactive/eai/util/ByteCharSequence.java b/src/main/java/com/eactive/eai/util/ByteCharSequence.java index da287a1..b5e2a05 100644 --- a/src/main/java/com/eactive/eai/util/ByteCharSequence.java +++ b/src/main/java/com/eactive/eai/util/ByteCharSequence.java @@ -52,6 +52,6 @@ public class ByteCharSequence implements CharSequence{ if (m.find()){ index = m.start(); } - System.out.println("index = " + index); + // System.out.println("index = " + index); } } diff --git a/src/main/java/com/eactive/eai/util/CryptoUtil.java b/src/main/java/com/eactive/eai/util/CryptoUtil.java index d7849f1..8e331c0 100644 --- a/src/main/java/com/eactive/eai/util/CryptoUtil.java +++ b/src/main/java/com/eactive/eai/util/CryptoUtil.java @@ -51,20 +51,20 @@ public class CryptoUtil { String key = "ONAuROzlqWB4VuBwO5C/FA=="; String text = "Hello AES 한글"; - System.out.println("Original Text: " + text); + // System.out.println("Original Text: " + text); long startEncryptTime = System.nanoTime(); String enc = encryptAES(key, text); long endEncryptTime = System.nanoTime(); long encryptDuration = endEncryptTime - startEncryptTime; - System.out.println("Encrypted Text: " + enc); - System.out.println("Encryption took: " + encryptDuration + " nanoseconds"); + // System.out.println("Encrypted Text: " + enc); + // System.out.println("Encryption took: " + encryptDuration + " nanoseconds"); long startDecryptTime = System.nanoTime(); String dec = decryptAES(key, enc); long endDecryptTime = System.nanoTime(); long decryptDuration = endDecryptTime - startDecryptTime; - System.out.println("Decrypted Text: " + dec); - System.out.println("Decryption took: " + decryptDuration + " nanoseconds"); + // System.out.println("Decrypted Text: " + dec); + // System.out.println("Decryption took: " + decryptDuration + " nanoseconds"); } } \ No newline at end of file diff --git a/src/main/java/com/eactive/eai/util/IpUtil.java b/src/main/java/com/eactive/eai/util/IpUtil.java index 93c4e5a..a02fbf9 100644 --- a/src/main/java/com/eactive/eai/util/IpUtil.java +++ b/src/main/java/com/eactive/eai/util/IpUtil.java @@ -38,9 +38,9 @@ public class IpUtil { String matchdIps = "192.168.0.1,192.168.0.0/24,192.168.1.*"; String requestIp = "192.168.1.2"; if (IpUtil.isMatchIp(matchdIps, requestIp)) { - System.out.println(true); + // System.out.println(true); } else { - System.out.println(false); + // System.out.println(false); } } diff --git a/src/main/java/com/eactive/eai/util/JsonBeatiUtil.java b/src/main/java/com/eactive/eai/util/JsonBeatiUtil.java index 1066703..8322d15 100644 --- a/src/main/java/com/eactive/eai/util/JsonBeatiUtil.java +++ b/src/main/java/com/eactive/eai/util/JsonBeatiUtil.java @@ -135,7 +135,7 @@ public class JsonBeatiUtil { data += "} "; data = "{\"EAI_UJSON2DEPTHEXT_REQ1\":{\"abc\":\"cba \",\"grid1\":[{\"long1\":1,\"data2\":\" \",\"grid2\":[{\"data3\":\"12345\",\"big4\":\"14.00000\"},{\"data3\":\"13 \",\"big4\":\"14.00001\"}]},{\"long1\":10000,\"data2\":\" \",\"grid2\":[{\"data3\":\"23 \",\"big4\":\"24.00000\"}]},{\"long1\":1000000000,\"data2\":\" \",\"grid2\":[{\"data3\":\"33 \",\"big4\":\"0.00000\"},{\"data3\":\" \",\"big4\":\"0.00034\"},{\"data3\":\"35 \",\"big4\":\"0.00036\"}]}],\"abcd\":\"123\",\"grid3\":[{\"long1\":1,\"data2\":\" \",\"grid4\":[{\"data5\":\"00023\",\"big6\":\"24\"}]},{\"long1\":1000000000,\"data2\":\" \",\"grid4\":[{\"data5\":\"00033\",\"big6\":\"0\"},{\"data5\":\" \",\"big6\":\"34\"},{\"data5\":\"00035\",\"big6\":\"900000003600011\"}]}]}}"; - System.out.println(JsonBeatiUtil.SimpleBeautiful(data)); + // System.out.println(JsonBeatiUtil.SimpleBeautiful(data)); } } diff --git a/src/main/java/com/eactive/eai/util/JsonPathUtil.java b/src/main/java/com/eactive/eai/util/JsonPathUtil.java index 0f3e9b9..845d7af 100644 --- a/src/main/java/com/eactive/eai/util/JsonPathUtil.java +++ b/src/main/java/com/eactive/eai/util/JsonPathUtil.java @@ -104,22 +104,22 @@ public class JsonPathUtil { public static void main(String[] args) { String jsonString = "{ \"person\": { \"name\": \"John\", \"age\": 30, \"groups\": [ { \"id\": 1, \"name\": \"Group A\" }, { \"id\": 2, \"name\": \"Group B\" }, { \"id\": 3, \"name\": \"Group C\" } ] } }"; - System.out.println("Source JSON: \n" + jsonString); + // System.out.println("Source JSON: \n" + jsonString); // 경로를 사용하여 값 가져오기 (반복되는 그룹 포함) String getPath = "/person/groups/1/name"; String secondGroupName = getValueAtPath(jsonString, getPath); - System.out.println("getPath: " + getPath + " -> " + secondGroupName); + // System.out.println("getPath: " + getPath + " -> " + secondGroupName); // 경로를 사용하여 값 설정하기 (반복되는 그룹 포함) 및 Pretty 출력 String putPath = "/person/groups/2/name"; String updatedJsonString = setValueAtPath(jsonString, putPath, "Group Z", true); - System.out.println("putPath: " + putPath); - System.out.println("Updated JSON (Pretty): \n" + updatedJsonString); + // System.out.println("putPath: " + putPath); + // System.out.println("Updated JSON (Pretty): \n" + updatedJsonString); getPath = "/person/name"; - System.out.println("getPath: " + getPath + " -> " + getValueAtPath(jsonString, getPath)); + // System.out.println("getPath: " + getPath + " -> " + getValueAtPath(jsonString, getPath)); getPath = "/person/age"; - System.out.println("getPath: " + getPath + " -> " + getValueAtPath(jsonString, getPath)); + // System.out.println("getPath: " + getPath + " -> " + getValueAtPath(jsonString, getPath)); } } diff --git a/src/main/java/com/eactive/eai/util/json/JsonPathsTransform.java b/src/main/java/com/eactive/eai/util/json/JsonPathsTransform.java index dca2a3d..ca0600e 100644 --- a/src/main/java/com/eactive/eai/util/json/JsonPathsTransform.java +++ b/src/main/java/com/eactive/eai/util/json/JsonPathsTransform.java @@ -47,7 +47,7 @@ public class JsonPathsTransform { String encLog = transformer.getClass().getName() + " : " + String.format("path=%s, orgText[%s] plain[%s] newText[%s]", path, currentValue, transformer.getProperty("PLAIN_VALUE"), newValue); - System.out.println(encLog); + // System.out.println(encLog); logger.debug(encLog); } } catch (Exception e) { diff --git a/src/main/java/com/eactive/eai/util/json/JsonSimplePathsTransform.java b/src/main/java/com/eactive/eai/util/json/JsonSimplePathsTransform.java index 5e16ed9..2af3b2b 100644 --- a/src/main/java/com/eactive/eai/util/json/JsonSimplePathsTransform.java +++ b/src/main/java/com/eactive/eai/util/json/JsonSimplePathsTransform.java @@ -30,7 +30,7 @@ public class JsonSimplePathsTransform { if(logger.isDebug()) { // FIXME : kbank - 로그내용 수정 String encLog = transformer.getClass().getName() +" : "+ String.format("path=%s, orgText[%s] plain[%s] newText[%s]", path, currentValue, transformer.getProperty("PLAIN_VALUE"), newValue); - System.out.println(encLog); + // System.out.println(encLog); logger.debug(encLog); } setNodeValue(getParentNode(rootNode, getParentPath(path)), getFieldName(path), newValue); diff --git a/src/main/java/com/kbstar/eai/common/header/SHINBOHeaderAction.java b/src/main/java/com/kbstar/eai/common/header/SHINBOHeaderAction.java index 3b248db..dee555f 100644 --- a/src/main/java/com/kbstar/eai/common/header/SHINBOHeaderAction.java +++ b/src/main/java/com/kbstar/eai/common/header/SHINBOHeaderAction.java @@ -171,7 +171,7 @@ public class SHINBOHeaderAction extends HeaderActionSupport SHINBOHeaderAction sha = new SHINBOHeaderAction(); byte[] res = sha.addHeaderAD(orgData, message); - System.out.println("res]" +new String(res)); + // System.out.println("res]" +new String(res)); } */ } diff --git a/src/main/java/com/kbstar/eai/common/loader/EAILogFIleLoader.java b/src/main/java/com/kbstar/eai/common/loader/EAILogFIleLoader.java index c0a2b9f..d65885c 100644 --- a/src/main/java/com/kbstar/eai/common/loader/EAILogFIleLoader.java +++ b/src/main/java/com/kbstar/eai/common/loader/EAILogFIleLoader.java @@ -202,7 +202,7 @@ public class EAILogFIleLoader { in = new FileInputStream(configPath); p.load(in); } catch (Exception e){ - System.out.println("환경설정 파일이 없습니다. - 파일명 : " + configPath); + // System.out.println("환경설정 파일이 없습니다. - 파일명 : " + configPath); throw e; } finally{ @@ -211,7 +211,7 @@ public class EAILogFIleLoader { in.close(); } catch(Exception e) { - System.out.println("close error"); + // System.out.println("close error"); } } } @@ -225,16 +225,16 @@ public class EAILogFIleLoader { // String iniKey = p.getProperty("ini.key"); String encpval = p.getProperty("jdbc.pvalue"); - System.out.println("========================================================="); - System.out.println(" EAILogFileLoader Configuration - "+ new Date()); - System.out.println("========================================================="); + // System.out.println("========================================================="); + // System.out.println(" EAILogFileLoader Configuration - "+ new Date()); + // System.out.println("========================================================="); // System.out.println("driver = " + driver); // System.out.println("url = " + url); // System.out.println("ivalue = " + ival); // System.out.println("pvalue = " + encpval); // System.out.println("Table Owner = " + tableOwner); // System.out.println("iniFilePath = " + iniFilePath); - System.out.println("========================================================="); + // System.out.println("========================================================="); // ScpDbAgent agt = new ScpDbAgent(); // try { @@ -256,7 +256,7 @@ public class EAILogFIleLoader { try { date = new SimpleDateFormat("yyyyMMdd").parse(timeStr); // "yyyyMMddHHmmssSSS" } catch (ParseException e) { - System.out.println("getDayOfWeekNum error - "+timeStr); + // System.out.println("getDayOfWeekNum error - "+timeStr); // e.printStackTrace(); } long time = date.getTime(); @@ -281,7 +281,7 @@ public class EAILogFIleLoader { String[] info = null; try { - System.out.println(">> Log Date : " + cDay + ", rows=" + list.size()); + // System.out.println(">> Log Date : " + cDay + ", rows=" + list.size()); if( driver != null ) { Class.forName(driver); @@ -601,7 +601,7 @@ public class EAILogFIleLoader { // conn.commit(); } catch(Exception ex) { - System.out.println("ERROR SKIP INSERT - row : "+ position +", Error : " + ex.toString()); + // System.out.println("ERROR SKIP INSERT - row : "+ position +", Error : " + ex.toString()); // ex.printStackTrace(); if(!isForce) throw ex; } @@ -611,17 +611,17 @@ public class EAILogFIleLoader { catch(SQLException se) { // if(conn != null) conn.rollback(); if(info!=null) { - System.out.println("ERROR : DB 오류 - " + info.toString()); + // System.out.println("ERROR : DB 오류 - " + info.toString()); } else { - System.out.println("ERROR : DB 오류 - " + se.toString()); + // System.out.println("ERROR : DB 오류 - " + se.toString()); } // se.printStackTrace(); throw se; } catch(Exception e) { // if(conn != null) conn.rollback(); - System.out.println(e.toString()); + // System.out.println(e.toString()); // e.printStackTrace(); throw e; } @@ -630,13 +630,13 @@ public class EAILogFIleLoader { if(preparedStatement != null) preparedStatement.close(); } catch (SQLException sqle) { - System.out.println("SQLException was thrown: " + sqle.toString()); + // System.out.println("SQLException was thrown: " + sqle.toString()); } try { if(conn != null) conn.close(); } catch (SQLException sqle) { - System.out.println("SQLException was thrown: " + sqle.toString()); + // System.out.println("SQLException was thrown: " + sqle.toString()); } } } @@ -666,14 +666,14 @@ public class EAILogFIleLoader { } while (!"".equals(subMsgStr) && seq < 99); // TSEAILG02.BzwkDataSerno : NUMBER(2) } catch(Exception e) { - System.out.println("DB Logging[SLAVE] Failed - " + info[0] + "|" + info[1] + "|" + info[2] +"|seq="+seq); + // System.out.println("DB Logging[SLAVE] Failed - " + info[0] + "|" + info[1] + "|" + info[2] +"|seq="+seq); throw e; } finally { if(preparedStatement != null) { try { preparedStatement.close(); } catch (SQLException e) { - System.out.println("SQLException was thrown: " + e.toString()); + // System.out.println("SQLException was thrown: " + e.toString()); } } } @@ -729,21 +729,21 @@ public class EAILogFIleLoader { } } catch(Exception e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } finally { try { if(br != null) br.close(); } catch(Exception e) { - System.out.println(e.toString()); + // System.out.println(e.toString()); } } if(count > 0) { loadLog(cDay, list, true); } - System.out.println(String.format("## FILE=%s, INSERT ROW COUNTS : (%d/%d)", filePath, insertCount, totalCount)); + // System.out.println(String.format("## FILE=%s, INSERT ROW COUNTS : (%d/%d)", filePath, insertCount, totalCount)); } private String[] split(String data, String deli) { @@ -786,7 +786,7 @@ public class EAILogFIleLoader { String filePath = "C:\\trlog\\tran.log"; //args[1]; try { if(isReal && args.length < 2) { - System.out.println(getUsage()); + // System.out.println(getUsage()); System.exit(-1); } @@ -795,13 +795,13 @@ public class EAILogFIleLoader { filePath = args[1]; } - System.out.println("\n## START LOADING Infomation - " + configPath); + // System.out.println("\n## START LOADING Infomation - " + configPath); loader = new EAILogFIleLoader(); loader.init(configPath); loader.parse(filePath); } catch (Exception e) { - System.out.println("ERROR MAIN"); - System.out.println(e.toString()); + // System.out.println("ERROR MAIN"); + // System.out.println(e.toString()); System.exit(-2); } System.exit(0);