A brief file description. More...
#include "I_EventSystem.h"
#include "SRV.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 I_HostDBProcessor.h.
#define EVENT_HOST_DB_GET_RESPONSE (HOSTDB_EVENT_EVENTS_START+2) |
Definition at line 33 of file I_HostDBProcessor.h.
Referenced by HostDBContinuation::clusterEvent(), HostDBContinuation::clusterResponseEvent(), event_int_to_string(), and HttpDebugNames::get_event_name().
#define EVENT_HOST_DB_IP_REMOVED (HOSTDB_EVENT_EVENTS_START+1) |
Definition at line 32 of file I_HostDBProcessor.h.
Referenced by HostDBContinuation::removeEvent(), and HttpSM::state_hostdb_lookup().
#define EVENT_HOST_DB_LOOKUP (HOSTDB_EVENT_EVENTS_START+0) |
Definition at line 31 of file I_HostDBProcessor.h.
Referenced by HostDBContinuation::dnsEvent(), HostDBContinuation::dnsPendingEvent(), event_int_to_string(), HttpDebugNames::get_event_name(), HostDBTestReverse::mainEvent(), HostDBTestRR::mainEvent(), HostDBContinuation::probeEvent(), reply_to_cont(), HttpSM::state_hostdb_lookup(), HttpSM::state_hostdb_reverse_lookup(), and HttpSM::state_mark_os_down().
#define EVENT_SRV_GET_RESPONSE (SRV_EVENT_EVENTS_START+2) |
Definition at line 37 of file I_HostDBProcessor.h.
Referenced by HttpDebugNames::get_event_name().
#define EVENT_SRV_IP_REMOVED (SRV_EVENT_EVENTS_START+1) |
Definition at line 36 of file I_HostDBProcessor.h.
Referenced by HttpDebugNames::get_event_name(), and HttpSM::state_srv_lookup().
#define EVENT_SRV_LOOKUP (SRV_EVENT_EVENTS_START+0) |
Definition at line 35 of file I_HostDBProcessor.h.
Referenced by HttpDebugNames::get_event_name(), reply_to_cont(), HttpSM::state_hostdb_lookup(), and HttpSM::state_srv_lookup().
#define HOST_DB_MAX_ROUND_ROBIN_INFO 16 |
Definition at line 39 of file I_HostDBProcessor.h.
#define HOST_DB_SRV_PREFIX "_http._tcp." |
Definition at line 41 of file I_HostDBProcessor.h.
typedef void(Continuation::* process_hostdb_info_pfn)(HostDBInfo *r) |
Definition at line 354 of file I_HostDBProcessor.h.
typedef void(Continuation::* process_srv_info_pfn)(HostDBInfo *r) |
Definition at line 355 of file I_HostDBProcessor.h.
void ink_hostdb_init | ( | ModuleVersion | version | ) |
Definition at line 2442 of file HostDB.cc.
References checkModuleVersion(), hostdb_bytes_stat, HOSTDB_MODULE_VERSION, hostdb_re_dns_on_reload_stat, HostDB_Stat_Count, hostdb_total_entries_stat, hostdb_total_hits_stat, hostdb_total_lookups_stat, hostdb_ttl_expires_stat, hostdb_ttl_stat, ink_release_assert, RecAllocateRawStatBlock(), RECD_FLOAT, RECD_INT, RECP_NON_PERSISTENT, RECP_PERSISTENT, RecRawStatSyncAvg(), RecRawStatSyncCount(), RecRawStatSyncSum(), RecRegisterRawStat, RECT_PROCESS, and ts_host_res_global_init().
Referenced by main().
static unsigned int makeHostHash | ( | const char * | string | ) | [inline, static] |
Definition at line 64 of file I_HostDBProcessor.h.
References ink_assert.
Referenced by dns_process(), do_setby(), HostDBRoundRobin::find_target(), and HttpSM::process_srv_info().
void run_HostDBTest | ( | ) |
Referenced by main().
unsigned int hostdb_current_interval |
int hostdb_enable |
unsigned int hostdb_ip_fail_timeout_interval |
unsigned int hostdb_ip_stale_interval |
unsigned int hostdb_ip_timeout_interval |
unsigned int hostdb_serve_stale_but_revalidate |
Definition at line 54 of file HostDB.cc.
Referenced by HostDBInfo::serve_stale_but_revalidate(), and HostDBProcessor::start().
inkcoreapi HostDBProcessor hostDBProcessor |
Definition at line 37 of file HostDB.cc.
Referenced by cmd_clear(), HttpSM::do_hostdb_lookup(), HttpSM::do_hostdb_reverse_lookup(), HttpSM::do_hostdb_update_if_necessary(), main(), HttpSM::process_hostdb_info(), TestProxy::startEvent(), HttpSM::state_hostdb_lookup(), and TSHostLookup().