source: trunk/pbs_drmaa/session.h @ 7

Revision 7, 2.1 KB checked in by mmamonski, 14 years ago (diff)

lost updates...

Line 
1/* $Id: session.h 323 2010-09-21 21:31:29Z mmatloka $ */
2/*
3 *  FedStage DRMAA for PBS Pro
4 *  Copyright (C) 2006-2009  FedStage Systems
5 *
6 *  This program is free software: you can redistribute it and/or modify
7 *  it under the terms of the GNU General Public License as published by
8 *  the Free Software Foundation, either version 3 of the License, or
9 *  (at your option) any later version.
10 *
11 *  This program is distributed in the hope that it will be useful,
12 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 *  GNU General Public License for more details.
15 *
16 *  You should have received a copy of the GNU General Public License
17 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __PBS_DRMAA__SESSION_H
21#define __PBS_DRMAA__SESSION_H
22
23#ifdef HAVE_CONFIG_H
24#       include <config.h>
25#endif
26
27#include <drmaa_utils/session.h>
28
29typedef struct pbsdrmaa_session_s pbsdrmaa_session_t;
30
31fsd_drmaa_session_t *
32pbsdrmaa_session_new( const char *contact );
33
34struct pbsdrmaa_session_s {
35        fsd_drmaa_session_t super;
36
37        bool (*
38        do_drm_keeps_completed_jobs)( pbsdrmaa_session_t *self );
39
40        void (*
41        super_destroy)( fsd_drmaa_session_t *self );
42
43        void (*
44        super_apply_configuration)(fsd_drmaa_session_t *self);
45
46        /*
47         * Pointer to standard wait_thread drmaa_utils function
48         */
49        void* (*
50        super_wait_thread)( fsd_drmaa_session_t *self );
51
52        /*
53         * PBS connection (or -1 if not connected).
54         * A descriptor of socket conencted to PBS server.
55         */
56        int pbs_conn;
57
58        /*
59         * PBS folder - used by wait_thread which reads log files
60         */
61        char * pbs_home;
62
63        /*
64         * Wait thread reading logs active
65         */
66        bool wait_thread_log;
67
68        /*
69         * List of attributes which will be used to query jobs.
70         */
71        struct attrl *status_attrl;
72
73        /*
74         * Log file initial size - used by wait_thread which reads log files
75         */
76        off_t log_file_initial_size;
77
78        /*
79         * Time we checked log file initial size - used by wait_thread which reads log files
80         */
81        time_t log_file_initial_time;
82};
83
84#endif /* __PBS_DRMAA__SESSION_H */
85
Note: See TracBrowser for help on using the repository browser.