Data Structures | Defines | Functions | Variables

Machine.h File Reference

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

MachineListread_MachineList (char *filename, int test_fd=-1)
void free_MachineList (MachineList *l)
inkcoreapi Machinethis_machine ()
void create_this_machine ()
void free_Machine (Machine *m)
MachineListthe_machines_config ()
MachineListthe_cluster_config ()
struct hostent * ink_gethostbyname_r (char *hostname, ink_gethostbyname_r_data *data)

Variables

ProxyMutexthe_cluster_config_mutex
MachineListmachines_config
MachineListcluster_config

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 Machine.h.


Define Documentation

#define INK_GETHOSTBYNAME_R_DATA_SIZE   10000

Definition at line 129 of file Machine.h.

Referenced by ink_gethostbyaddr_r(), and ink_gethostbyname_r().

#define MACHINE_TIMEOUT   (HRTIME_DAY*2)

Definition at line 44 of file Machine.h.

#define NO_RACE_DELAY   HRTIME_HOUR

Definition at line 56 of file Machine.h.


Function Documentation

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 
)
MachineList* the_cluster_config (  ) 
MachineList* the_machines_config (  ) 
inkcoreapi Machine* this_machine (  ) 

Variable Documentation

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().