IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 28, 2010, 4:43:38 PM (16 years ago)
Author:
eugene
Message:

updates from the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/Ohana/src/opihi/include/pcontrol.h

    r25872 r26715  
    9898  int          requested;
    9999} JobOutput;
     100
     101/* A machine has a unique name and may have multiple Hosts (each of which can run a single job)
     102   We use this to track aspects of the analysis per machine, to eg, limit the number of jobs
     103   desired on a single machine */
     104typedef struct {
     105  char *name;
     106  int Nhosts;                 // how many hosts are selected for this machine (whatever state)
     107  int NjobsRealhost;
     108  int NjobsWanthost;
     109} Machine;
    100110
    101111/* data to define a job */
     
    140150} Host;
    141151
     152/* the Jobs and Hosts are managed in a set of Stacks which define their state */
    142153typedef struct {
    143154  void **object;
     
    280291void   LinkJobAndHost (Job *job, Host *host);
    281292
     293/*** MachineOps.c ***/
     294void InitMachines ();
     295void FreeMachines ();
     296Machine *FindMachineByName (char *name);
     297Machine *AddMachine (char *name);
     298int DelMachine (char *name);
     299int AddMachineHost (Host *host);
     300int DelMachineHost (Host *host);
     301int AddMachineJob (Host *host, Job *job);
     302int DelMachineJob (Host *host, Job *job);
     303int PrintMachines ();
     304int CheckMachineJobs (Host *host, Job *job);
     305int GetMaxUnwantedHostJobs (void);
     306void SetMaxUnwantedHostJobs (int value);
     307
     308float GetMaxConnectTime (void);
     309void SetMaxConnectTime (float value);
     310float GetMaxWantHostWait (void);
     311void SetMaxWantHostWait (float value);
     312
    282313void pcontrol_exit (int n);
    283314
Note: See TracChangeset for help on using the changeset viewer.