Skip to content

Commit

Permalink
added handlers.h
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 17, 2010
1 parent 04aad02 commit f868127
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cluster/handlers.h
Expand Up @@ -70,6 +70,7 @@ permission notice:
#define OP_TIMEOUT_PERNODE 20

enum {SHARED_MEM, SHARED_FILE};
enum {INIT, CONFIG, VNET, INSTCACHE, RESCACHE, NCCALL, ENDLOCK};

typedef struct instance_t {
char instanceId[16];
Expand Down Expand Up @@ -107,6 +108,8 @@ int allocate_ccInstance(ccInstance *out, char *id, char *amiId, char *kernelId,
void print_ccInstance(char *tag, ccInstance *in);

enum {RESDOWN, RESUP, RESASLEEP, RESWAKING};
enum {INSTINVALID, INSTVALID, INSTCONFLICT};
enum {RESINVALID, RESVALID};
enum {MONITOR, CLEANUP, CONTROL};
enum {CONFIGLOCK, CACHELOCK, VNETCONFIGLOCK};

Expand All @@ -124,7 +127,7 @@ int allocate_ccResource(ccResource *out, char *ncURL, char *ncService, int ncPor

typedef struct ccResourceCache_t {
ccResource resources[MAXNODES];
int valid[MAXNODES];
int cacheState[MAXNODES];
int numResources;
int lastResourceUpdate;
int resourceCacheUpdate;
Expand All @@ -133,7 +136,7 @@ typedef struct ccResourceCache_t {
typedef struct ccInstanceCache_t {
ccInstance instances[MAXINSTANCES];
time_t lastseen[MAXINSTANCES];
time_t valid[MAXINSTANCES];
int cacheState[MAXINSTANCES];
int numInsts;
int instanceCacheUpdate;
} ccInstanceCache;
Expand Down

0 comments on commit f868127

Please sign in to comment.