Public RecCore declarations. More...
#include "Diags.h"
#include "I_RecDefs.h"
#include "I_RecAlarms.h"
#include "I_RecSignals.h"
#include "I_RecEvents.h"
Go to the source code of this file.
Defines | |
#define | RecRegisterStatInt(rec_type, name, data_default, persist_type) _RecRegisterStatInt((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
#define | RecRegisterStatFloat(rec_type, name, data_default, persist_type) _RecRegisterStatFloat((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
#define | RecRegisterStatString(rec_type, name, data_default, persist_type) _RecRegisterStatString((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
#define | RecRegisterStatCounter(rec_type, name, data_default, persist_type) _RecRegisterStatCounter((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
#define | REC_ReadConfigInt32(_var, _config_var_name) |
#define | REC_ReadConfigInteger(_var, _config_var_name) |
#define | REC_ReadConfigFloat(_var, _config_var_name) |
#define | REC_ReadConfigStringAlloc(_var, _config_var_name) RecGetRecordString_Xmalloc(_config_var_name, (RecString*)&_var) |
#define | REC_ReadConfigString(_var, _config_var_name, _len) RecGetRecordString(_config_var_name, _var, _len) |
#define | REC_RegisterConfigUpdateFunc(_config_var_name, func, flag) RecRegisterConfigUpdateCb(_config_var_name, func, flag) |
#define | REC_EstablishStaticConfigInteger(_var, _config_var_name) |
#define | REC_EstablishStaticConfigInt32(_var, _config_var_name) |
#define | REC_EstablishStaticConfigInt32U(_var, _config_var_name) |
#define | REC_EstablishStaticConfigStringAlloc(_var, _config_var_name) |
#define | REC_EstablishStaticConfigFloat(_var, _config_var_name) |
#define | REC_EstablishStaticConfigByte(_var, _config_var_name) |
#define | REC_EstablishStaticConfigBool(_var, _config_var_name) |
Typedefs | |
typedef void(* | RecConfigEntryCallback )(RecT rec_type, RecDataT data_type, const char *name, const char *value, bool inc_version) |
typedef void *(* | RecManagerCb )(void *opaque_cb_data, char *data_raw, int data_len) |
Functions | |
int | RecSetDiags (Diags *diags) |
void | RecConfigFileInit (void) |
int | RecConfigFileParse (const char *path, RecConfigEntryCallback handler, bool inc_version) |
char * | RecConfigReadRuntimeDir () |
char * | RecConfigReadSnapshotDir () |
char * | RecConfigReadLogDir () |
char * | RecConfigReadBinDir () |
char * | RecConfigReadConfigPath (const char *file_variable, const char *default_value=NULL) |
char * | RecConfigReadPrefixPath (const char *file_variable, const char *default_value=NULL) |
char * | RecConfigReadPersistentStatsPath () |
const char * | RecConfigOverrideFromEnvironment (const char *name, const char *value) |
int | _RecRegisterStatInt (RecT rec_type, const char *name, RecInt data_default, RecPersistT persist_type) |
int | _RecRegisterStatFloat (RecT rec_type, const char *name, RecFloat data_default, RecPersistT persist_type) |
int | _RecRegisterStatString (RecT rec_type, const char *name, RecString data_default, RecPersistT persist_type) |
int | _RecRegisterStatCounter (RecT rec_type, const char *name, RecCounter data_default, RecPersistT persist_type) |
int | RecRegisterConfigInt (RecT rec_type, const char *name, RecInt data_default, RecUpdateT update_type, RecCheckT check_type, const char *ccheck_regex, RecAccessT access_type=RECA_NULL) |
int | RecRegisterConfigFloat (RecT rec_type, const char *name, RecFloat data_default, RecUpdateT update_type, RecCheckT check_type, const char *check_regex, RecAccessT access_type=RECA_NULL) |
int | RecRegisterConfigString (RecT rec_type, const char *name, const char *data_default, RecUpdateT update_type, RecCheckT check_type, const char *check_regex, RecAccessT access_type=RECA_NULL) |
int | RecRegisterConfigCounter (RecT rec_type, const char *name, RecCounter data_default, RecUpdateT update_type, RecCheckT check_type, const char *check_regex, RecAccessT access_type=RECA_NULL) |
int | RecLinkConfigInt (const char *name, RecInt *rec_int) |
int | RecLinkConfigInt32 (const char *name, int32_t *p_int32) |
int | RecLinkConfigUInt32 (const char *name, uint32_t *p_uint32) |
int | RecLinkConfigFloat (const char *name, RecFloat *rec_float) |
int | RecLinkConfigCounter (const char *name, RecCounter *rec_counter) |
int | RecLinkConfigString (const char *name, RecString *rec_string) |
int | RecLinkConfigByte (const char *name, RecByte *rec_byte) |
int | RecLinkConfigBool (const char *name, RecBool *rec_byte) |
int | RecRegisterConfigUpdateCb (const char *name, RecConfigUpdateCb update_cb, void *cookie) |
int | RecRegisterRawStatUpdateFunc (const char *name, RecRawStatBlock *rsb, int id, RecStatUpdateFunc update_func, void *cookie) |
int | RecSetRecordConvert (const char *name, const RecString rec_string, bool lock=true, bool inc_version=true) |
int | RecSetRecordInt (const char *name, RecInt rec_int, bool lock=true, bool inc_version=true) |
int | RecSetRecordFloat (const char *name, RecFloat rec_float, bool lock=true, bool inc_version=true) |
int | RecSetRecordString (const char *name, const RecString rec_string, bool lock=true, bool inc_version=true) |
int | RecSetRecordCounter (const char *name, RecCounter rec_counter, bool lock=true, bool inc_version=true) |
int | RecGetRecordInt (const char *name, RecInt *rec_int, bool lock=true) |
int | RecGetRecordFloat (const char *name, RecFloat *rec_float, bool lock=true) |
int | RecGetRecordString (const char *name, char *buf, int buf_len, bool lock=true) |
int | RecGetRecordString_Xmalloc (const char *name, RecString *rec_string, bool lock=true) |
int | RecGetRecordCounter (const char *name, RecCounter *rec_counter, bool lock=true) |
int | RecGetRecordByte (const char *name, RecByte *rec_byte, bool lock=true) |
int | RecGetRecordBool (const char *name, RecBool *rec_byte, bool lock=true) |
int | RecGetRecordType (const char *name, RecT *rec_type, bool lock=true) |
int | RecGetRecordDataType (const char *name, RecDataT *data_type, bool lock=true) |
int | RecGetRecordPersistenceType (const char *name, RecPersistT *persist_type, bool lock=true) |
int | RecGetRecordOrderAndId (const char *name, int *order, int *id, bool lock=true) |
int | RecGetRecordUpdateType (const char *name, RecUpdateT *update_type, bool lock=true) |
int | RecGetRecordCheckType (const char *name, RecCheckT *check_type, bool lock=true) |
int | RecGetRecordCheckExpr (const char *name, char **check_expr, bool lock=true) |
int | RecGetRecordDefaultDataString_Xmalloc (char *name, char **buf, bool lock=true) |
int | RecGetRecordAccessType (const char *name, RecAccessT *secure, bool lock=true) |
int | RecSetRecordAccessType (const char *name, RecAccessT secure, bool lock=true) |
void | RecGetRecordTree (char *subtree=NULL) |
void | RecGetRecordList (char *, char ***, int *) |
int | RecGetRecordPrefix_Xmalloc (char *prefix, char **result, int *result_len) |
void | RecSignalManager (int id, const char *, size_t) |
static void | RecSignalManager (int id, const char *str) |
void | RecSignalWarning (int sig, const char *fmt,...) TS_PRINTFLIKE(2 |
RecInt | REC_ConfigReadInteger (const char *name) |
char * | REC_ConfigReadString (const char *name) |
RecFloat | REC_ConfigReadFloat (const char *name) |
RecCounter | REC_ConfigReadCounter (const char *name) |
RecInt | REC_readInteger (const char *name, bool *found, bool lock=true) |
RecFloat | REC_readFloat (char *name, bool *found, bool lock=true) |
RecCounter | REC_readCounter (char *name, bool *found, bool lock=true) |
RecString | REC_readString (const char *name, bool *found, bool lock=true) |
int | RecResetStatRecord (const char *name) |
int | RecResetStatRecord (RecT type=RECT_NULL, bool all=false) |
int | RecSetSyncRequired (char *name, bool lock=true) |
int | RecRegisterManagerCb (int _signal, RecManagerCb _fn, void *_data=NULL) |
void | RecResizeAdditional (int add) |
Public RecCore declarations.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file I_RecCore.h.
#define REC_EstablishStaticConfigBool | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecLinkConfigBool(_config_var_name, &_var); \ _var = 0 != REC_ConfigReadInteger(_config_var_name); \ } while (0)
Definition at line 268 of file I_RecCore.h.
#define REC_EstablishStaticConfigByte | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecLinkConfigByte(_config_var_name, &_var); \ _var = (RecByte)REC_ConfigReadInteger(_config_var_name); \ } while (0)
Definition at line 261 of file I_RecCore.h.
#define REC_EstablishStaticConfigFloat | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecLinkConfigFloat(_config_var_name, &_var); \ _var = (RecFloat)REC_ConfigReadFloat(_config_var_name); \ } while (0)
Definition at line 254 of file I_RecCore.h.
#define REC_EstablishStaticConfigInt32 | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecLinkConfigInt32(_config_var_name, &_var); \ _var = (int32_t)REC_ConfigReadInteger(_config_var_name); \ } while (0)
Definition at line 231 of file I_RecCore.h.
Referenced by StatPagesManager::init(), ClusterProcessor::init(), initCongestionControl(), SSLConfigParams::initialize(), ink_cache_init(), ink_event_system_init(), Cache::open(), spdy_config_load(), HostDBProcessor::start(), and DNSProcessor::start().
#define REC_EstablishStaticConfigInt32U | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecLinkConfigUInt32(_config_var_name, &_var); \ _var = (int32_t)REC_ConfigReadInteger(_config_var_name); \ } while (0)
Definition at line 236 of file I_RecCore.h.
Referenced by spdy_config_load(), and HostDBProcessor::start().
#define REC_EstablishStaticConfigInteger | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecLinkConfigInt(_config_var_name, &_var); \ _var = (int64_t)REC_ConfigReadInteger(_config_var_name); \ } while (0)
Definition at line 226 of file I_RecCore.h.
Referenced by ink_cache_init().
#define REC_EstablishStaticConfigStringAlloc | ( | _var, | ||
_config_var_name | ||||
) |
do { \ if (RecLinkConfigString(_config_var_name, &_var) == REC_ERR_OKAY) \ ats_free(_var); \ _var = (RecString)REC_ConfigReadString(_config_var_name); \ } while (0)
Definition at line 248 of file I_RecCore.h.
Referenced by initCongestionControl().
#define REC_ReadConfigFloat | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecFloat tmp = 0; \ RecGetRecordFloat(_config_var_name, &tmp); \ _var = tmp; \ } while (0)
Definition at line 211 of file I_RecCore.h.
Referenced by adjust_num_of_net_threads(), adjust_sys_settings(), getNumSSLThreads(), and validate_rww().
#define REC_ReadConfigInt32 | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecInt tmp = 0; \ RecGetRecordInt(_config_var_name, (RecInt*) &tmp); \ _var = (int32_t)tmp; \ } while (0)
Definition at line 199 of file I_RecCore.h.
Referenced by SSLConfigParams::initialize(), initialize_thread_for_udp_net(), and HostDBCache::start().
#define REC_ReadConfigInteger | ( | _var, | ||
_config_var_name | ||||
) |
do { \ RecInt tmp = 0; \ RecGetRecordInt(_config_var_name, &tmp); \ _var = tmp; \ } while (0)
Definition at line 205 of file I_RecCore.h.
Referenced by UnixNetProcessor::accept_internal(), adjust_num_of_net_threads(), adjust_sys_settings(), aio_init_fildes(), check_fd_limit(), cmd_list(), configure_net(), get_listen_backlog(), getNumSSLThreads(), InactivityCop::InactivityCop(), ClusterProcessor::init(), NetAccept::init_accept_loop(), SSLConfigParams::initialize(), ink_aio_init(), ink_event_system_init(), main(), MakeHttpProxyAcceptor(), plugin_load(), PrefetchConfiguration::readConfiguration(), remap_load_plugin(), SSLParseCertificateConfiguration(), EventProcessor::start(), ClusterProcessor::start(), and UrlRewrite::UrlRewrite().
#define REC_ReadConfigString | ( | _var, | ||
_config_var_name, | ||||
_len | ||||
) | RecGetRecordString(_config_var_name, _var, _len) |
Definition at line 220 of file I_RecCore.h.
Referenced by create_volume(), do_machine_config_change(), CacheHostRecord::Init(), initialize_all_global_stats(), main(), and HostDBCache::start().
#define REC_ReadConfigStringAlloc | ( | _var, | ||
_config_var_name | ||||
) | RecGetRecordString_Xmalloc(_config_var_name, (RecString*)&_var) |
Definition at line 217 of file I_RecCore.h.
Referenced by SSLConfigParams::initialize(), DNSProcessor::start(), syslog_log_configure(), and UrlRewrite::UrlRewrite().
#define REC_RegisterConfigUpdateFunc | ( | _config_var_name, | ||
func, | ||||
flag | ||||
) | RecRegisterConfigUpdateCb(_config_var_name, func, flag) |
Definition at line 223 of file I_RecCore.h.
Referenced by configure_net(), UpdateConfigManager::init(), Log::init(), init_core_size(), init_reverse_proxy(), init_signals2(), initCacheControl(), ink_cache_init(), CacheHostTable::register_config_callback(), LogConfig::register_config_callbacks(), DiagsConfig::register_diags_callbacks(), and ClusterProcessor::start().
#define RecRegisterStatCounter | ( | rec_type, | ||
name, | ||||
data_default, | ||||
persist_type | ||||
) | _RecRegisterStatCounter((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
Definition at line 93 of file I_RecCore.h.
#define RecRegisterStatFloat | ( | rec_type, | ||
name, | ||||
data_default, | ||||
persist_type | ||||
) | _RecRegisterStatFloat((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
Definition at line 87 of file I_RecCore.h.
#define RecRegisterStatInt | ( | rec_type, | ||
name, | ||||
data_default, | ||||
persist_type | ||||
) | _RecRegisterStatInt((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
Definition at line 84 of file I_RecCore.h.
#define RecRegisterStatString | ( | rec_type, | ||
name, | ||||
data_default, | ||||
persist_type | ||||
) | _RecRegisterStatString((rec_type), (name), (data_default), REC_PERSISTENCE_TYPE(persist_type)) |
Definition at line 90 of file I_RecCore.h.
Referenced by initialize_process_manager().
typedef void(* RecConfigEntryCallback)(RecT rec_type, RecDataT data_type, const char *name, const char *value, bool inc_version) |
Definition at line 43 of file I_RecCore.h.
typedef void*(* RecManagerCb)(void *opaque_cb_data, char *data_raw, int data_len) |
Definition at line 299 of file I_RecCore.h.
int _RecRegisterStatCounter | ( | RecT | rec_type, | |
const char * | name, | |||
RecCounter | data_default, | |||
RecPersistT | persist_type | |||
) |
Definition at line 313 of file P_RecCore.cc.
References REC_REGISTER_STAT_XXX, and RECD_COUNTER.
int _RecRegisterStatFloat | ( | RecT | rec_type, | |
const char * | name, | |||
RecFloat | data_default, | |||
RecPersistT | persist_type | |||
) |
Definition at line 301 of file P_RecCore.cc.
References REC_REGISTER_STAT_XXX, and RECD_FLOAT.
int _RecRegisterStatInt | ( | RecT | rec_type, | |
const char * | name, | |||
RecInt | data_default, | |||
RecPersistT | persist_type | |||
) |
Definition at line 295 of file P_RecCore.cc.
References REC_REGISTER_STAT_XXX, and RECD_INT.
int _RecRegisterStatString | ( | RecT | rec_type, | |
const char * | name, | |||
RecString | data_default, | |||
RecPersistT | persist_type | |||
) |
Definition at line 307 of file P_RecCore.cc.
References REC_REGISTER_STAT_XXX, and RECD_STRING.
RecCounter REC_ConfigReadCounter | ( | const char * | name | ) |
Definition at line 1035 of file RecCore.cc.
References RecGetRecordCounter().
RecFloat REC_ConfigReadFloat | ( | const char * | name | ) |
Definition at line 1027 of file RecCore.cc.
References RecGetRecordFloat().
RecInt REC_ConfigReadInteger | ( | const char * | name | ) |
Definition at line 1011 of file RecCore.cc.
References RecGetRecordInt().
Referenced by Log::init(), init_tracker(), loadSocksConfiguration(), LogAccess::marshal_config_int_var(), LogConfig::read_configuration_variables(), and PrefetchConfiguration::readConfiguration().
char* REC_ConfigReadString | ( | const char * | name | ) |
Definition at line 1019 of file RecCore.cc.
References RecGetRecordString_Xmalloc().
Referenced by loadSocksConfiguration(), LogAccess::marshal_config_str_var(), LogConfig::read_configuration_variables(), PrefetchConfiguration::readConfiguration(), and ts_host_res_global_init().
RecCounter REC_readCounter | ( | char * | name, | |
bool * | found, | |||
bool | lock = true | |||
) |
Definition at line 1071 of file RecCore.cc.
References ink_assert, and RecGetRecordCounter().
Referenced by LogAccess::marshal_record().
RecFloat REC_readFloat | ( | char * | name, | |
bool * | found, | |||
bool | lock = true | |||
) |
Definition at line 1059 of file RecCore.cc.
References ink_assert, and RecGetRecordFloat().
Referenced by LogAccess::marshal_record().
RecInt REC_readInteger | ( | const char * | name, | |
bool * | found, | |||
bool | lock = true | |||
) |
Definition at line 1047 of file RecCore.cc.
References ink_assert, and RecGetRecordInt().
Referenced by LogAccess::marshal_record(), and DiagsConfig::reconfigure_diags().
RecString REC_readString | ( | const char * | name, | |
bool * | found, | |||
bool | lock = true | |||
) |
Definition at line 1083 of file RecCore.cc.
References ink_assert, and RecGetRecordString_Xmalloc().
Referenced by HttpProxyPort::loadConfig(), LogAccess::marshal_record(), and DiagsConfig::reconfigure_diags().
void RecConfigFileInit | ( | void | ) |
Definition at line 44 of file RecConfigParse.cc.
References create_queue(), g_rec_config_contents_ht, g_rec_config_lock, ink_hash_table_create(), ink_mutex_init(), and InkHashTableKeyType_String.
Referenced by RecCoreInit().
int RecConfigFileParse | ( | const char * | path, | |
RecConfigEntryCallback | handler, | |||
bool | inc_version | |||
) |
Definition at line 111 of file RecConfigParse.cc.
References ats_free(), ats_malloc(), ats_strdup, dequeue(), DL_Note, DL_Warning, enqueue(), RecConfigFileEntry::entry, RecConfigFileEntry::entry_type, g_rec_config_contents_ht, g_rec_config_lock, Tokenizer::Initialize(), ink_hash_table_create(), ink_hash_table_destroy(), ink_hash_table_insert(), ink_mutex_acquire(), ink_mutex_release(), InkHashTableKeyType_String, Tokenizer::iterFirst(), Tokenizer::iterNext(), queue_is_empty(), REC_ERR_FAIL, RecConfigOverrideFromEnvironment(), RecDebug(), RecFileImport_Xmalloc(), RecLog(), and SHARE_TOKS.
Referenced by RecReadConfigFile().
const char* RecConfigOverrideFromEnvironment | ( | const char * | name, | |
const char * | value | |||
) |
Definition at line 86 of file RecConfigParse.cc.
References ats_strdup, and ParseRules::ink_toupper().
Referenced by RecConfigFileParse().
char* RecConfigReadBinDir | ( | ) |
Definition at line 1132 of file RecCore.cc.
References ats_strdup, Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative().
char* RecConfigReadConfigPath | ( | const char * | file_variable, | |
const char * | default_value = NULL | |||
) |
Definition at line 1166 of file RecCore.cc.
References Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative_to().
Referenced by CacheHostTable::CacheHostTable(), ControlMatcher< Data, Result >::ControlMatcher(), ink_cache_init(), IpAllow::IpAllow(), Store::read_config(), ConfigVolumes::read_config_file(), and PrefetchConfiguration::readConfiguration().
char* RecConfigReadLogDir | ( | ) |
Definition at line 1115 of file RecCore.cc.
References ats_strdup, Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative().
Referenced by DiagsConfig::DiagsConfig(), LogConfig::read_configuration_variables(), and SDK_API_TSTextLog().
char* RecConfigReadPersistentStatsPath | ( | ) |
Definition at line 1208 of file RecCore.cc.
References REC_RAW_STATS_FILE, RecConfigReadRuntimeDir(), and Layout::relative_to().
Referenced by RecReadStatsFile(), and RecSyncStatsFile().
char* RecConfigReadPrefixPath | ( | const char * | file_variable, | |
const char * | default_value = NULL | |||
) |
Definition at line 1187 of file RecCore.cc.
References Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative_to().
Referenced by TSPluginDirGet().
char* RecConfigReadRuntimeDir | ( | ) |
Definition at line 1098 of file RecCore.cc.
References ats_strdup, Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative().
Referenced by check_config_directories(), check_lockfile(), cmd_clear(), initialize_all_global_stats(), MultiCacheBase::read_config(), RecConfigReadPersistentStatsPath(), HostDBCache::start(), and MultiCacheBase::write_config().
char* RecConfigReadSnapshotDir | ( | ) |
Definition at line 1149 of file RecCore.cc.
References Layout::get(), PATH_NAME_MAX, RecGetRecordString(), and Layout::relative_to().
int RecGetRecordAccessType | ( | const char * | name, | |
RecAccessT * | secure, | |||
bool | lock = true | |||
) |
Definition at line 677 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
int RecGetRecordBool | ( | const char * | name, | |
RecBool * | rec_byte, | |||
bool | lock = true | |||
) |
Definition at line 417 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_int, RECD_INT, and RecGetRecord_Xmalloc().
Referenced by RecLinkConfigBool().
int RecGetRecordByte | ( | const char * | name, | |
RecByte * | rec_byte, | |||
bool | lock = true | |||
) |
Definition at line 407 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_int, RECD_INT, and RecGetRecord_Xmalloc().
Referenced by http_config_share_server_sessions_read_bc(), and RecLinkConfigByte().
int RecGetRecordCheckExpr | ( | const char * | name, | |
char ** | check_expr, | |||
bool | lock = true | |||
) |
Definition at line 598 of file RecCore.cc.
References g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_CONFIG.
int RecGetRecordCheckType | ( | const char * | name, | |
RecCheckT * | check_type, | |||
bool | lock = true | |||
) |
Definition at line 569 of file RecCore.cc.
References g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_CONFIG.
int RecGetRecordCounter | ( | const char * | name, | |
RecCounter * | rec_counter, | |||
bool | lock = true | |||
) |
Definition at line 397 of file RecCore.cc.
References RecData::rec_counter, REC_ERR_OKAY, RECD_COUNTER, and RecGetRecord_Xmalloc().
Referenced by plugin_expand(), REC_ConfigReadCounter(), REC_readCounter(), RecLinkConfigCounter(), and TSMgmtCounterGet().
int RecGetRecordDataType | ( | const char * | name, | |
RecDataT * | data_type, | |||
bool | lock = true | |||
) |
Definition at line 455 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
Referenced by LogAccess::marshal_record(), and plugin_expand().
int RecGetRecordDefaultDataString_Xmalloc | ( | char * | name, | |
char ** | buf, | |||
bool | lock = true | |||
) |
Definition at line 626 of file RecCore.cc.
References ats_free(), ats_malloc(), g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), ink_strlcpy(), RECD_COUNTER, RECD_FLOAT, RECD_INT, and RECD_STRING.
int RecGetRecordFloat | ( | const char * | name, | |
RecFloat * | rec_float, | |||
bool | lock = true | |||
) |
Definition at line 348 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_float, RECD_FLOAT, and RecGetRecord_Xmalloc().
Referenced by plugin_expand(), REC_ConfigReadFloat(), REC_readFloat(), RecLinkConfigFloat(), and TSMgmtFloatGet().
int RecGetRecordInt | ( | const char * | name, | |
RecInt * | rec_int, | |||
bool | lock = true | |||
) |
Definition at line 338 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_int, RECD_INT, and RecGetRecord_Xmalloc().
Referenced by init_core_size(), init_system(), main(), plugin_expand(), REC_ConfigReadInteger(), REC_readInteger(), RecLinkConfigInt(), HttpBodyFactory::reconfigure(), and TSMgmtIntGet().
void RecGetRecordList | ( | char * | , | |
char *** | , | |||
int * | ||||
) |
Definition at line 934 of file RecCore.cc.
References RecTree::rec_tree_get_list().
int RecGetRecordOrderAndId | ( | const char * | name, | |
int * | order, | |||
int * | id, | |||
bool | lock = true | |||
) |
Definition at line 511 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
Referenced by TSStatFindName().
int RecGetRecordPersistenceType | ( | const char * | name, | |
RecPersistT * | persist_type, | |||
bool | lock = true | |||
) |
Definition at line 483 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_STAT.
Referenced by RecReadStatsFile().
int RecGetRecordPrefix_Xmalloc | ( | char * | prefix, | |
char ** | result, | |||
int * | result_len | |||
) |
Definition at line 947 of file RecCore.cc.
References ats_malloc(), RecRecord::data, RecRecord::data_type, DL_Error, g_num_records, RecRecord::lock, RecRecord::name, RecData::rec_float, RecData::rec_int, rec_mutex_acquire(), rec_mutex_release(), RecData::rec_string, RECD_COUNTER, RECD_FLOAT, RECD_INT, RECD_STRING, and RecLog().
Referenced by stat_callback().
int RecGetRecordString | ( | const char * | name, | |
char * | buf, | |||
int | buf_len, | |||
bool | lock = true | |||
) |
Definition at line 358 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), ink_strlcpy(), rec_mutex_acquire(), rec_mutex_release(), and RECD_STRING.
Referenced by http_config_enum_read(), RecConfigReadBinDir(), RecConfigReadConfigPath(), RecConfigReadLogDir(), RecConfigReadPrefixPath(), RecConfigReadRuntimeDir(), RecConfigReadSnapshotDir(), and RecHttpLoadIp().
int RecGetRecordString_Xmalloc | ( | const char * | name, | |
RecString * | rec_string, | |||
bool | lock = true | |||
) |
Definition at line 387 of file RecCore.cc.
References REC_ERR_OKAY, RecData::rec_string, RECD_STRING, and RecGetRecord_Xmalloc().
Referenced by plugin_expand(), REC_ConfigReadString(), REC_readString(), RecLinkConfigString(), HttpBodyFactory::reconfigure(), and TSMgmtStringGet().
void RecGetRecordTree | ( | char * | subtree = NULL |
) |
Definition at line 924 of file RecCore.cc.
References RecTree::print(), and RecTree::rec_tree_get().
int RecGetRecordType | ( | const char * | name, | |
RecT * | rec_type, | |||
bool | lock = true | |||
) |
Definition at line 430 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
int RecGetRecordUpdateType | ( | const char * | name, | |
RecUpdateT * | update_type, | |||
bool | lock = true | |||
) |
Definition at line 540 of file RecCore.cc.
References g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_CONFIG.
int RecLinkConfigBool | ( | const char * | name, | |
RecBool * | rec_byte | |||
) |
Definition at line 271 of file RecCore.cc.
References link_byte(), REC_ERR_FAIL, RecGetRecordBool(), and RecRegisterConfigUpdateCb().
int RecLinkConfigByte | ( | const char * | name, | |
RecByte * | rec_byte | |||
) |
Definition at line 262 of file RecCore.cc.
References link_byte(), REC_ERR_FAIL, RecGetRecordByte(), and RecRegisterConfigUpdateCb().
int RecLinkConfigCounter | ( | const char * | name, | |
RecCounter * | rec_counter | |||
) |
Definition at line 244 of file RecCore.cc.
References link_counter(), REC_ERR_FAIL, RecGetRecordCounter(), and RecRegisterConfigUpdateCb().
int RecLinkConfigFloat | ( | const char * | name, | |
RecFloat * | rec_float | |||
) |
Definition at line 235 of file RecCore.cc.
References link_float(), REC_ERR_FAIL, RecGetRecordFloat(), and RecRegisterConfigUpdateCb().
int RecLinkConfigInt | ( | const char * | name, | |
RecInt * | rec_int | |||
) |
Definition at line 214 of file RecCore.cc.
References link_int(), REC_ERR_FAIL, RecGetRecordInt(), and RecRegisterConfigUpdateCb().
int RecLinkConfigInt32 | ( | const char * | name, | |
int32_t * | p_int32 | |||
) |
Definition at line 223 of file RecCore.cc.
References link_int32(), and RecRegisterConfigUpdateCb().
int RecLinkConfigString | ( | const char * | name, | |
RecString * | rec_string | |||
) |
Definition at line 253 of file RecCore.cc.
References link_string_alloc(), REC_ERR_FAIL, RecGetRecordString_Xmalloc(), and RecRegisterConfigUpdateCb().
int RecLinkConfigUInt32 | ( | const char * | name, | |
uint32_t * | p_uint32 | |||
) |
Definition at line 229 of file RecCore.cc.
References link_uint32(), and RecRegisterConfigUpdateCb().
int RecRegisterConfigCounter | ( | RecT | rec_type, | |
const char * | name, | |||
RecCounter | data_default, | |||
RecUpdateT | update_type, | |||
RecCheckT | check_type, | |||
const char * | check_regex, | |||
RecAccessT | access_type = RECA_NULL | |||
) |
Definition at line 369 of file P_RecCore.cc.
References ink_assert, REC_REGISTER_CONFIG_XXX, RECD_COUNTER, RECT_CONFIG, and RECT_LOCAL.
int RecRegisterConfigFloat | ( | RecT | rec_type, | |
const char * | name, | |||
RecFloat | data_default, | |||
RecUpdateT | update_type, | |||
RecCheckT | check_type, | |||
const char * | check_regex, | |||
RecAccessT | access_type = RECA_NULL | |||
) |
Definition at line 349 of file P_RecCore.cc.
References ink_assert, REC_REGISTER_CONFIG_XXX, RECD_FLOAT, RECT_CONFIG, and RECT_LOCAL.
int RecRegisterConfigInt | ( | RecT | rec_type, | |
const char * | name, | |||
RecInt | data_default, | |||
RecUpdateT | update_type, | |||
RecCheckT | check_type, | |||
const char * | ccheck_regex, | |||
RecAccessT | access_type = RECA_NULL | |||
) |
Definition at line 340 of file P_RecCore.cc.
References ink_assert, REC_REGISTER_CONFIG_XXX, RECD_INT, RECT_CONFIG, and RECT_LOCAL.
Referenced by DiagsConfig::RegisterDiagConfig(), and TSMgmtIntCreate().
int RecRegisterConfigString | ( | RecT | rec_type, | |
const char * | name, | |||
const char * | data_default, | |||
RecUpdateT | update_type, | |||
RecCheckT | check_type, | |||
const char * | check_regex, | |||
RecAccessT | access_type = RECA_NULL | |||
) |
Definition at line 359 of file P_RecCore.cc.
References ink_assert, REC_REGISTER_CONFIG_XXX, RECD_STRING, RECT_CONFIG, and RECT_LOCAL.
Referenced by DiagsConfig::RegisterDiagConfig(), and TSMgmtStringCreate().
int RecRegisterConfigUpdateCb | ( | const char * | name, | |
RecConfigUpdateCb | update_cb, | |||
void * | cookie | |||
) |
Definition at line 284 of file RecCore.cc.
References ats_malloc(), g_records_ht, ink_assert, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), RecConfigCbList_t::next, rec_mutex_acquire(), rec_mutex_release(), REC_TYPE_IS_CONFIG, RecConfigCbList_t::update_cb, and RecConfigCbList_t::update_cookie.
Referenced by initCongestionControl(), RecLinkConfigBool(), RecLinkConfigByte(), RecLinkConfigCounter(), RecLinkConfigFloat(), RecLinkConfigInt(), RecLinkConfigInt32(), RecLinkConfigString(), RecLinkConfigUInt32(), PrefetchProcessor::start(), and HttpConfig::startup().
int RecRegisterManagerCb | ( | int | _signal, | |
RecManagerCb | _fn, | |||
void * | _data = NULL | |||
) |
Definition at line 196 of file RecLocal.cc.
Referenced by LogConfig::register_mgmt_callbacks().
int RecRegisterRawStatUpdateFunc | ( | const char * | name, | |
RecRawStatBlock * | rsb, | |||
int | id, | |||
RecStatUpdateFunc | update_func, | |||
void * | cookie | |||
) |
int RecResetStatRecord | ( | const char * | name | ) |
Definition at line 841 of file P_RecCore.cc.
References RecRecord::data, RecRecord::data_type, g_records_ht, i_am_the_record_owner(), ink_hash_table_lookup(), RecRecord::name, rec_mutex_acquire(), rec_mutex_release(), RecRecord::rec_type, RecDataSet(), RecRecordFree(), RecRecordInit(), and send_reset_message().
Referenced by recv_message_cb().
int RecResetStatRecord | ( | RecT | type = RECT_NULL , |
|
bool | all = false | |||
) |
Definition at line 877 of file P_RecCore.cc.
References RecRecord::data, RecRecord::data_default, RecRecord::data_type, DL_Note, g_num_records, g_records, i_am_the_record_owner(), RecRecord::lock, RecRecord::name, RecStatMeta::persist_type, rec_mutex_acquire(), rec_mutex_release(), RecRecord::rec_type, REC_TYPE_IS_STAT, RECD_STRING, RecDataSet(), RecDebug(), RECP_NON_PERSISTENT, RecRecordFree(), RecRecordInit(), send_reset_message(), RecRecord::stat_meta, and RecRecord::version.
void RecResizeAdditional | ( | int | add | ) |
int RecSetDiags | ( | Diags * | diags | ) |
Definition at line 33 of file RecDebug.cc.
Referenced by main(), and RecCoreInit().
int RecSetRecordAccessType | ( | const char * | name, | |
RecAccessT | secure, | |||
bool | lock = true | |||
) |
Definition at line 702 of file RecCore.cc.
References g_records_ht, ink_hash_table_lookup(), ink_rwlock_rdlock(), ink_rwlock_unlock(), rec_mutex_acquire(), and rec_mutex_release().
int RecSetRecordConvert | ( | const char * | name, | |
const RecString | rec_string, | |||
bool | lock = true , |
|||
bool | inc_version = true | |||
) |
Definition at line 487 of file P_RecCore.cc.
References RecData::rec_string, RECD_NULL, RecSetRecord(), and RECT_NULL.
int RecSetRecordCounter | ( | const char * | name, | |
RecCounter | rec_counter, | |||
bool | lock = true , |
|||
bool | inc_version = true | |||
) |
Definition at line 519 of file P_RecCore.cc.
References RecData::rec_counter, RECD_COUNTER, RecSetRecord(), and RECT_NULL.
int RecSetRecordFloat | ( | const char * | name, | |
RecFloat | rec_float, | |||
bool | lock = true , |
|||
bool | inc_version = true | |||
) |
Definition at line 503 of file P_RecCore.cc.
References RecData::rec_float, RECD_FLOAT, RecSetRecord(), and RECT_NULL.
int RecSetRecordInt | ( | const char * | name, | |
RecInt | rec_int, | |||
bool | lock = true , |
|||
bool | inc_version = true | |||
) |
Definition at line 495 of file P_RecCore.cc.
References RecData::rec_int, RECD_INT, RecSetRecord(), and RECT_NULL.
Referenced by CB_After_Cache_Init().
int RecSetRecordString | ( | const char * | name, | |
const RecString | rec_string, | |||
bool | lock = true , |
|||
bool | inc_version = true | |||
) |
Definition at line 511 of file P_RecCore.cc.
References RecData::rec_string, RECD_STRING, RecSetRecord(), and RECT_NULL.
int RecSetSyncRequired | ( | char * | name, | |
bool | lock = true | |||
) |
Definition at line 917 of file P_RecCore.cc.
References g_records_ht, g_records_rwlock, i_am_the_record_owner(), ink_hash_table_lookup(), ink_rwlock_unlock(), ink_rwlock_wrlock(), rec_mutex_acquire(), rec_mutex_release(), and REC_TYPE_IS_CONFIG.
static void RecSignalManager | ( | int | id, | |
const char * | str | |||
) | [inline, static] |
Definition at line 188 of file I_RecCore.h.
References RecSignalManager().
void RecSignalManager | ( | int | id, | |
const char * | , | |||
size_t | ||||
) |
Definition at line 202 of file RecLocal.cc.
References DL_Debug, ink_assert, and RecDebug().
Referenced by AIO_Callback_handler::handle_disk_failure(), ClusterHandler::machine_down(), LogUtils::manager_alarm(), RecSignalManager(), RecSignalWarning(), ClusterHandler::startClusterEvent(), and TSMgmtConfigIntSet().
void RecSignalWarning | ( | int | sig, | |
const char * | fmt, | |||
... | ||||
) |
Referenced by ConfigVolumes::BuildListFromString(), CacheHostTable::BuildTableFromString(), check_emergency_throttle(), check_shedding_warning(), check_throttle_warning(), ICPConfiguration::icp_config_change_callback(), CacheHostRecord::Init(), MultiCacheBase::open(), ICPPeerReadCont::PeerReadStateMachine(), Store::read_config(), and SSLParseCertificateConfiguration().