drmaa2_j_get_session_name
- drmaa2_j_get_session_name, Returns the job session the job was submitted in.
#include "drmaa2.h"
drmaa2_string drmaa2_j_get_session_name(const drmaa2_j job);
Allocates a drmaa2_string
which contains the DRMA2 job session the job was submitted in. It might be empty for jobs not submitted with DRMAA2 but accessible with the monitoring interface.
Returns a newly allocated job session name as drmaa2_string
which must be freed from the caller. In case of an error NULL is returned and the error id and error message is set in the context of the calling thread. Can be NULL if the job was not submitted with DRMAA2.
drmaa2_geterror(3), drmaa2_geterror_text(3), drmaa2_j_suspend(3), drmaa2_j_resume(3), drmaa2_j_hold(3), drmaa2_j_release(3), drmaa2_j_terminate(3), drmaa2_j_get_id(3), drmaa2_j_get_session_name(3), drmaa2_j_get_jt(3), drmaa2_j_get_state(3), drmaa2_j_get_info(3), drmaa2_j_wait_started(3), drmaa2_j_wait_terminated(3), drmaa2_jsession_run_job(3), drmaa2_j_free(3)
Copyright Univa Corporation 2013