source: trunk/pbs_drmaa/session.h @ 29

Revision 29, 2.1 KB checked in by mmamonski, 10 years ago (diff)

log reder reStructured

  • Property svn:keywords set to Id
Line 
1/* $Id$ */
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 (*do_drm_keeps_completed_jobs)( pbsdrmaa_session_t *self );
38
39        void (*super_destroy)( fsd_drmaa_session_t *self );
40
41        void (*super_apply_configuration)(fsd_drmaa_session_t *self);
42
43        /*
44         * Pointer to standard wait_thread drmaa_utils function
45         */
46        void* (*super_wait_thread)( fsd_drmaa_session_t *self );
47
48        /*
49         * PBS connection (or -1 if not connected).
50         * A descriptor of socket conencted to PBS server.
51         */
52        int pbs_conn;
53
54        /*
55         * PBS folder - used by wait_thread which reads log files
56         */
57        char * pbs_home;
58
59        /*
60         * Wait thread reading logs active
61         */
62        bool wait_thread_log;
63
64        /*
65         * List of attributes which will be used to query jobs.
66         */
67        struct attrl *status_attrl;
68
69        /*
70         * Log file initial size - used by wait_thread which reads log files TODO: check if it can be safely moved to log_reader
71         */
72        off_t log_file_initial_size;
73
74        /*
75         * Time we checked log file initial size - used by wait_thread which reads log files TODO: check if it can be safely moved to log_reader
76         */
77        time_t log_file_initial_time;
78};
79
80#endif /* __PBS_DRMAA__SESSION_H */
81
Note: See TracBrowser for help on using the repository browser.