mobject-server.h 907 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
/*
 * (C) 2017 The University of Chicago
 *
 * See COPYRIGHT in top-level directory.
 */

#ifndef MOBJECT_SERVER_H
#define MOBJECT_SERVER_H

10
#include <margo.h>
11 12 13
/* server-side utilities and routines.  Clients are looking for either
 * libmobject-store.h or librados-mobject-store.h */

14 15
#define MOBJECT_SERVER_GROUP_NAME "mobject-store-servers"

16 17 18
/**
 * Start a mobject server instance
 *
19 20 21 22 23
 * @param[in] mid           margo instance id
 * @param[in] cluster_file  file name to write cluster connect info to
 * @returns 0 on success, negative error code on failure
 */
int mobject_server_init(margo_instance_id mid, const char *cluster_file);
24

25 26 27 28 29
/**
 * Shutdown a mobject server instance
 * 
 * @param[in] mid   margo instance id
 */
30
void mobject_server_shutdown(margo_instance_id mid);
31

32 33 34 35 36
/**
 * Wait for a mobject server instance to get a shutdown request.
 */
void mobject_server_wait_for_shutdown(void);

37
#endif