CoherenceNodeBean.java 2.33 KB
package com.sitech.ismp.coll.centercoll.bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: ZhouYou
 * Date: 15-7-14
 * Time: 下午3:51
 * To change this template use File | Settings | File Templates.
 */
public class CoherenceNodeBean implements Serializable {
    private static final long serialVersionUID = -5809782578272947899L;

    public String nodeId;
    public String hostIp;
    public String processNo;
    public String role;
    public Integer heapMemory;
    public Integer honHeapMemory;
    public String state;

    public String getTest() {
        return test;
    }

    public void setTest(String test) {
        this.test = test;
    }

    public String test;

    private static CoherenceNodeBean instance ;

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getHonHeapMemory() {
        return honHeapMemory;
    }

    public void setHonHeapMemory(Integer honHeapMemory) {
        this.honHeapMemory = honHeapMemory;
    }

    public Integer getHeapMemory() {
        return heapMemory;
    }

    public void setHeapMemory(Integer heapMemory) {
        this.heapMemory = heapMemory;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getProcessNo() {
        return processNo;
    }

    public void setProcessNo(String processNo) {
        this.processNo = processNo;
    }

    public String getHostIp() {
        return hostIp;
    }

    public void setHostIp(String hostIp) {
        this.hostIp = hostIp;
    }


    public Map<String, CoherenceNodeBean> getNodeBeanM() {
        return nodeBeanM;
    }

    public void setNodeBeanM(Map<String, CoherenceNodeBean> nodeBeanM) {
        this.nodeBeanM = nodeBeanM;
    }

    //key为id
    public Map<String,CoherenceNodeBean> nodeBeanM = new HashMap<String,CoherenceNodeBean>();

    public static synchronized  CoherenceNodeBean getInstance(){
        if(instance == null){
            instance = new  CoherenceNodeBean();
        }
        return instance;
    }
}