00001 /* 00002 * pe_hdata.h 00003 * 00004 * HDATA is a linked list storage structure for each pipeline server that 00005 * is running on a set of hosts. 00006 * Note: A host can have multiple servers of the same type, so host names are 00007 * not necessarily unique. However, tid's are guaranteed unique. 00008 * 00009 * The following functions are available for use with hdata lists: 00010 * HDATA *gethname (HDATA *list, char *host_name) 00011 * return pointer to entry containing host_name 00012 * HDATA *gethtid (HDATA *list, int tid) 00013 * return pointer to entry containing tid 00014 * HDATA *sethtid (HDATA *list, char *host_name, int tid) 00015 * adds the tid for the entry with host_name and tid=0 00016 * void sethname (HDATA **list, char *host_name) 00017 * adds an enry, unconditionally, for the host_name and sets 00018 * tid and busy = 0 and param_list = null 00019 * HDATA *gethnext (HDATA *list) 00020 * get first entry on list, if list = null gets next entry 00021 * Note: Do not interleave calls for two different lists 00022 * HDATA *gethrel (HDATA *oldlist, HDATA *hloc, HDATA *newlist) 00023 * get the same relative entry on the new list as the one given 00024 * on the old list 00025 */ 00026 #ifndef PE_HDATA_INCL 00027 00028 #ifndef SOI_VERSION_INCL 00029 #include <soi_version.h> 00030 #endif 00031 00032 #define PE_HDATA_VERSION_NUM (0.8) 00033 00034 /* Host data for a server. Linked list for all hosts for a server type */ 00035 struct hdata { 00036 struct hdata *next; 00037 char *host_name; /* host name that the server is running on */ 00038 int tid; /* task id on the host */ 00039 int busy; /* busy flag on the host */ 00040 KEY *param_list; /* param list sent to the server on the host */ 00041 }; 00042 typedef struct hdata HDATA; 00043 00044 #define PE_HDATA_INCL 00045 #endif 00046 /* 00047 * Revision History 00048 * v0.1 93.05.26 ja 00049 * created original file 00050 * 00051 */ 00052 00053 /* 00054 $Id: pe_hdata.h,v 1.1 2009/02/23 22:45:40 production Exp $ 00055 $Source: /home/cvsuser/cvsroot/JSOC/proj/jpe/apps/pe_hdata.h,v $ 00056 $Author: production $ 00057 */ 00058 /* $Log: pe_hdata.h,v $ 00059 /* Revision 1.1 2009/02/23 22:45:40 production 00060 /* initial 00061 /* 00062 * Revision 1.2 1997/04/16 21:48:57 kehcheng 00063 * added #include <soi_version.h> 00064 * 00065 * Revision 1.1 1994/02/16 23:21:14 CM 00066 * Initial revision 00067 * */