/********************************************************************** This is the function used by the scheduler to get a complete list of complexes for a given queue. All templates are filled by actual values. With this list the scheduler can decide whether a request matches this queue. **********************************************************************/ int queue_complexes2scheduler(lList **new_centry_list, lListElem *queue, const lList *exechost_list, const lList *centry_list) { DENTER(BASIS_LAYER, "queue_complexes2scheduler"); lFreeList(new_centry_list); *new_centry_list = get_attribute_list(host_list_locate(exechost_list, "global"), queue ? host_list_locate(exechost_list, lGetHost(queue, QU_qhostname)) : NULL, queue, centry_list); DRETURN(0); }
string Parser::rename(){ string view_name = get_dummy_view_name(); vector<string> attributes; string tok = tokenizer.pop(); if(tok != "("){ throw runtime_error("projection: expected '('"); } attributes = get_attribute_list(); string relation_name = atomic_expression(); db.rename(view_name, relation_name, attributes); return view_name; }
/* provide a list of attributes containing all attributes for the given host */ int host_complexes2scheduler( lList **new_centry_list, lListElem *host, lList *exechost_list, lList *centry_list ) { DENTER(TOP_LAYER, "host_comlexes2scheduler"); if (!host) { DPRINTF(("!!missing host!!\n")); } /* build global complex and add it to result */ lFreeList(new_centry_list); *new_centry_list = get_attribute_list(host_list_locate(exechost_list, "global"), host, NULL, centry_list); DRETURN(0); }