[20] | 1 | /* $Id$ */ |
---|
[1] | 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__JOB_H |
---|
| 20 | #define __LL_DRMAA__JOB_H |
---|
| 21 | |
---|
| 22 | #ifdef HAVE_CONFIG_H |
---|
| 23 | # include <config.h> |
---|
| 24 | #endif |
---|
| 25 | |
---|
| 26 | #include <drmaa_utils/job.h> |
---|
| 27 | #include <drmaa_utils/environ.h> |
---|
| 28 | |
---|
| 29 | #include <llapi.h> |
---|
| 30 | |
---|
| 31 | typedef struct lldrmaa_job_s lldrmaa_job_t; |
---|
| 32 | |
---|
| 33 | fsd_job_t * |
---|
| 34 | lldrmaa_job_new(char *job_id ); |
---|
| 35 | |
---|
| 36 | struct lldrmaa_job_s { |
---|
| 37 | fsd_job_t super; |
---|
| 38 | |
---|
| 39 | void (*read_job_info_mon)( fsd_job_t *self, const char * state , unsigned status); |
---|
| 40 | void (*read_job_info)( fsd_job_t *self, enum StepState step_state, enum HoldType hold_type ); |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | char* lldrmaa_job_create_req(fsd_drmaa_session_t *session, const fsd_template_t *jt, fsd_environ_t **envp, unsigned bulk, int start, int incr); |
---|
| 44 | char* lldrmaa_job_create_command_file( fsd_drmaa_session_t *session, const fsd_template_t *jt, fsd_environ_t **envp, fsd_expand_drmaa_ph_t *expand, unsigned n_jobs, int start, int incr); |
---|
| 45 | |
---|
| 46 | #endif /* __LL_DRMAA__JOB_H */ |
---|
| 47 | |
---|