cluster.h 523 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
 * (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"

#define MOBJECT_CLUSTER_FILE_ENV "MOBJECT_CLUSTER_FILE"
14
#define MOBJECT_CLUSTER_SHUTDOWN_KILL_ENV "MOBJECT_SHUTDOWN_KILL_SERVERS"
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

struct mobject_store_handle
{
    margo_instance_id mid;
    ssg_group_id_t gid;
    int connected;
};

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

#endif