forked from lei.chen/myxce
update controller code
This commit is contained in:
parent
2836d196da
commit
41f56fa6ed
54 changed files with 9688 additions and 214 deletions
27
src/controller/include/worker.h
Normal file
27
src/controller/include/worker.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#if !defined(_WORKER_H_)
|
||||
#define _WORKER_H_ 1
|
||||
|
||||
#include "config.h"
|
||||
#include "mylock.h"
|
||||
#include "netio.h"
|
||||
#include "xce/types.h"
|
||||
#include "zarray.h"
|
||||
|
||||
typedef struct {
|
||||
uint64_t jobid;
|
||||
xce_alloc_t alloc;
|
||||
double used;
|
||||
} res_usage_t;
|
||||
|
||||
typedef struct {
|
||||
xce_worker_t host;
|
||||
char hostkey[XCE_MAXKEY_LEN];
|
||||
endpoint_t* ep;
|
||||
int idx;
|
||||
zarray_t usages;
|
||||
} worker_t;
|
||||
|
||||
extern int add_worker(void*, endpoint_t*, const char*,
|
||||
hostattrs_t*);
|
||||
extern int restore_worker(void*, xce_worker_t);
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue