Changeset 17475 for trunk/Ohana/src/opihi/include/pcontrol.h
- Timestamp:
- Apr 23, 2008, 11:35:39 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/include/pcontrol.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/pcontrol.h
r17419 r17475 28 28 PCONTROL_HOST_IDLE, 29 29 PCONTROL_HOST_BUSY, 30 PCONTROL_HOST_RESP, 30 31 PCONTROL_HOST_DOWN, 31 32 PCONTROL_HOST_DONE, 32 33 PCONTROL_HOST_OFF, 33 34 } HostStat; 35 36 /** host response options **/ 37 typedef enum { 38 PCONTROL_RESP_NONE, 39 PCONTROL_RESP_START_JOB, 40 PCONTROL_RESP_CHECK_BUSY_JOB, 41 PCONTROL_RESP_CHECK_DONE_HOST, 42 PCONTROL_RESP_CHECK_HOST, 43 PCONTROL_RESP_KILL_JOB, 44 PCONTROL_RESP_STOP_HOST, 45 } HostResp; 34 46 35 47 typedef enum { … … 97 109 Ptime nexttry; 98 110 IDtype HostID; 111 IOBuffer comms_buffer; 112 char *response; 113 HostResp response_state; 99 114 struct Job *job; 100 115 } Host; … … 156 171 157 172 /*** own files ***/ 173 int StartJob (Job *job, Host *host); 174 int StartJobResponse (Host *host); 175 158 176 int CheckHost (Host *host); 177 int CheckHostResponse (Host *host); 178 179 int CheckDoneHost (Host *host); 180 int CheckDoneHostResponse (Host *host); 181 182 int CheckBusyJob (Job *job, Host *host); 183 int CheckBusyJobResponse (Host *host); 184 185 int KillJob (Job *job, Host *host); 186 int KillJobResponse (Host *host); 187 159 188 int StartHost (Host *host); 160 189 int CheckIdleHost (Host *host); 161 int CheckDoneHost (Host *host);162 int CheckBusyJob (Job *job, Host *host);163 190 int CheckDoneJob (Job *job, Host *host); 164 int KillJob (Job *job, Host *host);165 int StartJob (Job *job, Host *host);166 int ResetJob (Job *job);167 191 int GetJobOutput (char *command, Host *host, IOBuffer *buffer, int Nbytes); 168 int PclientCommand (Host *host, char *command, char *response, IOBuffer *buffer);169 192 int rconnect (char *command, char *hostname, char *shell, int *stdio); 193 194 int PclientCommand (Host *host, char *command, char *response, HostResp response_state); 195 int PclientResponse (Host *host, char *response, IOBuffer *buffer); 196 197 int CheckRespHosts (float MaxDelay); 198 int CheckRespHost (Host *host); 170 199 171 200 /*** misc files ***/ … … 203 232 int DownHosts (); 204 233 int StopHost (Host *host); 234 int StopHostResponse (Host *host); 205 235 int HarvestHost (int pid); 206 236
Note:
See TracChangeset
for help on using the changeset viewer.
