Loading examples/c/ADM_remove_job.c 0 → 100644 +35 −0 Original line number Diff line number Diff line #include <stdlib.h> #include <stdio.h> #include <admire.h> int main(int argc, char* argv[]) { if(argc != 3) { fprintf(stderr, "ERROR: no location provided\n"); fprintf(stderr, "Usage: ADM_remove_job <REMOTE_IP> <JOB_REQS>\n"); exit(EXIT_FAILURE); } int exit_status = EXIT_SUCCESS; ADM_server_t server = ADM_server_create("tcp", argv[1]); ADM_job_t job; ADM_return_t ret = ADM_remove_job(server, job); if(ret != ADM_SUCCESS) { fprintf(stdout, "ADM_remove_job() remote procedure not completed " "successfully\n"); exit_status = EXIT_FAILURE; goto cleanup; } fprintf(stdout, "ADM_remove_job() remote procedure completed " "successfully\n"); cleanup: ADM_server_destroy(server); exit(exit_status); } No newline at end of file examples/c/CMakeLists.txt +4 −2 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ list(APPEND examples_c ADM_register_job ADM_cancel_transfer ADM_connect_data_operation ADM_define_data_operation ADM_deploy_adhoc_storage ADM_finalize_data_operation ADM_get_pending_transfers ADM_get_qos_constraints ADM_get_statistics ADM_get_transfer_priority #ADM_link_transfer_to_data_operation ADM_register_adhoc_storage ADM_remove_adhoc_storage) ADM_register_adhoc_storage ADM_remove_adhoc_storage ADM_remove_job) # ADM_in_situ_ops ADM_in_transit_ops not implemented Loading Loading @@ -65,3 +65,5 @@ add_test(ADM_register_adhoc_storage_test ADM_register_adhoc_storage ofi+tcp://12 #ADM_register_pfs_storage (missing, not working in cpp. Will be created when they work in cpp) add_test(ADM_remove_adhoc_storage_test ADM_remove_adhoc_storage ofi+tcp://127.0.0.1:52000 42) add_test(ADM_remove_job_test ADM_remove_job ofi+tcp://127.0.0.1:52000 42) No newline at end of file Loading
examples/c/ADM_remove_job.c 0 → 100644 +35 −0 Original line number Diff line number Diff line #include <stdlib.h> #include <stdio.h> #include <admire.h> int main(int argc, char* argv[]) { if(argc != 3) { fprintf(stderr, "ERROR: no location provided\n"); fprintf(stderr, "Usage: ADM_remove_job <REMOTE_IP> <JOB_REQS>\n"); exit(EXIT_FAILURE); } int exit_status = EXIT_SUCCESS; ADM_server_t server = ADM_server_create("tcp", argv[1]); ADM_job_t job; ADM_return_t ret = ADM_remove_job(server, job); if(ret != ADM_SUCCESS) { fprintf(stdout, "ADM_remove_job() remote procedure not completed " "successfully\n"); exit_status = EXIT_FAILURE; goto cleanup; } fprintf(stdout, "ADM_remove_job() remote procedure completed " "successfully\n"); cleanup: ADM_server_destroy(server); exit(exit_status); } No newline at end of file
examples/c/CMakeLists.txt +4 −2 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ list(APPEND examples_c ADM_register_job ADM_cancel_transfer ADM_connect_data_operation ADM_define_data_operation ADM_deploy_adhoc_storage ADM_finalize_data_operation ADM_get_pending_transfers ADM_get_qos_constraints ADM_get_statistics ADM_get_transfer_priority #ADM_link_transfer_to_data_operation ADM_register_adhoc_storage ADM_remove_adhoc_storage) ADM_register_adhoc_storage ADM_remove_adhoc_storage ADM_remove_job) # ADM_in_situ_ops ADM_in_transit_ops not implemented Loading Loading @@ -65,3 +65,5 @@ add_test(ADM_register_adhoc_storage_test ADM_register_adhoc_storage ofi+tcp://12 #ADM_register_pfs_storage (missing, not working in cpp. Will be created when they work in cpp) add_test(ADM_remove_adhoc_storage_test ADM_remove_adhoc_storage ofi+tcp://127.0.0.1:52000 42) add_test(ADM_remove_job_test ADM_remove_job ofi+tcp://127.0.0.1:52000 42) No newline at end of file