ProjectOnline.java 1.69 KB
package com.ui.project;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ProjectOnline {

	private static  List<Project> list = new ArrayList<Project>();

	private static Map<String,Project> map = new HashMap<String,Project>();

	static{
		list.add(new Project("1","yoho-gateway","126","yoho30"));
		list.add(new Project("1","yoho-users","134","yoho30"));
		list.add(new Project("1","yoho-message","123","yoho30"));
		list.add(new Project("1","yoho-sns","125","yoho30"));
		list.add(new Project("1","yoho-push","137","yoho30"));
		list.add(new Project("1","yohobuy-resources","122","yoho30"));
		list.add(new Project("1","yohobuy-order","124","yoho30"));
		list.add(new Project("1","yohobuy-promotion","140","yoho30"));
		list.add(new Project("1","yohobuy-product","143","yoho30"));
		list.add(new Project("1","yohobuy-union","133","yoho30"));
		list.add(new Project("1","yohobuy-activity","129","yoho30"));
		list.add(new Project("1","yohobuy-task","138","yoho30"));
		list.add(new Project("1","yohobuy-wechat","248","yoho30"));
		list.add(new Project("1","yohobuy-brower","131","yoho30"));

		list.add(new Project("2","yoho-search-service","12","yoho-search"));
		list.add(new Project("2","yoho-search-consumer","8","yoho-search"));
		list.add(new Project("2","yoho-search-producer","7","yoho-search"));

		list.add(new Project("3","yohobuy-platform","110","platform"));
		list.add(new Project("3","yohobuy-bigdata","113","platform"));

		for(Project project :list){
			map.put(project.getName(),project);
		}

	}


	public static List<Project> getProjectList() {
		return list;
	}

	public  static Project getProject(String name){
		return map.get(name);
	}

}