IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2008, 10:26:51 PM (18 years ago)
Author:
eugene
Message:

updates from HEAD

File:
1 edited

Legend:

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

    r17469 r18424  
    88/** job status values **/
    99typedef enum {
     10  PCONTROL_JOB_ALLJOBS,
    1011  PCONTROL_JOB_PENDING,
    1112  PCONTROL_JOB_BUSY, 
     13  PCONTROL_JOB_RESP, 
    1214  PCONTROL_JOB_HUNG, 
    1315  PCONTROL_JOB_DONE, 
     
    2628/** host status values **/
    2729typedef enum {
     30  PCONTROL_HOST_ALLHOSTS,
    2831  PCONTROL_HOST_IDLE,
    2932  PCONTROL_HOST_BUSY, 
     33  PCONTROL_HOST_RESP,
    3034  PCONTROL_HOST_DOWN,
    3135  PCONTROL_HOST_DONE,
    3236  PCONTROL_HOST_OFF,
    3337} HostStat;
     38
     39/** host response options **/
     40typedef enum {
     41  PCONTROL_RESP_NONE,
     42  PCONTROL_RESP_START_JOB,
     43  PCONTROL_RESP_CHECK_BUSY_JOB, 
     44  PCONTROL_RESP_CHECK_DONE_HOST, 
     45  PCONTROL_RESP_CHECK_HOST,
     46  PCONTROL_RESP_KILL_JOB,
     47  PCONTROL_RESP_STOP_HOST,
     48} HostResp;
    3449
    3550typedef enum {
     
    97112  Ptime       nexttry;
    98113  IDtype      HostID;
     114  IOBuffer    comms_buffer;
     115  char       *response;
     116  HostResp    response_state;
    99117  struct Job *job;
    100118} Host;
     
    156174
    157175/*** own files ***/
     176int StartJob (Job *job, Host *host);
     177int StartJobResponse (Host *host);
     178
    158179int CheckHost (Host *host);
     180int CheckHostResponse (Host *host);
     181
     182int CheckDoneHost (Host *host);
     183int CheckDoneHostResponse (Host *host);
     184
     185int CheckBusyJob (Job *job, Host *host);
     186int CheckBusyJobResponse (Host *host);
     187
     188int KillJob (Job *job, Host *host);
     189int KillJobResponse (Host *host);
     190
    159191int StartHost (Host *host);
    160192int CheckIdleHost (Host *host);
    161 int CheckDoneHost (Host *host);
    162 int CheckBusyJob (Job *job, Host *host);
    163193int CheckDoneJob (Job *job, Host *host);
    164 int KillJob (Job *job, Host *host);
    165 int StartJob (Job *job, Host *host);
    166 int ResetJob (Job *job);
    167194int GetJobOutput (char *command, Host *host, IOBuffer *buffer, int Nbytes);
    168 int PclientCommand (Host *host, char *command, char *response, IOBuffer *buffer);
    169195int rconnect (char *command, char *hostname, char *shell, int *stdio);
     196
     197int PclientCommand (Host *host, char *command, char *response, HostResp response_state);
     198int PclientResponse (Host *host, char *response, IOBuffer *buffer);
     199
     200int CheckRespHosts (float MaxDelay);
     201int CheckRespHost (Host *host);
    170202
    171203/*** misc files ***/
     
    178210IDtype NextHostID ();
    179211void PrintID (gpDest dest, IDtype ID);
     212IDtype GetID (char *IDword);
    180213
    181214/*** CheckPoint.c ***/
     
    203236int    DownHosts ();
    204237int    StopHost (Host *host);
     238int    StopHostResponse (Host *host);
    205239int    HarvestHost (int pid);
    206240
Note: See TracChangeset for help on using the changeset viewer.