This commit is contained in:
Rinjae
2025-09-05 18:57:45 +09:00
commit aacc1a389e
1229 changed files with 167963 additions and 0 deletions
@@ -0,0 +1,8 @@
package com.eactive.eai.adapter.wca.command;
public interface DBCommand
{
public static final String CMD_UPDATE = "UPDATE";
public static final String CMD_INSERT = "INSERT";
public static final String CMD_DELETE = "DELETE";
}
@@ -0,0 +1,66 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.SNAAdapterManager;
import com.eactive.eai.adapter.wca.cfg.SessionGroupDataEx;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 세션 그룹 삭제
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 deleteSessionGroup 함수 실행
* - softlink에 notify 해준다.
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class DeleteSessionGroupEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public DeleteSessionGroupEx() {
super("DeleteSessionGroup");
}
/**
* 1. 기능 : LU 세션 그룹 삭제
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
adapter_logger.warn("DeleteSessionGroupEx:execute> Start Execute Command, Command = " + this.name);
if(!(args instanceof SessionGroupDataEx) ) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
adapter_logger.error("DeleteSessionGroupEx:execute> Invalid Data Type, Msg = " + msg);
throw new CommandException(msg);
}
try {
SessionGroupDataEx data = (SessionGroupDataEx)args;
SNAAdapterManager.getInstance().deleteLuGroupInfoEx(data);
}
catch (Exception e) {
String rspErrorCode = "RECEAIMCM002";
String msg = makeException(rspErrorCode, e);
adapter_logger.error("InsertSessionGroupEx:execute> Exception Occur, Msg = " + msg, e);
// e.printStackTrace();
throw new CommandException(msg);
}
return "success";
}
}
@@ -0,0 +1,65 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.SNAAdapterManager;
import com.eactive.eai.adapter.wca.cfg.SessionGroupDataEx;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 세션 그룹 등록
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 insertSessionGroup 함수 실행
* - softlink에 notify 해준다.
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class InsertSessionGroupEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public InsertSessionGroupEx() {
super("InsertSessionGroup");
}
/**
* 1. 기능 : LU 세션 그룹 등록
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
adapter_logger.warn("InsertSessionGroupEx:execute> Start Execute Command, Command = " + this.name);
if(!(args instanceof SessionGroupDataEx)) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
adapter_logger.error("InsertSessionGroupEx:execute> Invalid Data Type, Msg = " + msg);
throw new CommandException(msg);
}
try {
SessionGroupDataEx data = (SessionGroupDataEx)args;
SNAAdapterManager.getInstance().insertLuGroupInfoEx(data);
}
catch (Exception e) {
String rspErrorCode = "RECEAIMCM002";
String msg = makeException(rspErrorCode, e);
adapter_logger.error("InsertSessionGroupEx:execute> Exception Occur, Msg = " + msg, e);
throw new CommandException(msg);
}
return "success";
}
}
@@ -0,0 +1,65 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.SessionGroupDataEx;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 세션 그룹 삭제
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 deleteSessionGroup 함수 실행
* - softlink에 notify 해준다.
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class StartSessionGroupEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public StartSessionGroupEx() {
super("DeleteSessionGroup");
}
/**
* 1. 기능 : LU 세션 그룹 삭제
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
adapter_logger.warn("DeleteSessionGroupEx:execute> Start Execute Command, Command = " + this.name);
if(!(args instanceof SessionGroupDataEx) ) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
adapter_logger.error("DeleteSessionGroupEx:execute> Invalid Data Type, Msg = " + msg);
throw new CommandException(msg);
}
// try {
// SessionGroupDataEx data = (SessionGroupDataEx)args;
// // SNAAdapterManager.getInstance().deleteLuGroupInfoEx(data);
// }
// catch (Exception e) {
// String rspErrorCode = "RECEAIMCM002";
// String msg = makeException(rspErrorCode, e);
// adapter_logger.error("InsertSessionGroupEx:execute> Exception Occur, Msg = " + msg, e);
//// e.printStackTrace();
// throw new CommandException(msg);
// }
return "success";
}
}
@@ -0,0 +1,64 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.SessionGroupDataEx;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 세션 그룹 삭제
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 deleteSessionGroup 함수 실행
* - softlink에 notify 해준다.
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class StopSessionGroupEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public StopSessionGroupEx() {
super("DeleteSessionGroup");
}
/**
* 1. 기능 : LU 세션 그룹 삭제
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
adapter_logger.warn("DeleteSessionGroupEx:execute> Start Execute Command, Command = " + this.name);
if(!(args instanceof SessionGroupDataEx) ) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
adapter_logger.error("DeleteSessionGroupEx:execute> Invalid Data Type, Msg = " + msg);
throw new CommandException(msg);
}
// try {
// SessionGroupDataEx data = (SessionGroupDataEx)args;
// // SNAAdapterManager.getInstance().deleteLuGroupInfoEx(data);
// }
// catch (Exception e) {
// String rspErrorCode = "RECEAIMCM002";
// String msg = makeException(rspErrorCode, e);
// adapter_logger.error("InsertSessionGroupEx:execute> Exception Occur, Msg = " + msg, e);
// throw new CommandException(msg);
// }
return "success";
}
}
@@ -0,0 +1,96 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.LUInfoDataEx;
import com.eactive.eai.adapter.wca.cfg.SNAAdapterManager;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 정보 수정
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 loadLUInfos, setLUGroupTranModes 함수 실행
* - softlink에 notify 해준다.
* - LU별 로그 실시간 적용할 경우, softlink에 로그 정보를 notify 해준다.
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class UpdateLUInfoEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public UpdateLUInfoEx() {
super("UpdateLUInfo");
}
/**
* 1. 기능 : LU 정보 수정
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
// Logger trc_logger = Logger.getLogger(Logger.LOGGER_ADAPTER);
// 20080527 Start
/*
if(adapter_logger.isInfo()) adapter_logger.info(this.name + " is executed");
*/
if(adapter_logger.isWarn()) adapter_logger.warn(this.name + " is executed");
// 20080527 End
if( !(args instanceof LUInfoDataEx) ) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
if(adapter_logger.isError()) adapter_logger.error(msg);
throw new CommandException(msg);
}
SNAAdapterManager manager = SNAAdapterManager.getInstance();
// LUInfoDataEx lu_data = (LUInfoDataEx)args;
// 20080827 Start
/*
if(!MyUtil.isLocalHostName(lu_data.getNodeName()))
{
if(trc_logger.isInfo()) trc_logger.info("UpdateLUInfoCommand]적용 Node명이 틀립니다. " +lu_data.getNodeName());
return;
}
*/
// 20080827 End
try {
// 1. 메모리 update
manager.loadLUInfos();
/*
if(adapter_logger.isWarn()) adapter_logger.warn(this.name + " Skip Update Commnad");
// 2. softlink notify
RuntimeUtil.getInstance().notifyAllSoftlink();
*/
}
catch(Exception e) {
String rspErrorCode = "RECEAIMCM002";
String msg = makeException(rspErrorCode, e);
if(adapter_logger.isError()) adapter_logger.error(msg, e);
// e.printStackTrace();
throw new CommandException(msg);
}
return "success";
}
}
@@ -0,0 +1,66 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.SNAAdapterManager;
import com.eactive.eai.adapter.wca.cfg.SessionGroupDataEx;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 세션 그룹 수정
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 updateSessionGroup 함수 실행
* - softlink에 notify 해준다.
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class UpdateSessionGroupEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public UpdateSessionGroupEx() {
super("UpdateSessionGroup");
}
/**
* 1. 기능 : LU 세션 그룹 수정
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
adapter_logger.warn("UpdateSessionGroupEx:execute> Start Execute Command, Command = " + this.name);
if( !(args instanceof SessionGroupDataEx) ) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
adapter_logger.error("UpdateSessionGroupEx:execute> Invalid Data Type, Msg = " + msg);
throw new CommandException(msg);
}
try {
SessionGroupDataEx data = (SessionGroupDataEx)args;
SNAAdapterManager.getInstance().updateLuGroupInfoEx(data);
}
catch (Exception e){
String rspErrorCode = "RECEAIMCM002";
String msg = makeException(rspErrorCode, e);
adapter_logger.error("InsertSessionGroupEx:execute> Exception Occur, Msg = " + msg, e);
throw new CommandException(msg);
}
return "success";
}
}
@@ -0,0 +1,66 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.SNAAdapterManager;
import com.eactive.eai.adapter.wca.cfg.WcaInfoDataEx;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 세션 그룹 수정
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 updateWcaAppCode 함수 실행
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class UpdateWcaAppCodeEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public UpdateWcaAppCodeEx() {
super("UpdateWcaAppCodeEx");
}
/**
* 1. 기능 : LU 세션 그룹 수정
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
adapter_logger.warn("UpdateWcaAppCodeEx:execute> Start Execute Command, Command = " + this.name);
if (!(args instanceof WcaInfoDataEx)) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
adapter_logger.error("UpdateWcaAppCodeEx:execute> Invalid Data Type, Msg = " + msg);
throw new CommandException(msg);
}
try {
WcaInfoDataEx data = (WcaInfoDataEx)args;
SNAAdapterManager.getInstance().updateWcaAppCodeEx(data);
}
catch (Exception e) {
String rspErrorCode = "RECEAIMCM002";
String msg = makeException(rspErrorCode, e);
adapter_logger.error("InsertSessionGroupEx:execute> Exception Occur, Msg = " + msg, e);
throw new CommandException(msg);
}
return "success";
}
}
@@ -0,0 +1,66 @@
package com.eactive.eai.adapter.wca.command;
import com.eactive.eai.adapter.wca.cfg.SNAAdapterManager;
import com.eactive.eai.adapter.wca.cfg.WcaInfoDataEx;
import com.eactive.eai.adapter.wca.global.WCADefine;
import com.eactive.eai.agent.command.Command;
import com.eactive.eai.agent.command.CommandException;
import com.eactive.eai.common.util.Logger;
/**
* 1. 기능 : EAI 서버에 실시간 LU 세션 그룹 삭제
* 2. 처리 개요 :
* - SNAAdapterManager 클래스에 deleteSessionGroup 함수 실행
* - softlink에 notify 해준다.
* 3. 주의사항
*
* @author :
* @version :
* @see :
* @since :
*/
public class UpdateWcaInfoEx extends Command
{
/**
* 1. 기능 : Default Constructor
* 2. 처리 개요 :
* 3. 주의사항
**/
public UpdateWcaInfoEx() {
super("UpdateWcaInfo");
}
/**
* 1. 기능 : LU 세션 그룹 삭제
* 2. 처리 개요 :
* 3. 주의사항
*
* @exception CommandException command 실행 시 발생하는 예외 상황
**/
public Object execute() throws CommandException
{
Logger adapter_logger = Logger.getLogger(WCADefine.ADAPTER_LOGGER_NAME);
adapter_logger.warn("UpdateWcaInfoEx:execute> Start Execute Command, Command = " + this.name);
if(!(args instanceof WcaInfoDataEx) ) {
String rspErrorCode = "RECEAIMCM001";
String msg = makeException(rspErrorCode, null);
adapter_logger.error("UpdateWcaInfoEx:execute> Invalid Data Type, Msg = " + msg);
throw new CommandException(msg);
}
try {
WcaInfoDataEx data = (WcaInfoDataEx)args;
SNAAdapterManager.getInstance().updateWcaInfo(data);
}
catch (Exception e) {
String rspErrorCode = "RECEAIMCM002";
String msg = makeException(rspErrorCode, e);
adapter_logger.error("UpdateWcaInfoEx:execute> Exception Occur, Msg = " + msg, e);
throw new CommandException(msg);
}
return "success";
}
}