@@ -63,28 +63,27 @@ class ExecutionProfile : public Object<CassExecProfile, cass_execution_profile_f
63
63
*/
64
64
static ExecutionProfile build () { return ExecutionProfile (); }
65
65
66
- // Host filtering is not supported in cpp-rust-driver
67
- // /**
68
- // * Append/Assign/Set the blacklist hosts for statement/batch execution
69
- // *
70
- // * @param hosts A comma delimited list of hosts addresses
71
- // * @return Execution profile object
72
- // */
73
- // ExecutionProfile& with_blacklist_filtering(const std::string& hosts) {
74
- // EXPECT_EQ(CASS_OK, cass_execution_profile_set_blacklist_filtering(get(), hosts.c_str()));
75
- // return *this;
76
- // }
66
+ /* *
67
+ * Append/Assign/Set the blacklist hosts for statement/batch execution
68
+ *
69
+ * @param hosts A comma delimited list of hosts addresses
70
+ * @return Execution profile object
71
+ */
72
+ ExecutionProfile& with_blacklist_filtering (const std::string& hosts) {
73
+ EXPECT_EQ (CASS_OK, cass_execution_profile_set_blacklist_filtering (get (), hosts.c_str ()));
74
+ return *this ;
75
+ }
77
76
78
- // / **
79
- // * Append/Assign/Set the blacklist data centers for statement/batch execution
80
- // *
81
- // * @param dcs A comma delimited list of data center names
82
- // * @return Execution profile object
83
- // */
84
- // ExecutionProfile& with_blacklist_dc_filtering(const std::string& dcs) {
85
- // EXPECT_EQ(CASS_OK, cass_execution_profile_set_blacklist_dc_filtering(get(), dcs.c_str()));
86
- // return *this;
87
- // }
77
+ /* *
78
+ * Append/Assign/Set the blacklist data centers for statement/batch execution
79
+ *
80
+ * @param dcs A comma delimited list of data center names
81
+ * @return Execution profile object
82
+ */
83
+ ExecutionProfile& with_blacklist_dc_filtering (const std::string& dcs) {
84
+ EXPECT_EQ (CASS_OK, cass_execution_profile_set_blacklist_dc_filtering (get (), dcs.c_str ()));
85
+ return *this ;
86
+ }
88
87
89
88
/* *
90
89
* Assign/Set the profile consistency level for statement/batch execution
@@ -258,28 +257,27 @@ class ExecutionProfile : public Object<CassExecProfile, cass_execution_profile_f
258
257
return *this ;
259
258
}
260
259
261
- // Host filtering is not supported in cpp-rust-driver
262
- // /**
263
- // * Append/Assign/Set the whitelist hosts for statement/batch execution
264
- // *
265
- // * @param hosts A comma delimited list of hosts addresses
266
- // * @return Execution profile object
267
- // */
268
- // ExecutionProfile& with_whitelist_filtering(const std::string& hosts) {
269
- // EXPECT_EQ(CASS_OK, cass_execution_profile_set_whitelist_filtering(get(), hosts.c_str()));
270
- // return *this;
271
- // }
260
+ /* *
261
+ * Append/Assign/Set the whitelist hosts for statement/batch execution
262
+ *
263
+ * @param hosts A comma delimited list of hosts addresses
264
+ * @return Execution profile object
265
+ */
266
+ ExecutionProfile& with_whitelist_filtering (const std::string& hosts) {
267
+ EXPECT_EQ (CASS_OK, cass_execution_profile_set_whitelist_filtering (get (), hosts.c_str ()));
268
+ return *this ;
269
+ }
272
270
273
- // / **
274
- // * Append/Assign/Set the whitelist data centers for statement/batch execution
275
- // *
276
- // * @param dcs A comma delimited list of data center names
277
- // * @return Execution profile object
278
- // */
279
- // ExecutionProfile& with_whitelist_dc_filtering(const std::string& dcs) {
280
- // EXPECT_EQ(CASS_OK, cass_execution_profile_set_whitelist_dc_filtering(get(), dcs.c_str()));
281
- // return *this;
282
- // }
271
+ /* *
272
+ * Append/Assign/Set the whitelist data centers for statement/batch execution
273
+ *
274
+ * @param dcs A comma delimited list of data center names
275
+ * @return Execution profile object
276
+ */
277
+ ExecutionProfile& with_whitelist_dc_filtering (const std::string& dcs) {
278
+ EXPECT_EQ (CASS_OK, cass_execution_profile_set_whitelist_dc_filtering (get (), dcs.c_str ()));
279
+ return *this ;
280
+ }
283
281
};
284
282
285
283
}} // namespace test::driver
0 commit comments