[1] | 1 | /* $Id: util.h 220 2010-05-24 17:42:49Z mmatloka $ */ |
---|
| 2 | /* |
---|
| 3 | * PSNC DRMAA for LL |
---|
| 4 | * Copyright (C) 2010 Poznan Supercomputing and Networking Center |
---|
| 5 | * |
---|
| 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
---|
| 7 | * you may not use this file except in compliance with the License. |
---|
| 8 | * You may obtain a copy of the License at |
---|
| 9 | * |
---|
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 11 | * |
---|
| 12 | * Unless required by applicable law or agreed to in writing, software |
---|
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 15 | * See the License for the specific language governing permissions and |
---|
| 16 | * limitations under the License. |
---|
| 17 | */ |
---|
| 18 | |
---|
| 19 | #ifndef __LL_DRMAA__UTIL_H |
---|
| 20 | #define __LL_DRMAA__UTIL_H |
---|
| 21 | |
---|
| 22 | #ifdef HAVE_CONFIG_H |
---|
| 23 | # include <config.h> |
---|
| 24 | #endif |
---|
| 25 | |
---|
| 26 | #include <llapi.h> |
---|
| 27 | |
---|
| 28 | #define LL_CKPT_UNCLEAR 1 |
---|
| 29 | #define LL_CKPT_ERROR -1 |
---|
| 30 | #define LL_CKPT_JOB_ID_ERR -2 |
---|
| 31 | #define LL_CKPT_MALLOC_ERR -3 |
---|
| 32 | #define LL_CKPT_SOCKET_ERR -4 |
---|
| 33 | #define LL_CKPT_CONF_ERR -6 |
---|
| 34 | |
---|
| 35 | #define LL_GET_DATA_NOT_VALID_LLAPI_SPECIFICATION_ERR -2 |
---|
| 36 | |
---|
| 37 | #define LL_GET_OBJS_QUERY_ELEMENT_NOT_VALID_ERR -1 |
---|
| 38 | #define LL_GET_OBJS_QUERY_DEAMON_NOT_VALID_ERR -2 |
---|
| 39 | #define LL_GET_OBJS_HOSTNAME_ERR -3 |
---|
| 40 | #define LL_GET_OBJS_INVALID_REQUEST_ERR -4 |
---|
| 41 | #define LL_GET_OBJS_SYS_ERR -5 |
---|
| 42 | #define LL_GET_OBJS_NO_OBJECTS_ERR -6 |
---|
| 43 | #define LL_GET_OBJS_CONF_ERR -7 |
---|
| 44 | #define LL_GET_OBJS_DEAMON_CONNECTION_ERR -9 |
---|
| 45 | #define LL_GET_OBJS_HISTORY_F_PROCESS_ERR -10 |
---|
| 46 | #define LL_GET_OBJS_NO_HISTORY_FILE -11 |
---|
| 47 | #define LL_GET_OBJS_HISTORY_F_NO_ACCES_ERR -12 |
---|
| 48 | |
---|
| 49 | #define LL_SET_REQUEST_QUERY_FLAG_NOT_VALID_ERR -2 |
---|
| 50 | #define LL_SET_REQUEST_OBJ_FILTER_NOT_VALID_ERR -3 |
---|
| 51 | #define LL_SET_REQUEST_DATA_FILTER_NOT_VALID_ERR -4 |
---|
| 52 | #define LL_SET_REQUEST_SYS_ERR -5 |
---|
| 53 | |
---|
| 54 | #define LL_PREEMPT_JOBS_VERSION_ERR -3 |
---|
| 55 | #define LL_PREEMPT_JOBS_SYS_ERR -5 |
---|
| 56 | |
---|
| 57 | #define LL_SUBMIT_ERROR -1 |
---|
| 58 | |
---|
| 59 | const char * lldrmaa_err_ckpt(int _llerrno); |
---|
| 60 | const char * lldrmaa_err_control(int _llerrno); |
---|
| 61 | const char * lldrmaa_err_get_data(int _llerrno); |
---|
| 62 | const char * lldrmaa_err_get_objs(int _llerrno); |
---|
| 63 | const char * lldrmaa_err_preempt_jobs(int _llerrno); |
---|
| 64 | const char * lldrmaa_err_set_request(int _llerrno); |
---|
| 65 | const char * lldrmaa_err_submit(int _llerrno); |
---|
| 66 | const char * lldrmaa_err_terminate_job(int _llerrno); |
---|
| 67 | |
---|
| 68 | int lldrmaa_map_ckpt(int _llerrno); |
---|
| 69 | int lldrmaa_map_control( int _llerrno ); |
---|
| 70 | int lldrmaa_map_get_data(int _llerrno); |
---|
| 71 | int lldrmaa_map_get_objs(int _llerrno); |
---|
| 72 | int lldrmaa_map_preempt_jobs(int _llerrno); |
---|
| 73 | int lldrmaa_map_set_request(int _llerrno); |
---|
| 74 | int lldrmaa_map_submit(int _llerrno); |
---|
| 75 | int lldrmaa_map_terminate_job(int _llerrno); |
---|
| 76 | |
---|
| 77 | #endif /* __LL_DRMAA__UTIL_H */ |
---|