globus_scheduler_event_generator_api
Scheduler Implementation API
Scheduler Implementation API
enum globus_scheduler_event_generator_error_t {
GLOBUS_SEG_ERROR_TYPE_NULL = 1024,
GLOBUS_SEG_ERROR_TYPE_ALREADY_SET,
GLOBUS_SEG_ERROR_TYPE_INVALID_MODULE,
GLOBUS_SEG_ERROR_TYPE_INVALID_FORMAT,
GLOBUS_SEG_ERROR_TYPE_OUT_OF_MEMORY,
GLOBUS_SEG_ERROR_TYPE_LOADING_MODULE }
globus_result_t globus_scheduler_event (const char
*format,...)
globus_result_t globus_scheduler_event_pending (time_t timestamp, const
char *jobid)
globus_result_t globus_scheduler_event_active (time_t timestamp, const
char *jobid)
globus_result_t globus_scheduler_event_failed (time_t timestamp, const
char *jobid, int failure_code)
globus_result_t globus_scheduler_event_done (time_t timestamp, const
char *jobid, int exit_code)
globus_result_t globus_scheduler_event_generator_get_timestamp (time_t
*timestamp)
Scheduler Implementation API.
Scheduler-specific SEG module implementations use this API to issue events to the Job State Monitor. Events occur whenever a job is placed in the scheduler's queue (PENDING), begins execution (ACTIVE), terminates successfully (DONE), or ends abnormally (FAILED).
A SEG module should register an event with the Globus event driver (most likely using either the Globus Callback or Globus XIO interfaces) in its activation function and then return. All events should be triggered from callbacks. When the SEG detects that it should terminate, it will deactivate the SEG module it started. The SEG module should wait for any outstanding callbacks to subside and before returning from its deactivation function to ensure that all events will be properly dispatched. After deactivation is complete, the SEG will unload the shared module and terminate.
Error types used by the SEG.
Enumerator
Send an arbitrary SEG notification.
Parameters
Return values
Send a job active event to the JobSchedulerMonitor implementation.
Parameters
Return values
Send a job done event to the JobSchedulerMonitor implementation.
Parameters
Return values
Send a job failed event to the JobSchedulerMonitor implementation.
Parameters
Return values
Get the timestamp for the earliest event an SEG module should send.
Parameters
Return values
Send a job pending event to the JobSchedulerMonitor implementation.
Parameters
Return values
Generated automatically by Doxygen for globus_scheduler_event_generator from the source code.