void host_insert(host_t *host, scheduler_t *scheduler)
Inserts a new host into the scheduler structure.
host_t * host_init(char *name, char *address, char *agent_dir, int max)
Creates a new host, and adds it to the host list.
void host_decrease_load(host_t *host)
Decrease the number of running agents on a host by 1.
void print_host_load(GTree *host_list, GOutputStream *ostr)
Prints the host information to ostr.
void host_destroy(host_t *host)
Frees and uninitializes any memory associated with the host struct.
host_t * get_host(GList **queue, uint8_t num)
void host_increase_load(host_t *host)
Increase the number of running agents on a host by 1.
void host_print(host_t *host, GOutputStream *ostr)
Prints the information about a host to the output stream.
FUNCTION int max(int permGroup, int permPublic)
Get the maximum group privilege.
Header file for the scheduler.
char * agent_dir
The location on the host machine where the executables are.
int running
The number of agents currently running on this host.
char * address
The address of the host, used by ssh when starting a new agent.
char * name
The name of the host, used to store host internally to scheduler.
int max
The max number of agents that can run on this host.