OpenMPI  0.1.1
plm_xgrid_client.h
1 /* -*- ObjC -*-
2  *
3  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
4  * University Research and Technology
5  * Corporation. All rights reserved.
6  * Copyright (c) 2004-2005 The University of Tennessee and The University
7  * of Tennessee Research Foundation. All rights
8  * reserved.
9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
10  * University of Stuttgart. All rights reserved.
11  * Copyright (c) 2004-2005 The Regents of the University of California.
12  * All rights reserved.
13  * $COPYRIGHT$
14  *
15  * Additional copyrights may follow
16  *
17  * $HEADER$
18  *
19  */
20 
21 #import <Foundation/Foundation.h>
22 #import <XgridFoundation/XgridFoundation.h>
23 #import <Foundation/NSString.h>
24 
25 #import "opal/threads/condition.h"
26 
27 @interface PlmXGridClient : NSObject
28 {
29  NSString *orted;
30  NSString *controller_hostname;
31  NSString *controller_password;
32 
33  /* state of the world... */
34  opal_condition_t state_cond;
35  opal_mutex_t state_mutex;
36 
37  XGConnection *connection;
38  XGController *controller;
39  XGGrid *grid;
40  int cleanup;
41 
42  NSMutableDictionary *active_xgrid_jobs;
43 }
44 
45 /* init / finalize */
46 -(id) init;
47 -(id) initWithControllerHostname: (char*) hostnam
48  AndControllerPassword: (char*) password
49  AndOrted: (char*) ortedname
50  AndCleanup: (int) val;
51 -(void) dealloc;
52 
53 /* accessors */
54 -(NSString*) getOrted;
55 
56 -(void) setOrtedAsCString: (char*) name;
57 -(void) setControllerPasswordAsCString: (char*) name;
58 -(void) setControllerHostnameAsCString: (char*) password;
59 -(void) setCleanUp: (int) val;
60 
61 -(NSString*)servicePrincipal;
62 
63 /* interface for launch */
64 -(int) connect;
65 -(int) launchOrteds:(orte_job_t*) jdata;
66 -(int) terminateOrteds;
67 
68 /* delegate for changes */
69 -(void) connectionDidOpen:(XGConnection*) connection;
70 -(void) connectionDidNotOpen:(XGConnection*)connection withError:(NSError*) error;
71 -(void) connectionDidClose:(XGConnection *) connection;
72 
73 /* Helper function */
74 -(NSMutableArray*) getArgumentsForOrtedLaunch;
75 
76 @end
Definition: plm_xgrid_client.h:27
Definition: condition.h:49
Definition: mutex_unix.h:53
Definition: orte_globals.h:316