A brief file description. More...
#include "ink_config.h"
#include <unistd.h>
#include "P_Cluster.h"
#include "I_Layout.h"
Go to the source code of this file.
Data Structures | |
struct | MachineTimeoutContinuation |
Typedefs | |
typedef int(MachineTimeoutContinuation::* | McTimeoutContHandler )(int, void *) |
Functions | |
MachineList * | the_cluster_machines_config () |
MachineList * | the_cluster_config () |
ClusterMachine * | this_cluster_machine () |
void | create_this_cluster_machine () |
void | free_ClusterMachine (ClusterMachine *m) |
void | free_MachineList (MachineList *l) |
MachineList * | read_MachineList (char *filename, int afd) |
Variables | |
int | num_of_cluster_threads |
MachineList * | machines_config = NULL |
MachineList * | cluster_config = NULL |
ProxyMutex * | the_cluster_config_mutex |
static ClusterMachine * | cluster_machine |
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 ClusterMachine.cc.
typedef int(MachineTimeoutContinuation::* McTimeoutContHandler)(int, void *) |
Definition at line 173 of file ClusterMachine.cc.
void create_this_cluster_machine | ( | ) |
Definition at line 61 of file ClusterMachine.cc.
References new_ProxyMutex().
Referenced by ClusterProcessor::init().
void free_ClusterMachine | ( | ClusterMachine * | m | ) |
Definition at line 194 of file ClusterMachine.cc.
References CLUSTER_INCREMENT_DYN_STAT, CLUSTER_MACHINES_FREED_STAT, ClusterMachine::dead, ET_CALL, eventProcessor, MACHINE_TIMEOUT, Thread::mutex, EventProcessor::schedule_in(), and this_ethread().
Referenced by ClusterHandler::~ClusterHandler().
void free_MachineList | ( | MachineList * | l | ) |
Definition at line 205 of file ClusterMachine.cc.
References MACHINE_TIMEOUT, and new_Freer().
Referenced by machine_config_change().
MachineList* read_MachineList | ( | char * | filename, | |
int | afd | |||
) |
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_cluster_machines_config | ( | ) |
Definition at line 43 of file ClusterMachine.cc.
Referenced by ClusterAccept::ClusterAcceptMachine(), and ClusterHandler::process_write().
ClusterMachine* this_cluster_machine | ( | ) |
Definition at line 55 of file ClusterMachine.cc.
Referenced by ClusterVCToken::alloc(), cluster_machine_at_depth(), ClusterHandler::connectClusterEvent(), ClusterProcessor::init(), machine_list_ClusterFunction(), MachineStatusSM::MachineStatusSMEvent(), make_cluster_connections(), ClusterProcessor::start(), test(), and TSGetMyNodeHandle().
MachineList* cluster_config = NULL |
Definition at line 36 of file ClusterMachine.cc.
Referenced by machine_config_change().
ClusterMachine* cluster_machine [static] |
Definition at line 40 of file ClusterMachine.cc.
MachineList* machines_config = NULL |
Definition at line 35 of file ClusterMachine.cc.
Referenced by machine_config_change().
Definition at line 36 of file ClusterProcessor.cc.
Definition at line 38 of file ClusterMachine.cc.
Referenced by ClusterHandler::machine_down(), ClusterHandler::startClusterEvent(), and ClusterHandler::~ClusterHandler().