The ll_get_objs subroutine sends a query request to the daemon you specify along with the request data you specified in the ll_set_request subroutine. ll_get_objs receives a list of objects matching the request.
LoadLeveler API library libllapi.a
#include "llapi.h" LL_element * ll_get_objs(LL_element *query_element,LL_Daemon query_daemon, char *hostname,int *number_of_objs,int *error_code);
enum LL_Daemon {LL_STARTD, LL_SCHEDD, LL_CM, LL_MASTER, LL_STARTER};
The following indicates which daemons respond to which query flags.
When query_type (in ll_query) is JOBS, the
query_flags (in ll_set_request) listed in the lefthand
column are responded to by the daemons listed in the righthand column:
QUERY_ALL | negotiator (LL_CM) or schedd (LL_SCHEDD) |
QUERY_JOBID | negotiator (LL_CM) or schedd (LL_SCHEDD) |
QUERY_STEPID | negotiator (LL_CM) |
QUERY_USER | negotiator (LL_CM) |
QUERY_GROUP | negotiator (LL_CM) |
QUERY_CLASS | negotiator (LL_CM) |
QUERY_HOST | negotiator (LL_CM) |
When query_type (in ll_query) is MACHINES, the
query_flags (in ll_set_request) listed in the lefthand
column are responded to by the daemons listed in the righthand column:
QUERY_ALL | negotiator (LL_CM) |
QUERY_HOST | negotiator (LL_CM) |
query_element, query_daemon, and hostname are the input fields for this subroutine. number_of_objs and error_code are output fields.
Each LoadLeveler daemon returns only the objects that it knows about.
This subroutine returns a pointer to the first object in the list. You must use the ll_next_obj subroutine to access the next object in the list.
This subroutine a NULL to indicate failure. The error_code parameter is set to one of the following:
Subroutines: ll_get_data, ll_set_request, ll_query, ll_get_objs, ll_free_objs, ll_next_obj, ll_deallocate.