#include <P_ClusterCacheInternal.h>
Inherits Continuation.
Definition at line 90 of file P_ClusterCacheInternal.h.
anonymous enum |
Definition at line 92 of file P_ClusterCacheInternal.h.
CacheContinuation::CacheContinuation | ( | ) | [inline] |
Definition at line 274 of file P_ClusterCacheInternal.h.
References ClusterVCToken::clear(), remoteOpEvent(), SET_HANDLER, and token.
void CacheContinuation::allocMsgBuffer | ( | ) | [inline] |
Definition at line 212 of file P_ClusterCacheInternal.h.
References ats_malloc(), buffer_size_to_index(), DEFAULT_MAX_BUFFER_SIZE, ink_assert, MAX_BUFFER_SIZE_INDEX, new_IOBufferData, new_xmalloc_IOBufferData, rw_buf_msg, and rw_buf_msg_len.
Referenced by cache_op_ClusterFunction(), do_remote_lookup(), and setup_local_vc().
CacheContinuation * CacheContinuation::cacheContAllocator_alloc | ( | ) | [static] |
Definition at line 2848 of file ClusterCache.cc.
References cacheContAllocator.
Referenced by cache_lookup_ClusterFunction(), cache_op_ClusterFunction(), cache_op_result_ClusterFunction(), callback_failure(), Cluster_lookup(), do_op(), do_remote_lookup(), and setupReadBufTunnel().
void CacheContinuation::cacheContAllocator_free | ( | CacheContinuation * | c | ) | [static] |
Definition at line 2858 of file ClusterCache.cc.
References action, cacheContAllocator, free(), ink_assert, MagicNo, magicno, Continuation::mutex, start_time, and tunnel_mutex.
Referenced by callback_user(), callbackEvent(), callbackResultEvent(), Cluster_lookup(), disposeOfDataBuffer(), handleDisposeEvent(), handleReplyEvent(), localVCsetupEvent(), remoteOpEvent(), remove_and_delete(), replyLookupEvent(), replyOpEvent(), and tunnelClosedEvent().
Action * CacheContinuation::callback_failure | ( | Action * | a, | |
int | result, | |||
int | err, | |||
CacheContinuation * | this_cc = 0 | |||
) | [static] |
Definition at line 2884 of file ClusterCache.cc.
References action, cacheContAllocator_alloc(), callbackEvent(), ET_CACHE_CONT_SM, eventProcessor, Action::mutex, Continuation::mutex, result, result_error, EventProcessor::schedule_imm(), and SET_CONTINUATION_HANDLER.
Referenced by Cluster_deref(), Cluster_link(), Cluster_lookup(), Cluster_read(), Cluster_remove(), Cluster_write(), remove_and_delete(), and setup_local_vc().
void CacheContinuation::callback_user | ( | int | result, | |
void * | d | |||
) |
Definition at line 2800 of file ClusterCache.cc.
References action, cacheContAllocator_free(), Action::cancelled, Action::continuation, defer_callback_result(), Continuation::handleEvent(), is_ClusterThread(), Continuation::mutex, MUTEX_TRY_LOCK, and this_ethread().
Referenced by insert_cache_callback_user(), insertCallbackEvent(), probeLookupEvent(), and remoteOpEvent().
int CacheContinuation::callbackEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 2908 of file ClusterCache.cc.
References action, cacheContAllocator_free(), Action::cancelled, Action::continuation, Continuation::handleEvent(), result, and result_error.
Referenced by callback_failure().
int CacheContinuation::callbackResultEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 2832 of file ClusterCache.cc.
References action, cacheContAllocator_free(), callback_data, Action::cancelled, Action::continuation, Continuation::handleEvent(), and result.
Referenced by defer_callback_result().
void CacheContinuation::defer_callback_result | ( | int | result, | |
void * | d | |||
) |
Definition at line 2823 of file ClusterCache.cc.
References callback_data, callbackResultEvent(), ET_CACHE_CONT_SM, eventProcessor, result, EventProcessor::schedule_imm(), and SET_HANDLER.
Referenced by callback_user().
void CacheContinuation::disposeOfDataBuffer | ( | void * | buf | ) | [static] |
Definition at line 1906 of file ClusterCache.cc.
References ClusterVConnection::allow_remote_close(), cache_vc, cacheContAllocator_free(), VIO::CLOSE, VConnection::do_io(), ET_CALL, EVENT_CONT, eventProcessor, handleDisposeEvent(), have_all_data, HRTIME_MSECONDS, ink_assert, ClusterVConnection::pending_remote_fill, readahead_data, readahead_vio, ClusterVConnection::remote_closed, EventProcessor::schedule_in(), and write_cluster_vc.
Referenced by replyOpEvent().
Action * CacheContinuation::do_op | ( | Continuation * | c, | |
ClusterMachine * | mp, | |||
void * | args, | |||
int | user_opcode, | |||
char * | data, | |||
int | data_len, | |||
int | nbytes = -1 , |
|||
MIOBuffer * | b = 0 | |||
) | [static] |
Definition at line 375 of file ClusterCache.cc.
References action, ALLOCA_DOUBLE, CacheOpMsg_long::buffer_size, CacheOpMsg_short::buffer_size, cache_cluster_timeout, CACHE_DEREF, CACHE_LINK, CACHE_NO_RESPONSE, CACHE_OP_CLUSTER_FUNCTION, CACHE_OP_MALLOCED_CLUSTER_FUNCTION, CACHE_OPEN_READ, CACHE_OPEN_READ_BUFFER, CACHE_OPEN_READ_BUFFER_LONG, CACHE_OPEN_READ_LONG, CACHE_OPEN_WRITE, CACHE_OPEN_WRITE_BUFFER, CACHE_OPEN_WRITE_BUFFER_LONG, CACHE_OPEN_WRITE_LONG, CACHE_REMOVE, CACHE_RETRY_PERIOD, CACHE_UPDATE, cacheContAllocator_alloc(), Action::cancelled, CacheOpMsg_short_2::cfl_flags, CacheOpMsg_long::cfl_flags, CacheOpMsg_short::cfl_flags, ch, clusterProcessor, CacheOpMsg_long::data, CacheOpMsg_short::data, Debug, Queue< C, L >::enqueue(), ET_CACHE_CONT_SM, eventProcessor, FOLDHASH, CacheOpMsg_short_2::frag_type, frag_type, CacheOpMsg_long::frag_type, CacheOpMsg_short::frag_type, from, CacheOpMsg_short_2::init(), CacheOpMsg_long::init(), CacheOpMsg_short::init(), ink_get_hrtime(), ink_release_assert, ClusterProcessor::invoke_remote(), ClusterMachine::ip, CacheOpMsg_short::md5, CacheOpMsg_short_2::md5_1, CacheOpMsg_short_2::md5_2, Continuation::mutex, MUTEX_RELEASE, MUTEX_TRY_LOCK, CacheOpMsg_long::nbytes, CacheOpMsg_short::nbytes, new_cache_sequence_number(), op_failure(), op_needs_marshalled_coi(), op_to_sizeof_fixedlen_msg(), CacheOpMsg_short_2::opcode, CacheOpMsg_long::opcode, CacheOpMsg_short::opcode, pin_in_cache, ClusterMachine::pop_ClusterHandler(), remoteOpEvent(), remove_and_delete(), request_opcode, result, EventProcessor::schedule_in(), CacheOpMsg_short_2::seq_number, CacheOpMsg_long::seq_number, CacheOpMsg_short::seq_number, seq_number, SET_CONTINUATION_HANDLER, setup_local_vc(), start_time, target_ip, target_machine, this_ethread(), timeout, CacheOpMsg_long::url_md5, and url_md5.
Referenced by Cluster_deref(), Cluster_link(), Cluster_read(), Cluster_remove(), and Cluster_write().
Action * CacheContinuation::do_remote_lookup | ( | Continuation * | cont, | |
CacheKey * | key, | |||
CacheContinuation * | c, | |||
CacheFragType | ft, | |||
char * | hostname, | |||
int | hostname_len | |||
) | [static] |
Definition at line 2508 of file ClusterCache.cc.
References action, ALLOCA_DOUBLE, allocMsgBuffer(), Alias32::byte, cache_cluster_timeout, cache_hash(), CACHE_LOOKUP_CLUSTER_FUNCTION, CacheLookupMsg::CACHE_LOOKUP_MESSAGE_VERSION, CACHE_LOOKUP_OP, cache_migrate_on_demand, CACHE_RETRY_PERIOD, cacheContAllocator_alloc(), Action::cancelled, ch, cluster_machine_at_depth(), clusterProcessor, Queue< C, L >::enqueue(), ET_CACHE_CONT_SM, eventProcessor, FOLDHASH, CacheLookupMsg::frag_type, frag_type, getMsgBuffer(), CacheLookupMsg::init(), ink_assert, ink_get_hrtime(), ink_release_assert, ClusterProcessor::invoke_remote(), ClusterMachine::ip, memcpy, CacheLookupMsg::moi, ClusterMachine::msg_proto_major, Continuation::mutex, MUTEX_RELEASE, MUTEX_TRY_LOCK, new_cache_sequence_number(), op_to_sizeof_fixedlen_msg(), past_probes, ClusterMachine::pop_ClusterHandler(), probe_depth, CacheLookupMsg::protoToVersion(), remoteOpEvent(), result, EventProcessor::schedule_in(), CacheLookupMsg::seq_number, seq_number, SET_CONTINUATION_HANDLER, setMsgBufferLen(), start_time, target_ip, this_ethread(), timeout, url_md5, and CacheLookupMsg::url_md5.
Referenced by Cluster_lookup().
void CacheContinuation::free | ( | ) | [inline] |
Definition at line 242 of file P_ClusterCacheInternal.h.
References cache_vc_info, ClusterVCToken::clear(), freeMsgBuffer(), ic_arena, ic_hostname, ic_new_info, ic_old_info, ic_params, ic_request, ic_response, readahead_data, Arena::reset(), token, and tunnel_mutex.
Referenced by cacheContAllocator_free().
void CacheContinuation::freeMsgBuffer | ( | ) | [inline] |
Definition at line 234 of file P_ClusterCacheInternal.h.
References rw_buf_msg, and rw_buf_msg_len.
Referenced by cache_op_result_ClusterFunction(), free(), handleReplyEvent(), localVCsetupEvent(), and setup_local_vc().
char* CacheContinuation::getMsgBuffer | ( | ) | [inline] |
Definition at line 223 of file P_ClusterCacheInternal.h.
References ink_assert, and rw_buf_msg.
Referenced by cache_op_ClusterFunction(), do_remote_lookup(), localVCsetupEvent(), lookupOpenWriteVC(), remoteOpEvent(), and setup_local_vc().
IOBufferData* CacheContinuation::getMsgBufferIOBData | ( | ) | [inline] |
Definition at line 229 of file P_ClusterCacheInternal.h.
References rw_buf_msg.
Referenced by handleReplyEvent(), and remoteOpEvent().
int CacheContinuation::getMsgBufferLen | ( | ) | [inline] |
Definition at line 207 of file P_ClusterCacheInternal.h.
References rw_buf_msg_len.
Referenced by handleReplyEvent(), localVCsetupEvent(), and remoteOpEvent().
int32_t CacheContinuation::getObjectSize | ( | VConnection * | vc, | |
int | opcode, | |||
CacheHTTPInfo * | ret_ci | |||
) | [static] |
Definition at line 2720 of file ClusterCache.cc.
References CACHE_OPEN_READ_BUFFER_LONG, CACHE_OPEN_READ_LONG, and ink_release_assert.
Referenced by handleDisposeEvent(), replyOpEvent(), and VCdataRead().
int CacheContinuation::handleDisposeEvent | ( | int | event, | |
CacheContinuation * | cc | |||
) | [static] |
Definition at line 1939 of file ClusterCache.cc.
References action, cacheContAllocator_free(), Action::continuation, getObjectSize(), ink_assert, MagicNo, magicno, MUTEX_TRY_LOCK, VIO::nbytes, VIO::reenable(), VIO::reenable_re(), request_opcode, this_ethread(), tunnel, tunnel_closed, tunnel_cont, tunnel_mutex, VIO::vc_server, OneWayTunnel::vioSource, and OneWayTunnel::vioTarget.
Referenced by disposeOfDataBuffer(), and retryDisposeOfDataBuffer::handleRetryEvent().
int CacheContinuation::handleReplyEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 2122 of file ClusterCache.cc.
References CACHE_EVENT_RESPONSE, CACHE_RETRY_PERIOD, cacheContAllocator_free(), CLUSTER_INCREMENT_DYN_STAT, CLUSTER_REMOTE_OP_REPLY_TIMEOUTS_STAT, Debug, Event::ethread, find_cache_continuation(), FOLDHASH, freeMsgBuffer(), getMsgBufferIOBData(), getMsgBufferLen(), Continuation::handleEvent(), ic_new_info, LOG_EVENT_TIME, Continuation::mutex, MUTEX_TAKE_TRY_LOCK, MUTEX_TRY_LOCK, MUTEX_UNTAKE_LOCK, Event::schedule_in(), seq_number, setMsgBufferLen(), start_time, and target_ip.
Referenced by cache_op_result_ClusterFunction().
int CacheContinuation::init | ( | ) | [static] |
Definition at line 359 of file ClusterCache.cc.
References ClusterVConnectionCache::init(), and new_ProxyMutex().
Referenced by CacheProcessor::cacheInitialized().
void CacheContinuation::insert_cache_callback_user | ( | ClusterVConnection * | vc, | |
int | res, | |||
void * | e | |||
) |
Definition at line 2763 of file ClusterCache.cc.
References callback_data, callback_data_2, callback_user(), ET_CACHE_CONT_SM, eventProcessor, ClusterVConnectionCache::insert(), insertCallbackEvent(), result, EventProcessor::schedule_imm(), SET_HANDLER, and url_md5.
Referenced by remoteOpEvent().
int CacheContinuation::insertCallbackEvent | ( | int | , | |
Event * | ||||
) |
Definition at line 2780 of file ClusterCache.cc.
References callback_data, callback_data_2, callback_user(), ET_CACHE_CONT_SM, eventProcessor, ClusterVConnectionCache::insert(), result, EventProcessor::schedule_imm(), and url_md5.
Referenced by insert_cache_callback_user().
static bool CacheContinuation::is_ClusterThread | ( | EThread * | et | ) | [inline, static] |
Definition at line 319 of file P_ClusterCacheInternal.h.
References ET_CLUSTER, eventProcessor, EventProcessor::eventthread, and EventProcessor::n_threads_for_type.
Referenced by callback_user().
int CacheContinuation::localVCsetupEvent | ( | int | event, | |
ClusterVConnection * | vc | |||
) |
Definition at line 822 of file ClusterCache.cc.
References action, cache_cluster_timeout, CACHE_EVENT_OPEN_READ_FAILED, CACHE_EVENT_OPEN_WRITE_FAILED, CACHE_OP_CLUSTER_FUNCTION, CACHE_OP_MALLOCED_CLUSTER_FUNCTION, CACHE_RETRY_PERIOD, cacheContAllocator_free(), Action::cancel(), Action::cancelled, ch, CacheOpMsg_long::channel, CacheOpMsg_short::channel, ClusterVConnection::channel, VIO::CLOSE, CLUSTER_EVENT_OPEN, CLUSTER_EVENT_OPEN_EXISTS, CLUSTER_INCREMENT_DYN_STAT, CLUSTER_OPEN_DELAY_TIME_STAT, CLUSTER_REMOTE_OP_TIMEOUTS_STAT, CLUSTER_SUM_DYN_STAT, cluster_vc_channel, clusterProcessor, Action::continuation, ClusterVConnection::current_cont, Debug, VConnection::do_io(), Queue< C, L >::enqueue(), Event::ethread, EVENT_INTERVAL, FOLDHASH, freeMsgBuffer(), getMsgBuffer(), getMsgBufferLen(), Continuation::handleEvent(), ink_assert, ink_get_hrtime(), ClusterProcessor::invoke_remote(), ClusterVCToken::ip_created, LOG_EVENT_TIME, MagicNo, magicno, MUTEX_RELEASE, MUTEX_TRY_LOCK, op_is_read(), op_is_shortform(), op_needs_marshalled_coi(), open_local_token, ClusterVConnection::pending_remote_fill, read_cluster_vc, ClusterVConnection::remote_closed, remoteOpEvent(), Queue< C, L >::remove(), remove_and_delete(), request_opcode, result, result_error, Event::schedule_in(), CacheOpMsg_long::seq_number, CacheOpMsg_short::seq_number, seq_number, ClusterVCToken::sequence_number, SET_HANDLER, start_time, target_ip, timeout, CacheOpMsg_long::token, CacheOpMsg_short::token, use_deferred_callback, and write_cluster_vc.
Referenced by lookupOpenWriteVC(), lookupOpenWriteVCEvent(), and setup_local_vc().
int CacheContinuation::lookupEvent | ( | int | event, | |
void * | d | |||
) |
Definition at line 2492 of file ClusterCache.cc.
References ink_release_assert.
ClusterVConnection * CacheContinuation::lookupOpenWriteVC | ( | ) |
Definition at line 718 of file ClusterCache.cc.
References action, ClusterVConnectionBase::action_, cache_op_result_ClusterFunction, ch, CLUSTER_DELAYED_OPEN, CLUSTER_EVENT_OPEN, CLUSTER_EVENT_OPEN_EXISTS, CLUSTER_EVENT_OPEN_FAILED, CLUSTER_OPT_ALLOW_IMMEDIATE, CLUSTER_OPT_CONN_WRITE, clusterProcessor, ET_CACHE_CONT_SM, eventProcessor, from, getMsgBuffer(), Continuation::handleEvent(), localVCsetupEvent(), ClusterVConnectionCache::lookup(), lookup_open_write_vc_event, lookupOpenWriteVCEvent(), ClusterProcessor::open_local(), open_local_token, CacheOpReplyMsg::result, EventProcessor::schedule_imm(), seq_number, CacheOpReplyMsg::seq_number, SET_CONTINUATION_HANDLER, CacheOpReplyMsg::sizeof_fixedlen_msg(), ClusterVConnection::token, CacheOpReplyMsg::token, and CacheOpMsg_long::url_md5.
Referenced by lookupOpenWriteVCEvent(), and setup_local_vc().
int CacheContinuation::lookupOpenWriteVCEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 780 of file ClusterCache.cc.
References Action::cancel(), EVENT_IMMEDIATE, Continuation::handleEvent(), localVCsetupEvent(), lookup_open_write_vc_event, lookupOpenWriteVC(), and SET_CONTINUATION_HANDLER.
Referenced by lookupOpenWriteVC().
int CacheContinuation::probeLookupEvent | ( | int | event, | |
void * | d | |||
) |
Definition at line 2480 of file ClusterCache.cc.
References callback_user(), ink_assert, MagicNo, and magicno.
Referenced by remoteOpEvent().
int CacheContinuation::remoteOpEvent | ( | int | event, | |
Event * | e | |||
) |
Definition at line 2190 of file ClusterCache.cc.
References VIO::ABORT, action, ClusterVConnectionBase::action_, ClusterVConnection::allow_remote_close(), ClusterVConnection::alternate, cache_cluster_timeout, CACHE_EVENT_LOOKUP, CACHE_EVENT_LOOKUP_FAILED, CACHE_EVENT_OPEN_WRITE, CACHE_EVENT_RESPONSE, CACHE_EVENT_RESPONSE_MSG, CACHE_EVENT_RESPONSE_RETRY, cache_hash(), CACHE_OPEN_READ_LONG, CACHE_RETRY_PERIOD, cacheContAllocator_free(), caches, callback_user(), Action::cancel(), Action::cancelled, VIO::CLOSE, CLUSTER_CACHE_LKRMT_CALLBACK_TIME_STAT, CLUSTER_CACHE_RMT_CALLBACK_TIME_STAT, CLUSTER_INCREMENT_DYN_STAT, cluster_machine_at_depth(), CLUSTER_OPT_CONN_WRITE, CLUSTER_REMOTE_OP_TIMEOUTS_STAT, CLUSTER_SUM_DYN_STAT, Action::continuation, ClusterMachine::dead, Debug, VConnection::do_io(), DOT_SEPARATED, ECLUSTER_OP_TIMEOUT, Queue< C, L >::enqueue(), Event::ethread, EVENT_INTERVAL, event_is_open(), find_cache_continuation(), FOLDHASH, frag_type, getMsgBuffer(), getMsgBufferIOBData(), getMsgBufferLen(), Continuation::handleEvent(), ClusterVConnection::have_all_data, have_all_data, ic_new_info, ink_assert, ink_get_hrtime(), ink_release_assert, ClusterVConnectionCache::insert(), insert_cache_callback_user(), ClusterVCToken::is_clear(), LOG_EVENT_TIME, Cache::lookup(), MagicNo, magicno, ClusterVConnection::marshal_buf, MUTEX_RELEASE, MUTEX_TRY_LOCK, MUTEX_UNTAKE_LOCK, Note, ClusterVConnection::pending_remote_fill, PROBE_LOCAL_CACHE_FIRST, PROBE_LOCAL_CACHE_LAST, probeLookupEvent(), read_cluster_vc, ClusterVConnection::remote_closed, Queue< C, L >::remove(), request_opcode, request_timeout, CacheOpReplyMsg::result, result, result_error, Event::schedule_in(), seq_number, SET_HANDLER, ClusterVConnection::set_type(), start_time, target_ip, target_machine, this_ethread(), timeout, CacheOpReplyMsg::token, token, url_md5, and write_cluster_vc.
Referenced by CacheContinuation(), do_op(), do_remote_lookup(), localVCsetupEvent(), and setup_local_vc().
int CacheContinuation::remove_and_delete | ( | int | , | |
Event * | e | |||
) |
Definition at line 796 of file ClusterCache.cc.
References action, cache_cluster_timeout, cacheContAllocator_free(), callback_failure(), ET_CACHE_CONT_SM, eventProcessor, FOLDHASH, MUTEX_RELEASE, MUTEX_TRY_LOCK, Queue< C, L >::remove(), result, result_error, Event::schedule_in(), EventProcessor::schedule_in(), seq_number, SET_HANDLER, target_ip, this_ethread(), timeout, and use_deferred_callback.
Referenced by do_op(), and localVCsetupEvent().
int CacheContinuation::replyLookupEvent | ( | int | event, | |
void * | d | |||
) |
Definition at line 2683 of file ClusterCache.cc.
References ALLOCA_DOUBLE, CacheOpReplyMsg::CACHE_OP_REPLY_MESSAGE_VERSION, CACHE_OP_RESULT_CLUSTER_FUNCTION, cacheContAllocator_free(), ch, CLUSTER_CACHE_CALLBACK_TIME_STAT, CLUSTER_CACHE_OUTSTANDING_STAT, CLUSTER_DECREMENT_DYN_STAT, CLUSTER_SUM_DYN_STAT, clusterProcessor, from, CacheOpReplyMsg::init(), ink_get_hrtime(), ink_release_assert, ClusterProcessor::invoke_remote(), LOG_EVENT_TIME, ClusterMachine::msg_proto_major, no_reply_message, CacheOpReplyMsg::protoToVersion(), CacheOpReplyMsg::result, seq_number, CacheOpReplyMsg::seq_number, CacheOpReplyMsg::sizeof_fixedlen_msg(), start_time, and CacheOpReplyMsg::token.
Referenced by cache_lookup_ClusterFunction().
int CacheContinuation::replyOpEvent | ( | int | event, | |
VConnection * | vc | |||
) |
Definition at line 1645 of file ClusterCache.cc.
References ALLOCA_DOUBLE, ClusterVConnection::allow_remote_close(), bytes_IOBufferBlockList(), CACHE_EVENT_OPEN_WRITE, CACHE_LINK, CacheOpReplyMsg::CACHE_OP_REPLY_MESSAGE_VERSION, CACHE_OP_RESULT_CLUSTER_FUNCTION, CACHE_OPEN_READ_LONG, cache_read, cache_vc, cache_vc_info, cacheContAllocator_free(), ch, ClusterVCToken::clear(), VIO::CLOSE, CLUSTER_CACHE_CALLBACK_TIME_STAT, CLUSTER_CACHE_OUTSTANDING_STAT, CLUSTER_DECREMENT_DYN_STAT, CLUSTER_OPT_STEAL, CLUSTER_SUM_DYN_STAT, cluster_vc_channel, clusterProcessor, Debug, DEFAULT_MAX_BUFFER_SIZE, disposeOfDataBuffer(), VConnection::do_io(), event_is_open(), expect_cache_callback, from, getObjectSize(), have_all_data, OneWayTunnel::init(), ink_assert, ink_get_hrtime(), ink_release_assert, ClusterProcessor::invoke_remote(), ClusterProcessor::invoke_remote_data(), CacheOpReplyMsg::is_ram_cache_hit, LOG_EVENT_TIME, MagicNo, magicno, CacheOpReplyMsg::moi, ClusterMachine::msg_proto_major, Continuation::mutex, nbytes, no_reply_message, OneWayTunnel::OneWayTunnel_alloc(), op_is_read(), ClusterVConnection::pending_remote_fill, CacheOpReplyMsg::protoToVersion(), read_cluster_vc, readahead_data, readahead_vio, ClusterVConnection::remote_closed, request_opcode, CacheOpReplyMsg::result, result, seq_number, CacheOpReplyMsg::seq_number, setupReadBufTunnel(), CacheOpReplyMsg::sizeof_fixedlen_msg(), start_time, token, CacheOpReplyMsg::token, ClusterVConnection::type, Alias32::u32, and write_cluster_vc.
Referenced by cache_op_ClusterFunction(), setupReadWriteVC(), setupVCdataRead(), and VCdataRead().
void CacheContinuation::setMsgBufferLen | ( | int | l, | |
IOBufferData * | b = 0 | |||
) | [inline] |
Definition at line 199 of file P_ClusterCacheInternal.h.
References ink_assert, rw_buf_msg, and rw_buf_msg_len.
Referenced by cache_op_ClusterFunction(), cache_op_result_ClusterFunction(), do_remote_lookup(), handleReplyEvent(), and setup_local_vc().
int CacheContinuation::setup_local_vc | ( | char * | data, | |
int | data_len, | |||
CacheContinuation * | cc, | |||
ClusterMachine * | mp, | |||
Action ** | act | |||
) | [static] |
Definition at line 630 of file ClusterCache.cc.
References action, allocMsgBuffer(), CACHE_EVENT_OPEN_READ_FAILED, CACHE_EVENT_OPEN_WRITE_FAILED, CACHE_OPEN_WRITE_LONG, callback_failure(), Action::cancel(), CacheOpMsg_long::channel, CacheOpMsg_short::channel, ClusterVConnection::channel, CLUSTER_DELAYED_OPEN, CLUSTER_OPT_ALLOW_IMMEDIATE, CLUSTER_OPT_CONN_READ, CLUSTER_OPT_CONN_WRITE, cluster_vc_channel, clusterProcessor, ClusterVConnection::current_cont, Debug, freeMsgBuffer(), getMsgBuffer(), ClusterVCToken::ip_created, localVCsetupEvent(), lookupOpenWriteVC(), memcpy, op_is_read(), op_is_shortform(), ClusterProcessor::open_local(), open_local_token, read_cluster_vc, remoteOpEvent(), request_opcode, CacheOpMsg_long::seq_number, CacheOpMsg_short::seq_number, seq_number, ClusterVCToken::sequence_number, SET_CONTINUATION_HANDLER, setMsgBufferLen(), timeout, CacheOpMsg_long::token, CacheOpMsg_short::token, and write_cluster_vc.
Referenced by do_op().
void CacheContinuation::setupReadBufTunnel | ( | VConnection * | cache_read_vc, | |
VConnection * | cluster_write_vc | |||
) |
Definition at line 1815 of file ClusterCache.cc.
References action, bytes_IOBufferBlockList(), cacheContAllocator_alloc(), IOBufferReader::consume(), OneWayTunnel::init(), Continuation::mutex, VIO::nbytes, VIO::ndone, OneWayTunnel::OneWayTunnel_alloc(), readahead_data, readahead_reader, readahead_vio, SET_CONTINUATION_HANDLER, tunnel, tunnel_closed, tunnel_cont, tunnel_mutex, and tunnelClosedEvent().
Referenced by replyOpEvent().
int CacheContinuation::setupReadWriteVC | ( | int | event, | |
VConnection * | vc | |||
) |
Definition at line 1581 of file ClusterCache.cc.
References a, ACTION_RESULT_DONE, cache_action, CACHE_EVENT_OPEN_READ, CACHE_EVENT_OPEN_READ_FAILED, CACHE_EVENT_OPEN_WRITE, CACHE_EVENT_OPEN_WRITE_FAILED, CACHE_FRAG_TYPE_HTTP, caches, CLUSTER_OPT_CONN_WRITE, frag_type, Continuation::handleEvent(), ic_hostname, ic_hostname_len, ink_assert, Cache::open_write(), pin_in_cache, read_cluster_vc, replyOpEvent(), request_purge, SET_HANDLER, ClusterVConnection::set_type(), setupVCdataRead(), url_md5, and write_cluster_vc.
Referenced by cache_op_ClusterFunction().
int CacheContinuation::setupVCdataRead | ( | int | event, | |
VConnection * | vc | |||
) |
Definition at line 1472 of file ClusterCache.cc.
References MIOBuffer::alloc_reader(), CACHE_EVENT_OPEN_READ, caller_buf_freebytes, Debug, VConnection::do_io_read(), Continuation::handleEvent(), ink_assert, ink_release_assert, iobuffer_size_to_index(), MagicNo, magicno, Continuation::mutex, MUTEX_TRY_LOCK, new_MIOBuffer, readahead_reader, readahead_vio, replyOpEvent(), seq_number, SET_HANDLER, this_ethread(), and VCdataRead().
Referenced by cache_op_ClusterFunction(), and setupReadWriteVC().
int CacheContinuation::tunnelClosedEvent | ( | int | event, | |
void * | c | |||
) |
Definition at line 1854 of file ClusterCache.cc.
References action, cacheContAllocator_free(), Action::continuation, ink_assert, ink_release_assert, MagicNo, magicno, OneWayTunnel::OneWayTunnel_free(), tunnel, tunnel_closed, and tunnel_cont.
Referenced by setupReadBufTunnel().
int CacheContinuation::VCdataRead | ( | int | event, | |
VIO * | target_vio | |||
) |
Definition at line 1503 of file ClusterCache.cc.
References VIO::buffer, cache_vc_info, caller_buf_freebytes, clone_IOBufferBlockList(), VIO::CLOSE, VConnection::do_io(), ECLUSTER_ORB_DATA_READ, free_MIOBuffer(), IOBufferReader::get_current_block(), getObjectSize(), Continuation::handleEvent(), have_all_data, ink_assert, ink_release_assert, MagicNo, magicno, VIO::ndone, readahead_data, readahead_reader, readahead_vio, replyOpEvent(), request_opcode, SET_HANDLER, IOBufferReader::start_offset, VC_EVENT_ACTIVE_TIMEOUT, VC_EVENT_EOS, VC_EVENT_ERROR, VC_EVENT_INACTIVITY_TIMEOUT, VC_EVENT_READ_COMPLETE, VC_EVENT_READ_READY, VIO::vc_server, and MIOBufferAccessor::writer().
Referenced by setupVCdataRead().
Definition at line 101 of file P_ClusterCacheInternal.h.
Referenced by cacheContAllocator_free(), callback_failure(), callback_user(), callbackEvent(), callbackResultEvent(), Cluster_lookup(), do_op(), do_remote_lookup(), handleDisposeEvent(), localVCsetupEvent(), lookupOpenWriteVC(), remoteOpEvent(), remove_and_delete(), setup_local_vc(), setupReadBufTunnel(), and tunnelClosedEvent().
Definition at line 159 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), and setupReadWriteVC().
Definition at line 174 of file P_ClusterCacheInternal.h.
Definition at line 109 of file P_ClusterCacheInternal.h.
Referenced by replyOpEvent().
Definition at line 108 of file P_ClusterCacheInternal.h.
Referenced by disposeOfDataBuffer(), and replyOpEvent().
Definition at line 154 of file P_ClusterCacheInternal.h.
Referenced by free(), replyOpEvent(), and VCdataRead().
Definition at line 97 of file P_ClusterCacheInternal.h.
Referenced by callbackResultEvent(), defer_callback_result(), insert_cache_callback_user(), and insertCallbackEvent().
Definition at line 98 of file P_ClusterCacheInternal.h.
Referenced by insert_cache_callback_user(), and insertCallbackEvent().
Definition at line 147 of file P_ClusterCacheInternal.h.
Referenced by init_from_long(), init_from_short(), setupVCdataRead(), and VCdataRead().
uint16_t CacheContinuation::cfl_flags |
Definition at line 114 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), init_from_long(), init_from_short(), and init_from_short_2().
Definition at line 107 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), do_op(), do_remote_lookup(), localVCsetupEvent(), lookupOpenWriteVC(), replyLookupEvent(), and replyOpEvent().
Definition at line 142 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), init_from_long(), init_from_short(), localVCsetupEvent(), replyOpEvent(), and setup_local_vc().
Definition at line 124 of file P_ClusterCacheInternal.h.
Referenced by replyOpEvent().
Definition at line 115 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), do_op(), do_remote_lookup(), init_from_long(), init_from_short(), init_from_short_2(), remoteOpEvent(), and setupReadWriteVC().
Definition at line 106 of file P_ClusterCacheInternal.h.
Referenced by cache_lookup_ClusterFunction(), do_op(), init_from_long(), init_from_short(), init_from_short_2(), lookupOpenWriteVC(), replyLookupEvent(), and replyOpEvent().
Definition at line 152 of file P_ClusterCacheInternal.h.
Referenced by disposeOfDataBuffer(), remoteOpEvent(), replyOpEvent(), and VCdataRead().
Definition at line 164 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), and free().
Definition at line 170 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), free(), and setupReadWriteVC().
Definition at line 171 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), and setupReadWriteVC().
Definition at line 169 of file P_ClusterCacheInternal.h.
Referenced by cache_op_result_ClusterFunction(), free(), handleReplyEvent(), and remoteOpEvent().
Definition at line 168 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), and free().
Definition at line 167 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), and free().
CacheHTTPHdr CacheContinuation::ic_request |
Definition at line 165 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), and free().
CacheHTTPHdr CacheContinuation::ic_response |
Definition at line 166 of file P_ClusterCacheInternal.h.
Referenced by free().
Definition at line 120 of file P_ClusterCacheInternal.h.
Definition at line 160 of file P_ClusterCacheInternal.h.
Referenced by lookupOpenWriteVC(), and lookupOpenWriteVCEvent().
Definition at line 96 of file P_ClusterCacheInternal.h.
Referenced by cacheContAllocator_free(), handleDisposeEvent(), localVCsetupEvent(), probeLookupEvent(), remoteOpEvent(), replyOpEvent(), setupVCdataRead(), tunnelClosedEvent(), and VCdataRead().
Definition at line 116 of file P_ClusterCacheInternal.h.
Referenced by init_from_long(), init_from_short(), and replyOpEvent().
Definition at line 121 of file P_ClusterCacheInternal.h.
Referenced by cache_lookup_ClusterFunction(), init_from_long(), init_from_short(), init_from_short_2(), replyLookupEvent(), and replyOpEvent().
Definition at line 143 of file P_ClusterCacheInternal.h.
Referenced by localVCsetupEvent(), lookupOpenWriteVC(), and setup_local_vc().
ClusterMachine* CacheContinuation::past_probes[CONFIGURATION_HISTORY_PROBE_DEPTH] |
Definition at line 104 of file P_ClusterCacheInternal.h.
Referenced by do_remote_lookup().
Definition at line 131 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), do_op(), init_from_long(), init_from_short(), and setupReadWriteVC().
Definition at line 103 of file P_ClusterCacheInternal.h.
Referenced by do_remote_lookup().
Definition at line 140 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), cache_op_result_ClusterFunction(), localVCsetupEvent(), remoteOpEvent(), replyOpEvent(), setup_local_vc(), and setupReadWriteVC().
Definition at line 151 of file P_ClusterCacheInternal.h.
Referenced by disposeOfDataBuffer(), free(), replyOpEvent(), setupReadBufTunnel(), and VCdataRead().
Definition at line 150 of file P_ClusterCacheInternal.h.
Referenced by setupReadBufTunnel(), setupVCdataRead(), and VCdataRead().
Definition at line 149 of file P_ClusterCacheInternal.h.
Referenced by disposeOfDataBuffer(), replyOpEvent(), setupReadBufTunnel(), setupVCdataRead(), and VCdataRead().
Definition at line 118 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), do_op(), handleDisposeEvent(), init_from_long(), init_from_short(), localVCsetupEvent(), remoteOpEvent(), replyOpEvent(), setup_local_vc(), and VCdataRead().
Definition at line 119 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), and setupReadWriteVC().
Definition at line 122 of file P_ClusterCacheInternal.h.
Referenced by remoteOpEvent().
Definition at line 110 of file P_ClusterCacheInternal.h.
Referenced by cache_op_result_ClusterFunction(), callback_failure(), callbackEvent(), callbackResultEvent(), defer_callback_result(), do_op(), do_remote_lookup(), insert_cache_callback_user(), insertCallbackEvent(), localVCsetupEvent(), remoteOpEvent(), remove_and_delete(), and replyOpEvent().
Definition at line 111 of file P_ClusterCacheInternal.h.
Referenced by cache_op_result_ClusterFunction(), callback_failure(), callbackEvent(), localVCsetupEvent(), remoteOpEvent(), and remove_and_delete().
Definition at line 135 of file P_ClusterCacheInternal.h.
Referenced by allocMsgBuffer(), freeMsgBuffer(), getMsgBuffer(), getMsgBufferIOBData(), and setMsgBufferLen().
Definition at line 136 of file P_ClusterCacheInternal.h.
Referenced by allocMsgBuffer(), freeMsgBuffer(), getMsgBufferLen(), and setMsgBufferLen().
unsigned int CacheContinuation::seq_number |
Definition at line 113 of file P_ClusterCacheInternal.h.
Referenced by cache_lookup_ClusterFunction(), cache_op_ClusterFunction(), cache_op_result_ClusterFunction(), do_op(), do_remote_lookup(), find_cache_continuation(), handleReplyEvent(), init_from_long(), init_from_short(), init_from_short_2(), localVCsetupEvent(), lookupOpenWriteVC(), remoteOpEvent(), remove_and_delete(), replyLookupEvent(), replyOpEvent(), setup_local_vc(), and setupVCdataRead().
Definition at line 105 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), cache_op_result_ClusterFunction(), cacheContAllocator_free(), do_op(), do_remote_lookup(), handleReplyEvent(), localVCsetupEvent(), remoteOpEvent(), replyLookupEvent(), and replyOpEvent().
unsigned int CacheContinuation::target_ip |
Definition at line 117 of file P_ClusterCacheInternal.h.
Referenced by cache_op_result_ClusterFunction(), do_op(), do_remote_lookup(), find_cache_continuation(), handleReplyEvent(), localVCsetupEvent(), remoteOpEvent(), and remove_and_delete().
Definition at line 102 of file P_ClusterCacheInternal.h.
Referenced by do_op(), and remoteOpEvent().
Definition at line 100 of file P_ClusterCacheInternal.h.
Referenced by do_op(), do_remote_lookup(), localVCsetupEvent(), remoteOpEvent(), remove_and_delete(), and setup_local_vc().
Definition at line 112 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), cache_op_result_ClusterFunction(), CacheContinuation(), free(), init_from_long(), init_from_short(), remoteOpEvent(), and replyOpEvent().
Definition at line 155 of file P_ClusterCacheInternal.h.
Referenced by handleDisposeEvent(), setupReadBufTunnel(), and tunnelClosedEvent().
Definition at line 158 of file P_ClusterCacheInternal.h.
Referenced by handleDisposeEvent(), setupReadBufTunnel(), and tunnelClosedEvent().
Definition at line 157 of file P_ClusterCacheInternal.h.
Referenced by handleDisposeEvent(), setupReadBufTunnel(), and tunnelClosedEvent().
Definition at line 156 of file P_ClusterCacheInternal.h.
Referenced by cacheContAllocator_free(), free(), handleDisposeEvent(), and setupReadBufTunnel().
Definition at line 99 of file P_ClusterCacheInternal.h.
Referenced by cache_lookup_ClusterFunction(), do_op(), do_remote_lookup(), init_from_long(), init_from_short(), init_from_short_2(), insert_cache_callback_user(), insertCallbackEvent(), remoteOpEvent(), and setupReadWriteVC().
Definition at line 127 of file P_ClusterCacheInternal.h.
Referenced by localVCsetupEvent(), and remove_and_delete().
Definition at line 141 of file P_ClusterCacheInternal.h.
Referenced by cache_op_ClusterFunction(), disposeOfDataBuffer(), localVCsetupEvent(), remoteOpEvent(), replyOpEvent(), setup_local_vc(), and setupReadWriteVC().