strudelapp.ts 853 Bytes
Newer Older
1
2
3
4
5
6
export class AppAction {
  name: string;
  paramscmd: string;
  client: {cmd: string[], redir: string};
  states: string[]; // list of stats such as 'RUNNING' in which the action is valid. null||undefined if its always valid
}
Chris Hines's avatar
Chris Hines committed
7
export class Strudelapp {
8
  url: string; // A url used to retrieve extra config options. May be null
9
  name: string;
10
11
  startscript: string; // batch script ... should NOT include resource directives
                       // resource directives like #SBATCH belong in the batchinterface
12
  actions: AppAction[];
13
14
15
  localbind: boolean; // does the application bind to a port on the localhost
                      // interface or on all interfaces. This behaviour determins
                      /// how we create tunnels
Chris Hines's avatar
Chris Hines committed
16
  applist: Strudelapp[] = null;
Chris Hines's avatar
Chris Hines committed
17
}
Chris Hines's avatar
Chris Hines committed
18
19
20
21
22

export class StrudelappInstance {
  port: number;
  password: string;
}