MySQL 8.0.40
Source Code Documentation
keepalive.cc File Reference
#include <array>
#include <chrono>
#include <iostream>
#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 std::array< const char *, 3 > supported_options {"interval", "runs"}
 
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,
}
static std::array< const char *, 3 > supported_options
Definition: keepalive.cc:99
static void start(mysql_harness::PluginFuncEnv *env)
Definition: keepalive.cc:60
static void init(mysql_harness::PluginFuncEnv *)
Definition: keepalive.cc:58

◆ supported_options

std::array<const char *, 3> supported_options {"interval", "runs"}
static