Data Structures | Defines | Typedefs | Functions | Variables

I_HostDBProcessor.h File Reference

A brief file description. More...

#include "I_EventSystem.h"
#include "SRV.h"
Include dependency graph for I_HostDBProcessor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  HostDBApplicationInfo
struct  HostDBApplicationInfo::application_data_allotment
struct  HostDBApplicationInfo::http_server_attr
struct  HostDBApplicationInfo::application_data_rr
struct  SRVInfo
struct  HostDBInfo
struct  HostDBRoundRobin
struct  HostDBProcessor
 The Host Databse access interface. More...
struct  HostDBProcessor::Options
 Optional parameters for getby... More...

Defines

#define EVENT_HOST_DB_LOOKUP   (HOSTDB_EVENT_EVENTS_START+0)
#define EVENT_HOST_DB_IP_REMOVED   (HOSTDB_EVENT_EVENTS_START+1)
#define EVENT_HOST_DB_GET_RESPONSE   (HOSTDB_EVENT_EVENTS_START+2)
#define EVENT_SRV_LOOKUP   (SRV_EVENT_EVENTS_START+0)
#define EVENT_SRV_IP_REMOVED   (SRV_EVENT_EVENTS_START+1)
#define EVENT_SRV_GET_RESPONSE   (SRV_EVENT_EVENTS_START+2)
#define HOST_DB_MAX_ROUND_ROBIN_INFO   16
#define HOST_DB_SRV_PREFIX   "_http._tcp."

Typedefs

typedef void(Continuation::* process_hostdb_info_pfn )(HostDBInfo *r)
typedef void(Continuation::* process_srv_info_pfn )(HostDBInfo *r)

Functions

static unsigned int makeHostHash (const char *string)
void run_HostDBTest ()
void ink_hostdb_init (ModuleVersion version)

Variables

int hostdb_enable
unsigned int hostdb_current_interval
unsigned int hostdb_ip_stale_interval
unsigned int hostdb_ip_timeout_interval
unsigned int hostdb_ip_fail_timeout_interval
unsigned int hostdb_serve_stale_but_revalidate
inkcoreapi HostDBProcessor hostDBProcessor

Detailed Description

A brief file description.

License

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 Documentation

#define EVENT_HOST_DB_GET_RESPONSE   (HOSTDB_EVENT_EVENTS_START+2)
#define EVENT_HOST_DB_IP_REMOVED   (HOSTDB_EVENT_EVENTS_START+1)
#define EVENT_HOST_DB_LOOKUP   (HOSTDB_EVENT_EVENTS_START+0)
#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)
#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 Documentation

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.


Function Documentation

void ink_hostdb_init ( ModuleVersion  version  ) 
static unsigned int makeHostHash ( const char *  string  )  [inline, static]
void run_HostDBTest (  ) 

Referenced by main().


Variable Documentation

Definition at line 50 of file HostDB.cc.

Definition at line 42 of file HostDB.cc.

Definition at line 53 of file HostDB.cc.

Definition at line 51 of file HostDB.cc.

Definition at line 52 of file HostDB.cc.

Definition at line 54 of file HostDB.cc.

Referenced by HostDBInfo::serve_stale_but_revalidate(), and HostDBProcessor::start().