package com.mgr.group;

import com.taurus.core.routes.Extension;
import com.taurus.core.routes.Routes;
import com.taurus.permanent.TPServer;
import com.taurus.permanent.core.DefaultConstants;
import com.taurus.web.TWebServer;

public class WebMain extends Extension {

	public void onStart() {
		DefaultConstants.SERVER_CFG_FILE = TWebServer.me().getContextRealPath()+"/" + DefaultConstants.SERVER_CFG_FILE;
		TPServer.me().start();
	}

	@Override
	public void onStop() {
		TPServer.me().shutdown();
	}




	@Override
	public void configRoute(Routes me) {
		// TODO Auto-generated method stub
		
	}
	
	public int getConcurrentSize() {
		return Global.sessionMgr.size();
	}

}
