// Path: src/main/java/org/mycat/web/task/common/ITask.java
// public interface ITask{
// 	public static final String STATEMENT = "queryMycat";
// 	public static final long UPDATE_PERIOD = 5000*60;
// 	
// 	public void excute(String dbName, Date nowDate);
// }
// 
// Path: src/main/java/org/mycat/web/util/DataSourceUtils.java
// public enum MycatPortType{
// 	MYCAT_MANGER,
// 	MYCAT_SERVER
// } 


import java.util.Date;
import java.util.List;
import java.util.Map;
import org.hx.rainbow.common.context.RainbowProperties;
import org.hx.rainbow.common.core.service.BaseService;
import org.mycat.web.task.common.ITask;
import org.mycat.web.task.common.SqliteStore;
import org.mycat.web.util.DataSourceUtils.MycatPortType;
import org.springframework.stereotype.Service;

package org.mycat.web.task.server;



@Service
public class ShowMycatProcessor extends BaseService implements ITask {
	private static final String NAMESPACE = "MYCATSHOWPROCESSOR";
	
//	public ShowMycatProcessor(){
//		Long period = Long.parseLong((String)RainbowProperties.getProperties("show.period"));
//		if(period == null || period < 30000){
//			period = UPDATE_PERIOD;
//		}
//		TaskManger.getInstance().addTask(this, period);
//	}
	
	@Override
	public void excute(String dbName, Date nowDate) {

// Path: src/main/java/org/mycat/web/task/common/ITask.java
// public interface ITask{
// 	public static final String STATEMENT = "queryMycat";
// 	public static final long UPDATE_PERIOD = 5000*60;
// 	
// 	public void excute(String dbName, Date nowDate);
// }
// 
// Path: src/main/java/org/mycat/web/util/DataSourceUtils.java
// public enum MycatPortType{
// 	MYCAT_MANGER,
// 	MYCAT_SERVER
// } 


// Path: src/main/java/org/mycat/web/task/server/ShowMycatProcessor.java
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.hx.rainbow.common.context.RainbowProperties;
import org.hx.rainbow.common.core.service.BaseService;
import org.mycat.web.task.common.ITask;
import org.mycat.web.task.common.SqliteStore;
import org.mycat.web.util.DataSourceUtils.MycatPortType;
import org.springframework.stereotype.Service;

package org.mycat.web.task.server;



@Service
public class ShowMycatProcessor extends BaseService implements ITask {
	private static final String NAMESPACE = "MYCATSHOWPROCESSOR";
	
//	public ShowMycatProcessor(){
//		Long period = Long.parseLong((String)RainbowProperties.getProperties("show.period"));
//		if(period == null || period < 30000){
//			period = UPDATE_PERIOD;
//		}
//		TaskManger.getInstance().addTask(this, period);
//	}
	
	@Override
	public void excute(String dbName, Date nowDate) {

		List<Map<String, Object>> datas = super.getDao().query(dbName + MycatPortType.MYCAT_MANGER, NAMESPACE, STATEMENT);
