<%@ page import="java.io.*, java.util.*"%> <%@ page language="java" contentType="text/html;charset=utf-8"%> <%@ page import="com.eactive.eai.adapter.AdapterVO"%> <%@ page import="com.eactive.eai.agent.command.Command"%> <%@ page import="com.eactive.eai.agent.testcall.TestCallCommand"%> <%@ page import="com.eactive.eai.agent.AgentUtil"%> <%@ page import="com.eactive.eai.common.property.PropManager"%> <%@ page import="com.eactive.eai.common.testcall.TestCall"%> <%@ page import="com.eactive.eai.common.testcall.TestCallManager"%> <% TestCallManager manager = TestCallManager.getInstance(); ArrayList names = new ArrayList(); String action = request.getParameter("actionType"); String period = request.getParameter("period"); Properties prop = new Properties(); Iterator it = manager.getAllAdapterNames(); while(it.hasNext()) { names.add(it.next()); } Collections.sort(names); if(period == null|| period.length()<=0){ PropManager pmanager = PropManager.getInstance(); long temp = 1000*60*10; try { temp = Long.parseLong(pmanager.getProperty(manager.PROP_GROUP, manager.PROP_PERIOD)); } catch(Exception e) {} period = ""+temp; } String run = ""; if("UPDATE".equals(action)) { prop.setProperty("PERIOD", period); Command command = new TestCallCommand(); command.setArgs(prop); AgentUtil.broadcast(command); } if("START".equals(action)){ run = "START"; prop.setProperty("RUN",run); Command command = new TestCallCommand(); command.setArgs(prop); AgentUtil.broadcast(command); } if("STOP".equals(action)){ run = "STOP"; prop.setProperty("RUN",run); Command command = new TestCallCommand(); command.setArgs(prop); AgentUtil.broadcast(command); } String status = ""; if(manager.isStarted()) status = "시작됨"; else status = "종료됨"; %> TestCall Manager

TestCall Configuration

 

<% if(names != null || names.size() > 0 ) { int length = names.size(); for(int i=0; i <% } } %>
  항목      내용
  Adapter Name :    
  Adapter 상태 :