cluster.h 585 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 * (C) 2017 The University of Chicago
 * 
 * See COPYRIGHT in top-level directory.
 */
#ifndef __CLUSTER_H
#define __CLUSTER_H

#include <margo.h>
#include <ssg.h>
#include "libmobject-store.h"
12
#include "mobject-client.h"
13 14

#define MOBJECT_CLUSTER_FILE_ENV "MOBJECT_CLUSTER_FILE"
15
#define MOBJECT_CLUSTER_SHUTDOWN_KILL_ENV "MOBJECT_SHUTDOWN_KILL_SERVERS"
16 17 18 19

struct mobject_store_handle
{
    margo_instance_id mid;
20
    mobject_client_t mobject_clt;
21 22 23 24 25 26 27 28 29 30 31
    ssg_group_id_t gid;
    int connected;
};

struct mobject_store_ioctx
{
    mobject_store_t cluster;
    char* pool_name;
};

#endif