A brief file description. More...
Go to the source code of this file.
Data Structures | |
struct | Machine |
The Machine is a simple place holder for the hostname and the ip address of an internet host. More... | |
struct | MachineListElement |
struct | MachineList |
struct | ink_gethostbyname_r_data |
Defines | |
#define | MACHINE_TIMEOUT (HRTIME_DAY*2) |
#define | NO_RACE_DELAY HRTIME_HOUR |
#define | INK_GETHOSTBYNAME_R_DATA_SIZE 10000 |
Functions | |
MachineList * | read_MachineList (char *filename, int test_fd=-1) |
void | free_MachineList (MachineList *l) |
inkcoreapi Machine * | this_machine () |
void | create_this_machine () |
void | free_Machine (Machine *m) |
MachineList * | the_machines_config () |
MachineList * | the_cluster_config () |
struct hostent * | ink_gethostbyname_r (char *hostname, ink_gethostbyname_r_data *data) |
Variables | |
ProxyMutex * | the_cluster_config_mutex |
MachineList * | machines_config |
MachineList * | cluster_config |
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 Machine.h.
#define INK_GETHOSTBYNAME_R_DATA_SIZE 10000 |
Definition at line 129 of file Machine.h.
Referenced by ink_gethostbyaddr_r(), and ink_gethostbyname_r().
void create_this_machine | ( | ) |
void free_Machine | ( | Machine * | m | ) |
void free_MachineList | ( | MachineList * | l | ) |
Definition at line 205 of file ClusterMachine.cc.
References MACHINE_TIMEOUT, and new_Freer().
Referenced by machine_config_change().
struct hostent* ink_gethostbyname_r | ( | char * | hostname, | |
ink_gethostbyname_r_data * | data | |||
) | [read] |
Definition at line 39 of file ink_inet.cc.
Referenced by ClusterMachine::ClusterMachine().
MachineList* read_MachineList | ( | char * | filename, | |
int | test_fd = -1 | |||
) |
Definition at line 211 of file ClusterMachine.cc.
References ats_free(), ats_malloc(), ats_strdup, Layout::get(), ink_assert, ink_file_fd_readline(), MachineListElement::ip, ParseRules::is_digit(), MachineList::machine, MachineList::n, MachineListElement::port, and Warning.
Referenced by machine_config_change(), and clusterConfigFile::parseFile().
MachineList* the_cluster_config | ( | ) |
Definition at line 49 of file ClusterMachine.cc.
Referenced by ClusterHandler::connectClusterEvent(), ClusterHandler::machine_down(), and ClusterHandler::startClusterEvent().
MachineList* the_machines_config | ( | ) |
inkcoreapi Machine* this_machine | ( | ) |
Definition at line 36 of file ClusterMachine.cc.
Referenced by machine_config_change().
Definition at line 35 of file ClusterMachine.cc.
Referenced by machine_config_change().
Definition at line 38 of file ClusterMachine.cc.
Referenced by ClusterHandler::machine_down(), ClusterHandler::startClusterEvent(), and ClusterHandler::~ClusterHandler().