File: japiP.h

package info (click to toggle)
gridengine 6.2u5-1squeeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 57,132 kB
  • ctags: 56,142
  • sloc: ansic: 438,030; java: 66,252; sh: 36,376; jsp: 7,757; xml: 5,850; makefile: 5,514; csh: 4,571; cpp: 2,848; perl: 2,401; tcl: 692; lisp: 669; yacc: 668; ruby: 642; lex: 344
file content (62 lines) | stat: -rw-r--r-- 1,494 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef __JAPIP_H

#include "cull.h"

struct drmaa_job_template_s {
   lList *strings;        /* VA_Type  */
   lList *string_vectors; /* NSV_Type */
};

/* 
 * This iterator is returned by 
 *   drmaa_run_bulk_jobs()             - vector of vector of job ids
 */
struct drmaa_bulk_jobid_iterator_s {
   u_long32 jobid;
   int start;
   int end;
   int incr;
   /* next position of iterator */
   int next_pos;
};

/* 
 * This iterator is returned by 
 *   japi_get_vector_attribute()       - vector of attribute values
 *   japi_get_attribute_names()        - vector of attribute name 
 *   japi_get_vector_attribute_names() - vector of attribute name 
 *   japi_wait()                       - vector of rusage strings 
 */
struct drmaa_string_array_iterator_s {
   lList *strings;  /* STR_Type  */
   /* next position of iterator */
   lListElem *next_pos;
};

/*
 * Transparent use of two different iterators 
 */
enum { JAPI_ITERATOR_BULK_JOBS, JAPI_ITERATOR_STRINGS };
struct drmaa_attr_names_s {
   int iterator_type; 
   union {
      struct drmaa_bulk_jobid_iterator_s ji;
      struct drmaa_string_array_iterator_s si;
   } it;
};
struct drmaa_attr_values_s {
   int iterator_type; 
   union {
      struct drmaa_bulk_jobid_iterator_s ji;
      struct drmaa_string_array_iterator_s si;
   } it;
};
struct drmaa_job_ids_s {
   int iterator_type; 
   union {
      struct drmaa_bulk_jobid_iterator_s ji;
      struct drmaa_string_array_iterator_s si;
   } it;
};

#endif /* __JAPIP_H */