put all flags in a json str
| 87 | |
| 88 | // put all flags in a json str |
| 89 | boost::property_tree::ptree flags2Ptree() { |
| 90 | boost::property_tree::ptree pt; |
| 91 | if (FLAGS_user_lib_path.empty()) { |
| 92 | LOG(ERROR) << "user jni lib not set"; |
| 93 | } |
| 94 | pt.put("user_lib_path", FLAGS_user_lib_path); |
| 95 | // Different from other type of apps, we need to specify |
| 96 | // vd and ed type in app_class for generic class creations |
| 97 | pt.put("app_class", build_generic_class(FLAGS_app_class, FLAGS_vd_class, |
| 98 | FLAGS_ed_class, FLAGS_msg_class)); |
| 99 | pt.put("graphx_context_class", |
| 100 | build_generic_class(FLAGS_context_class, FLAGS_vd_class, |
| 101 | FLAGS_ed_class, FLAGS_msg_class)); |
| 102 | pt.put("msg_class", FLAGS_msg_class); |
| 103 | pt.put("vd_class", FLAGS_vd_class); |
| 104 | pt.put("ed_class", FLAGS_ed_class); |
| 105 | pt.put("max_iterations", FLAGS_max_iterations); |
| 106 | pt.put("serial_path", FLAGS_serial_path); |
| 107 | pt.put("num_part", FLAGS_num_part); |
| 108 | return pt; |
| 109 | } |
| 110 | |
| 111 | std::pair<vineyard::ObjectID, int> splitAndGet(grape::CommSpec& comm_spec, |
| 112 | const std::string& ids) { |
no test coverage detected