/* Copyright (c) 2014 IOnU Security Inc. All rights reserved Created February 2014 by Kendrick Webster gluster_status/Daemon.h - header for filesystem tester daemon */ #pragma once #include "Network.h" /* An instance of gluster_status runs as a daemon on each GlusterFS client machine/VM. The daemon instances perform filesystem tests and talk to each other via UDP to verify that files created on one machine are visible and readable on other machines. Daemon instances also respond to queries from gluster_status instances that are invoked as status reporters. */ namespace ionu { namespace gluster_status { namespace daemon { void Run( uint16_t listen_port, // UDP port to listen on const std::string& mount_path, // path where Gluster FS is mounted const std::string& test_file_prefix, // optional prefix to prepend to test file names const ionu::network::address_list_t& peers, // daemons on other machines with same FS mounted vv_funcptr_t on_started); // callback is called when daemon is fully started/functional void Stop(void); // called by signal handler for SIGINT or SIGTERM }}}