/** * $Id: RegisterBrokerRequestHeader.java 1835 2013-05-16 02:00:50Z shijia.wxr $ */ package com.alibaba.rocketmq.common.protocol.header.namesrv; import com.alibaba.rocketmq.remoting.CommandCustomHeader; import com.alibaba.rocketmq.remoting.annotation.CFNotNull; import com.alibaba.rocketmq.remoting.exception.RemotingCommandException; /** * @author lansheng.zj@taobao.com */ public class RegisterBrokerRequestHeader implements CommandCustomHeader { @CFNotNull private String brokerName; @CFNotNull private String brokerAddr; @CFNotNull private String clusterName; @CFNotNull private String haServerAddr; @CFNotNull private Long brokerId; @Override public void checkFields() throws RemotingCommandException { } public String getBrokerName() { return brokerName; } public void setBrokerName(String brokerName) { this.brokerName = brokerName; } public String getBrokerAddr() { return brokerAddr; } public void setBrokerAddr(String brokerAddr) { this.brokerAddr = brokerAddr; } public String getClusterName() { return clusterName; } public void setClusterName(String clusterName) { this.clusterName = clusterName; } public String getHaServerAddr() { return haServerAddr; } public void setHaServerAddr(String haServerAddr) { this.haServerAddr = haServerAddr; } public Long getBrokerId() { return brokerId; } public void setBrokerId(Long brokerId) { this.brokerId = brokerId; } }