@@ -63,28 +63,27 @@ class ExecutionProfile : public Object<CassExecProfile, cass_execution_profile_f
6363 */
6464 static ExecutionProfile build () { return ExecutionProfile (); }
6565
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+ }
7776
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+ }
8887
8988 /* *
9089 * Assign/Set the profile consistency level for statement/batch execution
@@ -258,28 +257,27 @@ class ExecutionProfile : public Object<CassExecProfile, cass_execution_profile_f
258257 return *this ;
259258 }
260259
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+ }
272270
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+ }
283281};
284282
285283}} // namespace test::driver
0 commit comments