//package com.eactive.eai.agent.businessday; 
//
//import com.eactive.eai.agent.AgentUtil;
//import com.eactive.eai.agent.command.Command;
//import com.eactive.eai.agent.command.CommandException;
//import com.eactive.eai.common.util.Logger;
//import com.kbstar.eai.common.businessday.BusinessDayManager;
//
//public class ReloadBusinessDayCommand extends Command
//{ 
//     /**
//	 * 
//	 */
//	private static final long serialVersionUID = 1L;
//
//	/** 
//    * 1. 기능 : ReloadBusinessDayCommand 생성자 
//    * 2. 처리 개요 : 
//    * 3. 주의사항 
//    *
//    * @param 
//    * @return 
//    * @exception
//    **/
//    public ReloadBusinessDayCommand() {
//        super("ReloadBusinessDayCommand");    
//    }
//    
//    /** 
//    * 1. 기능 :  BusinessDayManager의 데이터를 DB로부터 Reload
//    * 2. 처리 개요 : BusinessDayManager의 reload메소드를 실행하여 DB로부터 Reload
//    * 3. 주의사항 
//    *
//    * @param 
//    * @return 
//    * @exception    CommandException
//    **/
//    public Object execute() throws CommandException
//    {
//        Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
//        if (logger.isWarn()) logger.warn(this.name + " is executed");
//        
//        try{
//        	BusinessDayManager manager = BusinessDayManager.getInstance();
//            
//            manager.reload();
//            if(logger.isWarn()) 
//            	logger.warn(this.name + "] 모든 정보가 Reload 되었습니다.");
//        }catch (Exception e){
//            String rspErrorCode = "RECEAIMCM002";
//            String msg = makeException(rspErrorCode, e);
//            if (logger.isError()) logger.error(msg, e);
//            throw new CommandException(msg);
//        }
//        return "success";
//    }
//
////    public static void main(String[] args)throws Exception{
////        Command command = new ReloadBusinessDayCommand();
////        command.setArgs("ALL");
////        AgentUtil.broadcast(command);
////        
////    }
//} 
