MySQL 9.1.0
Source Code Documentation
keepalive.cc File Reference
#include <array>
#include <chrono>
#include <thread>
#include "mysql/harness/config_parser.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/plugin.h"

Namespaces

namespace  anonymous_namespace{keepalive.cc}
 

Macros

#define DLLEXPORT
 

Functions

static void init (mysql_harness::PluginFuncEnv *)
 
static void start (mysql_harness::PluginFuncEnv *env)
 

Variables

const int anonymous_namespace{keepalive.cc}::kInterval = 60
 
const int anonymous_namespace{keepalive.cc}::kRuns = 0
 
static constexpr std::array supported_options
 
mysql_harness::Plugin DLLEXPORT harness_plugin_keepalive
 

Macro Definition Documentation

◆ DLLEXPORT

#define DLLEXPORT

Function Documentation

◆ init()

static void init ( mysql_harness::PluginFuncEnv )
static

◆ start()

static void start ( mysql_harness::PluginFuncEnv env)
static

Variable Documentation

◆ harness_plugin_keepalive

mysql_harness::Plugin DLLEXPORT harness_plugin_keepalive
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION, mysql_harness::ARCHITECTURE_DESCRIPTOR,
"Keepalive Plugin", VERSION_NUMBER(0, 0, 1),
0, nullptr,
0, nullptr,
init,
nullptr,
nullptr,
false,
nullptr,
}
static constexpr std::array supported_options
Definition: keepalive.cc:98
static void start(mysql_harness::PluginFuncEnv *env)
Definition: keepalive.cc:59
static void init(mysql_harness::PluginFuncEnv *)
Definition: keepalive.cc:57

◆ supported_options

constexpr std::array supported_options
staticconstexpr
Initial value:
{
"interval",
"runs",
}