A brief file description. More...
#include "I_HostDBProcessor.h"
Go to the source code of this file.
A brief file description.
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 P_HostDBProcessor.h.
#define CONFIGURATION_HISTORY_PROBE_DEPTH 1 |
Definition at line 110 of file P_HostDBProcessor.h.
#define DEFAULT_HOST_DB_FILENAME "host.db" |
Definition at line 117 of file P_HostDBProcessor.h.
#define DEFAULT_HOST_DB_SIZE (1<<14) |
Definition at line 118 of file P_HostDBProcessor.h.
#define HOST_DB_CACHE_MAJOR_VERSION 3 |
Definition at line 113 of file P_HostDBProcessor.h.
#define HOST_DB_CACHE_MINOR_VERSION 0 |
Definition at line 114 of file P_HostDBProcessor.h.
#define HOST_DB_CLUSTER_TIMEOUT HRTIME_MSECONDS(5000) |
Definition at line 136 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::do_get_response().
#define HOST_DB_HITS_BITS 3 |
Definition at line 107 of file P_HostDBProcessor.h.
#define HOST_DB_IP_FAIL_TIMEOUT (60*60) |
Definition at line 126 of file P_HostDBProcessor.h.
#define HOST_DB_IP_STALE (12*60*60) |
Definition at line 124 of file P_HostDBProcessor.h.
#define HOST_DB_IP_TIMEOUT (24*60*60) |
Definition at line 122 of file P_HostDBProcessor.h.
#define HOST_DB_MAX_TTL (0x1FFFFF) |
Definition at line 129 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::do_dns(), and HostDBContinuation::insert().
#define HOST_DB_RETRY_PERIOD HRTIME_MSECONDS(20) |
Definition at line 137 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::clusterEvent(), HostDBContinuation::clusterResponseEvent(), HostDBContinuation::dnsEvent(), HostDBContinuation::dnsPendingEvent(), HostDBProcessor::getbyname_imm(), HostDBContinuation::probeEvent(), and HostDBContinuation::removeEvent().
#define HOST_DB_TAG_BITS 56 |
Definition at line 108 of file P_HostDBProcessor.h.
#define HOST_DB_TIMEOUT_INTERVAL HRTIME_SECOND |
Definition at line 120 of file P_HostDBProcessor.h.
Referenced by HostDBProcessor::start().
#define HOSTDB_DEBUG_COUNT_DYN_STAT | ( | _x, | ||
_y | ||||
) | RecIncrRawStatCount(hostdb_rsb, mutex->thread_holding, (int)_x, _y) |
Definition at line 170 of file P_HostDBProcessor.h.
#define HOSTDB_DECREMENT_DYN_STAT | ( | _x | ) | RecIncrRawStatSum(hostdb_rsb, mutex->thread_holding, (int)_x, -1) |
Definition at line 176 of file P_HostDBProcessor.h.
#define HOSTDB_DECREMENT_THREAD_DYN_STAT | ( | _s, | ||
_t | ||||
) | RecIncrRawStatSum(hostdb_rsb, _t, (int) _s, -1); |
Definition at line 193 of file P_HostDBProcessor.h.
#define HOSTDB_INCREMENT_DYN_STAT | ( | _x | ) | RecIncrRawStatSum(hostdb_rsb, mutex->thread_holding, (int)_x, 1) |
Definition at line 173 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::clusterEvent(), HostDBProcessor::getbyname_imm(), HostDBProcessor::getbyname_re(), HostDBProcessor::getSRVbyname_imm(), probe(), and HostDBContinuation::probeEvent().
#define HOSTDB_INCREMENT_THREAD_DYN_STAT | ( | _s, | ||
_t | ||||
) | RecIncrRawStatSum(hostdb_rsb, _t, (int) _s, 1); |
Definition at line 190 of file P_HostDBProcessor.h.
#define HOSTDB_READ_DYN_STAT | ( | _x, | ||
_count, | ||||
_sum | ||||
) |
do {\ RecGetRawStatSum(hostdb_rsb, (int)_x, &_sum); \ RecGetRawStatCount(hostdb_rsb, (int)_x, &_count); \ } while (0)
Definition at line 182 of file P_HostDBProcessor.h.
#define HOSTDB_SET_DYN_COUNT | ( | _x, | ||
_count | ||||
) | RecSetRawStatCount(hostdb_rsb, _x, _count); |
Definition at line 187 of file P_HostDBProcessor.h.
Referenced by HostDBProcessor::start(), and HostDBCache::start().
#define HOSTDB_SUM_DYN_STAT | ( | _x, | ||
_r | ||||
) | RecIncrRawStatSum(hostdb_rsb, mutex->thread_holding, (int)_x, _r) |
Definition at line 179 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::lookup_done().
#define TEST | ( | _x | ) |
Definition at line 140 of file P_HostDBProcessor.h.
typedef int(HostDBContinuation::* HostDBContHandler)(int, void *) |
Definition at line 436 of file P_HostDBProcessor.h.
anonymous enum |
Definition at line 46 of file P_HostDBProcessor.h.
enum HostDB_Stats |
hostdb_total_entries_stat | |
hostdb_total_lookups_stat | |
hostdb_total_hits_stat | |
hostdb_ttl_stat | |
hostdb_ttl_expires_stat | |
hostdb_re_dns_on_reload_stat | |
hostdb_bytes_stat | |
HostDB_Stat_Count |
Definition at line 152 of file P_HostDBProcessor.h.
enum HostDBMark |
Host DB record mark.
The records in the host DB are de facto segregated by roughly the DNS query type. We use an intermediate type to provide a little flexibility although the type is presumed to be a single byte.
HOSTDB_MARK_GENERIC |
Anything that's not one of the other types. |
HOSTDB_MARK_IPV4 |
IPv4 / T_A. |
HOSTDB_MARK_IPV6 |
IPv6 / T_AAAA. |
HOSTDB_MARK_SRV |
Service / T_SRV. |
Definition at line 71 of file P_HostDBProcessor.h.
unsigned int HOSTDB_CLIENT_IP_HASH | ( | sockaddr const * | lhs, | |
sockaddr const * | rhs | |||
) | [inline] |
Definition at line 82 of file P_HostDBProcessor.h.
References ats_ip4_addr_cast(), ats_ip_addr32_cast(), ats_ip_are_compatible(), ats_is_ip4(), and ats_is_ip6().
Referenced by HostDBRoundRobin::select_best_http().
bool is_dotted_form_hostname | ( | const char * | c | ) | [inline] |
Definition at line 543 of file P_HostDBProcessor.h.
References ink_inet_addr().
Referenced by probe().
unsigned int master_hash | ( | INK_MD5 const & | md5 | ) | [inline] |
Definition at line 537 of file P_HostDBProcessor.h.
Referenced by HostDBContinuation::clusterEvent(), HostDBContinuation::dnsEvent(), HostDBContinuation::do_get_response(), and probe().
char const* string_for | ( | HostDBMark | mark | ) |
int hostdb_cluster |
Definition at line 44 of file HostDB.cc.
Referenced by HostDBContinuation::do_get_response(), HostDBContinuation::do_put_response(), and HostDBProcessor::start().
Definition at line 45 of file HostDB.cc.
Referenced by HostDBContinuation::clusterResponseEvent(), HostDBContinuation::do_put_response(), and HostDBProcessor::start().
unsigned int hostdb_current_interval |
Definition at line 50 of file HostDB.cc.
Referenced by HostDBContinuation::backgroundEvent(), cmd_check_internal(), HostDBContinuation::insert(), HostDBInfo::ip_interval(), HostDBInfo::ip_time_remaining(), HostDBInfo::refresh_ip(), and HostDBProcessor::start().
Definition at line 59 of file HostDB.cc.
Referenced by HostDBProcessor::start().
int hostdb_enable |
Definition at line 42 of file HostDB.cc.
Referenced by HostDBProcessor::getbyname_imm(), HostDBProcessor::getSRVbyname_imm(), probe(), HostDBContinuation::probeEvent(), HostDBContinuation::removeEvent(), HostDBProcessor::setby(), HostDBProcessor::setby_srv(), and HostDBCache::start().
char hostdb_filename[PATH_NAME_MAX+1] |
Definition at line 55 of file HostDB.cc.
Referenced by HostDBCache::start().
Definition at line 47 of file HostDB.cc.
Referenced by HostDBContinuation::dnsEvent().
unsigned int hostdb_ip_fail_timeout_interval |
Definition at line 53 of file HostDB.cc.
Referenced by HostDBInfo::is_ip_fail_timeout(), HostDBContinuation::lookup_done(), and HostDBProcessor::start().
unsigned int hostdb_ip_stale_interval |
Definition at line 51 of file HostDB.cc.
Referenced by HostDBInfo::is_ip_stale(), and HostDBProcessor::start().
unsigned int hostdb_ip_timeout_interval |
Definition at line 52 of file HostDB.cc.
Referenced by HostDBContinuation::lookup_done(), and HostDBProcessor::start().
Definition at line 46 of file HostDB.cc.
Referenced by HostDBContinuation::do_dns(), and HostDBProcessor::start().
Definition at line 43 of file HostDB.cc.
Referenced by HostDBContinuation::clusterEvent(), HostDBContinuation::do_get_response(), and HostDBProcessor::start().
Definition at line 48 of file HostDB.cc.
Referenced by HostDBProcessor::getbyname_imm(), HostDBProcessor::getbyname_re(), HostDBProcessor::getSRVbyname_imm(), and HostDBProcessor::start().
int hostdb_size |
Definition at line 56 of file HostDB.cc.
Referenced by HostDBCache::start().
Definition at line 58 of file HostDB.cc.
Referenced by HostDBCache::estimated_heap_bytes_per_entry(), HttpSM::init(), and HostDBCache::start().
Definition at line 57 of file HostDB.cc.
Referenced by MultiCacheSync::mcEvent(), HostDBProcessor::start(), MultiCacheHeapGC::startEvent(), and HostDBSyncer::wait_event().
int hostdb_ttl_mode |
Definition at line 49 of file HostDB.cc.
Referenced by HostDBContinuation::lookup_done(), and HostDBProcessor::start().