def do_numberrep(self, line):
        """numberrep <number of replicas> Set preferred number of replicas for new
        objects If the preferred number of replicas is set to zero, replication is also
        disallowed."""
        n_replicas = self._split_args(line, 1, 0)[0]
        self._command_processor.get_session().get_replication_policy().set_number_of_replicas(
            n_replicas
        )
        self._print_info_if_verbose("Set number of replicas to {}".format(n_replicas))
def do_numberrep ( self , line ) : n_replicas = self . _split_args ( line , 1 , 0 ) [ 0 ] self . _command_processor . get_session ( ) . get_replication_policy ( ) . set_number_of_replicas ( n_replicas ) self . _print_info_if_verbose ( "Set number of replicas to {}" . format ( n_replicas ) )
numberrep <number of replicas> Set preferred number of replicas for new
        objects If the preferred number of replicas is set to zero, replication is also
        disallowed.