public static ZabMessage . ClusterConfiguration buildConfig ( ClusterConfiguration config ) { ZabMessage . Zxid version = toProtoZxid ( config . getVersion ( ) ) ; return ZabMessage . ClusterConfiguration . newBuilder ( ) . setVersion ( version ) . addAllServers ( config . getPeers ( ) ) . build ( ) ; }
Creates a ZabMessage . ClusterConfiguration object .