package com.cmos.msgframe.admin.action;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cmos.msgframe.admin.service.IClusterService;
import com.cmos.msgframe.common.util.OutPutParameter;
/**
 * 项目名称：cmos-msg-admin   
 * 类名称：ClusterAction   
 * 类描述：   集群管理控制层
 * 创建人：guozq5   
 * 创建时间：2016-11-11 上午10:31:46   
 * 修改人：guozq5   
 * 修改时间：2016-11-11 上午10:31:46   
 * 修改备注：   
 * @version    
 *
 */
@Controller
@RequestMapping("/cluster")
public class ClusterController {

	@Resource
	private IClusterService clusterService;
	/**
	* @Title: getClusList
	* @Description: 获取集群和集群下的broker的信息
	* @param @return
	* @param @throws Exception
	* @return List<Map>    返回类型
	* @throws
	 */
	@RequestMapping(value="/list",method=RequestMethod.POST)
	@ResponseBody
	public OutPutParameter getClusList() throws Exception {
		return clusterService.getClusList();
	}
}
