#include <P_ClusterMachine.h>
Inherits Server.
Public Member Functions | |
ClusterMachine (char *hostname=NULL, unsigned int ip=0, int acluster_port=0) | |
~ClusterMachine () | |
ClusterHandler * | pop_ClusterHandler (int no_rr=0) |
Data Fields | |
bool | dead |
char * | hostname |
int | hostname_len |
unsigned int | ip |
int | cluster_port |
int | num_connections |
int | now_connections |
int | free_connections |
int64_t | rr_count |
Link< ClusterMachine > | link |
uint16_t | msg_proto_major |
uint16_t | msg_proto_minor |
ClusterHandler ** | clusterHandlers |
Definition at line 58 of file P_ClusterMachine.h.
ClusterMachine::ClusterMachine | ( | char * | hostname = NULL , |
|
unsigned int | ip = 0 , |
|||
int | acluster_port = 0 | |||
) |
Definition at line 67 of file ClusterMachine.cc.
References ats_calloc(), ats_strdup, Alias32::byte, CLUSTER_INCREMENT_DYN_STAT, CLUSTER_MACHINES_ALLOCATED_STAT, clusterHandlers, Debug, ink_gethostbyaddr_r_data::herrno, ink_gethostbyname_r_data::herrno, hostname, hostname_len, ink_gethostbyaddr_r(), ink_gethostbyname_r(), ink_release_assert, ip, memcpy, Thread::mutex, num_connections, num_of_cluster_threads, this_ethread(), Alias32::u32, and Warning.
ClusterMachine::~ClusterMachine | ( | ) |
Definition at line 166 of file ClusterMachine.cc.
References ats_free(), clusterHandlers, and hostname.
ClusterHandler * ClusterMachine::pop_ClusterHandler | ( | int | no_rr = 0 |
) |
Definition at line 150 of file ClusterMachine.cc.
References clusterHandlers, num_connections, and rr_count.
Referenced by ClusterProcessor::disable_remote_cluster_ops(), HostDBContinuation::do_get_response(), CacheContinuation::do_op(), HostDBContinuation::do_put_response(), CacheContinuation::do_remote_lookup(), ClusterProcessor::send_machine_list(), and TSSendClusterRPC().
Definition at line 68 of file P_ClusterMachine.h.
Referenced by ClusterVCToken::alloc(), ClusterHandler::connectClusterEvent(), and ClusterProcessor::start().
Definition at line 87 of file P_ClusterMachine.h.
Referenced by ClusterMachine(), ClusterProcessor::connect_local(), ClusterHandler::machine_down(), pop_ClusterHandler(), ClusterHandler::startClusterEvent(), and ~ClusterMachine().
bool ClusterMachine::dead |
Definition at line 60 of file P_ClusterMachine.h.
Referenced by cluster_machine_at_depth(), free_ClusterMachine(), ClusterHandler::machine_down(), CacheContinuation::remoteOpEvent(), and ClusterHandler::startClusterEvent().
Definition at line 71 of file P_ClusterMachine.h.
Referenced by ClusterHandler::~ClusterHandler().
char* ClusterMachine::hostname |
Definition at line 61 of file P_ClusterMachine.h.
Referenced by ClusterMachine(), and ~ClusterMachine().
Definition at line 62 of file P_ClusterMachine.h.
Referenced by ClusterMachine().
unsigned int ClusterMachine::ip |
Definition at line 67 of file P_ClusterMachine.h.
Referenced by ClusterVCToken::alloc(), build_hash_table_machine(), cache_op_result_ClusterFunction(), ClusterMachine(), configuration_add_machine(), ClusterHandler::connectClusterEvent(), default_api_ClusterFunction(), CacheContinuation::do_op(), CacheContinuation::do_remote_lookup(), machine_list_ClusterFunction(), MachineStatusSM::MachineStatusSMEvent(), make_cluster_connections(), and ClusterProcessor::send_machine_list().
Definition at line 74 of file P_ClusterMachine.h.
uint16_t ClusterMachine::msg_proto_major |
Definition at line 82 of file P_ClusterMachine.h.
Referenced by ClusterHandler::close_ClusterVConnection(), Cluster_deref(), Cluster_link(), Cluster_read(), Cluster_remove(), Cluster_write(), CacheContinuation::do_remote_lookup(), CacheContinuation::replyLookupEvent(), CacheContinuation::replyOpEvent(), ClusterProcessor::send_machine_list(), ClusterVConnection::set_disk_io_priority(), ClusterVConnection::set_http_info(), ClusterVConnection::set_pin_in_cache(), and ClusterHandler::startClusterEvent().
uint16_t ClusterMachine::msg_proto_minor |
Definition at line 83 of file P_ClusterMachine.h.
Referenced by ClusterHandler::startClusterEvent().
Definition at line 70 of file P_ClusterMachine.h.
Referenced by ClusterHandler::machine_down(), and ClusterHandler::startClusterEvent().
Definition at line 69 of file P_ClusterMachine.h.
Referenced by ClusterMachine(), ClusterProcessor::connect_local(), machine_list_ClusterFunction(), make_cluster_connections(), pop_ClusterHandler(), ClusterHandler::startClusterEvent(), and ClusterHandler::~ClusterHandler().
int64_t ClusterMachine::rr_count |
Definition at line 72 of file P_ClusterMachine.h.
Referenced by pop_ClusterHandler().