26 #ifndef GLOBUS_GRAM_CLIENT_H
27 #define GLOBUS_GRAM_CLIENT_H
31 #include "globus_io.h"
38 #ifndef GLOBUS_GLOBAL_DOCUMENT_SET
97 void * user_callback_arg,
160 void * user_callback_arg,
161 const char * job_contact,
185 #define GLOBUS_GRAM_CLIENT_NO_ATTR (globus_gram_client_attr_t) NULL
222 void * user_callback_arg,
224 const char * job_contact,
241 void * user_callback_arg,
242 char ** callback_contact);
249 void * user_callback_arg,
250 char ** callback_contact);
254 const char * resource_manager_contact,
255 const char * description,
257 const char * callback_contact,
258 globus_gram_client_attr_t attr,
261 void * register_callback_arg);
265 const char * resource_manager_contact,
266 const char * description,
268 const char * callback_contact,
269 char ** job_contact);
273 const char * resource_manager_contact,
274 const char * description,
276 const char * callback_contact,
277 globus_gram_client_attr_t attr,
280 void * callback_arg);
284 const char * resource_manager_contact,
285 const char * description,
287 const char * callback_contact,
293 const char * job_contact,
294 globus_gram_client_attr_t attr,
297 void * register_callback_arg);
301 const char * job_contact);
305 const char * job_contact,
306 globus_gram_client_attr_t attr,
309 void * register_callback_arg);
313 const char * job_contact,
314 globus_gram_client_attr_t attr,
317 void * callback_arg);
323 gss_cred_id_t creds);
329 globus_gram_client_attr_t attr,
332 void * register_callback_arg);
336 const char * job_contact,
342 const char * job_contact,
347 const char * job_contact,
349 const char * signal_arg,
350 globus_gram_client_attr_t attr,
353 void * register_callback_arg);
357 const char * job_contact,
359 const char * signal_arg,
366 const char * job_contact,
368 const char * callback_contact,
369 globus_gram_client_attr_t attr,
372 void * register_callback_arg);
376 const char * job_contact,
378 const char * callback_contact,
384 const char * job_contact,
385 const char * callback_contact,
386 globus_gram_client_attr_t attr,
389 void * register_callback_arg);
393 const char * job_contact,
394 const char * callback_contact,
400 char * callback_contact);
418 const char * resource_manager_contact);
422 const char * resource_manager_contact,
423 globus_gram_client_attr_t attr,
426 void * register_callback_arg);
430 const char * resource_manager_contact,
431 globus_hashtable_t * extensions);
435 const char * resource_manager_contact,
436 globus_gram_client_attr_t attr,
439 void * callback_arg);
451 globus_gram_client_attr_t * attr);
454 globus_gram_client_attr_t * attr);
458 globus_gram_client_attr_t attr,
459 gss_cred_id_t credential);
463 globus_gram_client_attr_t attr,
464 gss_cred_id_t * credential);
468 globus_gram_client_attr_t attr,
469 globus_io_secure_delegation_mode_t mode);
473 globus_gram_client_attr_t attr,
474 globus_io_secure_delegation_mode_t *mode);
480 #define GLOBUS_GRAM_CLIENT_MODULE (&globus_gram_client_module)
int globus_gram_client_attr_set_delegation_mode(globus_gram_client_attr_t attr, globus_io_secure_delegation_mode_t mode)
Set a GRAM client attribute's delegation mode.
Definition: globus_gram_client_attr.c:279
int globus_gram_client_register_ping(const char *resource_manager_contact, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Send a ping request to a GRAM service.
Definition: globus_gram_client.c:796
const char * globus_gram_client_error_string(int error_code)
Get a description of a a GRAM error code.
Definition: globus_gram_client.c:1556
struct globus_gram_client_job_info_s globus_gram_client_job_info_t
Extensible job information structure.
void(* globus_gram_client_info_callback_func_t)(void *user_callback_arg, const char *job_contact, globus_gram_client_job_info_t *job_info)
Signature for GRAM state notification callback functions with extension support.
Definition: globus_gram_client.h:159
int globus_gram_client_register_job_cancel(const char *job_contact, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Cancel a GRAM job.
Definition: globus_gram_client.c:1772
int globus_gram_client_ping(const char *resource_manager_contact)
Send a ping request to a GRAM service.
Definition: globus_gram_client.c:872
int globus_gram_client_get_jobmanager_version(const char *resource_manager_contact, globus_hashtable_t *extensions)
Get version information from a job manager.
Definition: globus_gram_client.c:951
int globus_gram_client_job_status_with_info(const char *job_contact, globus_gram_client_job_info_t *info)
Send a status query to a GRAM job.
Definition: globus_gram_client.c:2444
int protocol_error_code
Definition: globus_gram_client.h:130
int globus_gram_client_register_job_status(const char *job_contact, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Send a status query to a GRAM job.
Definition: globus_gram_client.c:2256
globus_hashtable_t extensions
Definition: globus_gram_client.h:118
int job_state
Definition: globus_gram_client.h:126
globus_gram_protocol_error_t
Definition: globus_gram_protocol_constants.h:25
void(* globus_gram_client_callback_func_t)(void *user_callback_arg, char *job_contact, int state, int errorcode)
Signature for GRAM state notification callback functions.
Definition: globus_gram_client.h:96
int globus_gram_client_job_refresh_credentials(char *job_contact, gss_cred_id_t creds)
Delegate a new credential to a job.
Definition: globus_gram_client.c:2806
int globus_gram_client_register_job_status_with_info(const char *job_contact, globus_gram_client_attr_t attr, globus_gram_client_info_callback_func_t info_callback, void *callback_arg)
Send a status query to a GRAM job.
Definition: globus_gram_client.c:2353
globus_gram_protocol_job_signal_t
Definition: globus_gram_protocol_constants.h:212
int globus_gram_client_attr_get_delegation_mode(globus_gram_client_attr_t attr, globus_io_secure_delegation_mode_t *mode)
Get a GRAM client attribute's security credential.
Definition: globus_gram_client_attr.c:338
int globus_gram_client_job_request_with_info(const char *resource_manager_contact, const char *description, int job_state_mask, const char *callback_contact, char **job_contact, globus_gram_client_job_info_t *info)
Send a job request to a GRAM service and parse extensions in the response.
Definition: globus_gram_client.c:1480
int globus_gram_client_register_job_signal(const char *job_contact, globus_gram_protocol_job_signal_t signal, const char *signal_arg, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Send a signal a GRAM job.
Definition: globus_gram_client.c:2021
char * job_contact
Definition: globus_gram_client.h:122
int globus_gram_client_job_cancel(const char *job_contact)
Cancel a GRAM job.
Definition: globus_gram_client.c:1677
int globus_gram_client_attr_init(globus_gram_client_attr_t *attr)
Initialize a GRAM client attribute.
Definition: globus_gram_client_attr.c:55
int globus_gram_client_info_callback_allow(globus_gram_client_info_callback_func_t callback_func, void *user_callback_arg, char **callback_contact)
Begin listening for job state change callbacks.
Definition: globus_gram_client.c:3348
int globus_gram_client_job_status(const char *job_contact, int *job_status, int *failure_code)
Send a status query to a GRAM job.
Definition: globus_gram_client.c:2144
int globus_gram_client_callback_disallow(char *callback_contact)
Stop listening for job state change callbacks.
Definition: globus_gram_client.c:3459
int globus_gram_client_attr_destroy(globus_gram_client_attr_t *attr)
Destroy a GRAM client attribute.
Definition: globus_gram_client_attr.c:104
int globus_gram_client_register_job_request(const char *resource_manager_contact, const char *description, int job_state_mask, const char *callback_contact, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Send a job request to a GRAM service.
Definition: globus_gram_client.c:1161
int globus_gram_client_callback_allow(globus_gram_client_callback_func_t callback_func, void *user_callback_arg, char **callback_contact)
Begin listening for job state change callbacks.
Definition: globus_gram_client.c:3227
int globus_gram_client_set_credentials(gss_cred_id_t new_credentials)
Set the default GRAM credential.
Definition: globus_gram_client.c:736
void(* globus_gram_client_nonblocking_func_t)(void *user_callback_arg, globus_gram_protocol_error_t operation_failure_code, const char *job_contact, globus_gram_protocol_job_state_t job_state, globus_gram_protocol_error_t job_failure_code)
Signature for callbacks signalling completion of non-blocking GRAM requests.
Definition: globus_gram_client.h:221
void * globus_gram_client_attr_t
GRAM client operation attribute.
Definition: globus_gram_client.h:173
void globus_gram_client_job_info_destroy(globus_gram_client_job_info_t *info)
Free memory associated with a globus_gram_client_job_info_t structure.
Definition: globus_gram_client.c:4338
Headers common to all of Globus.
Extensible job information structure.
Definition: globus_gram_client.h:113
int globus_gram_client_job_request(const char *resource_manager_contact, const char *description, int job_state_mask, const char *callback_contact, char **job_contact)
Send a job request to a GRAM service.
Definition: globus_gram_client.c:1259
globus_gram_protocol_job_state_t
Definition: globus_gram_protocol_constants.h:270
int globus_gram_client_job_signal(const char *job_contact, globus_gram_protocol_job_signal_t signal, const char *signal_arg, int *job_status, int *failure_code)
Send a signal a GRAM job.
Definition: globus_gram_client.c:1865
int globus_gram_client_register_job_request_with_info(const char *resource_manager_contact, const char *description, int job_state_mask, const char *callback_contact, globus_gram_client_attr_t attr, globus_gram_client_info_callback_func_t callback, void *callback_arg)
Send a job request to a GRAM service with extensions-aware callback.
Definition: globus_gram_client.c:1378
int globus_gram_client_job_callback_unregister(const char *job_contact, const char *callback_contact, int *job_status, int *failure_code)
Unregister a callback contact to stop job state change notifications.
Definition: globus_gram_client.c:2680
int globus_gram_client_register_job_callback_registration(const char *job_contact, int job_state_mask, const char *callback_contact, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Register a new callback contact to be notified for job state changes.
Definition: globus_gram_client.c:2998
void globus_gram_client_debug(void)
Enable GRAM debugging.
Definition: globus_gram_client.c:346
int globus_gram_client_register_job_refresh_credentials(char *job_contact, gss_cred_id_t creds, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Delegate a new credential to a job.
Definition: globus_gram_client.c:2897
int globus_gram_client_register_job_callback_unregistration(const char *job_contact, const char *callback_contact, globus_gram_client_attr_t attr, globus_gram_client_nonblocking_func_t register_callback, void *register_callback_arg)
Unregister a callback contact to stop job state change notifications.
Definition: globus_gram_client.c:3123
int globus_gram_client_attr_get_credential(globus_gram_client_attr_t attr, gss_cred_id_t *credential)
Get a GRAM client attribute's security credential.
Definition: globus_gram_client_attr.c:217
int globus_gram_client_version(void)
Return GRAM protocol version.
Definition: globus_gram_client.c:707
int globus_gram_client_attr_set_credential(globus_gram_client_attr_t attr, gss_cred_id_t credential)
Set a GRAM client attribute's security credential.
Definition: globus_gram_client_attr.c:164
int globus_gram_client_job_callback_register(const char *job_contact, int job_state_mask, const char *callback_contact, int *job_status, int *failure_code)
Register a new callback contact to be notified for job state changes.
Definition: globus_gram_client.c:2545
int globus_gram_client_job_contact_free(char *job_contact)
Free a job contact string.
Definition: globus_gram_client.c:3511
int globus_gram_client_register_get_jobmanager_version(const char *resource_manager_contact, globus_gram_client_attr_t attr, globus_gram_client_info_callback_func_t info_callback, void *callback_arg)
Get version information from a job manager without blocking.
Definition: globus_gram_client.c:1054
Module Descriptor.
Definition: globus_module.h:71