Data Structures | Defines | Typedefs | Variables

I_Event.h File Reference

A brief file description. More...

#include "libts.h"
#include "I_Action.h"
Include dependency graph for I_Event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Event
 A type of Action returned by the EventProcessor. More...

Defines

#define MAX_EVENTS_PER_THREAD   100000
#define EVENT_NONE   CONTINUATION_EVENT_NONE
#define EVENT_IMMEDIATE   1
#define EVENT_INTERVAL   2
#define EVENT_ERROR   3
#define EVENT_CALL   4
#define EVENT_POLL   5
#define EVENT_DONE   CONTINUATION_DONE
#define EVENT_CONT   CONTINUATION_CONT
#define EVENT_RETURN   5
#define EVENT_RESTART   6
#define EVENT_RESTART_DELAYED   7
#define VC_EVENT_EVENTS_START   100
#define NET_EVENT_EVENTS_START   200
#define DISK_EVENT_EVENTS_START   300
#define CLUSTER_EVENT_EVENTS_START   400
#define HOSTDB_EVENT_EVENTS_START   500
#define DNS_EVENT_EVENTS_START   600
#define CONFIG_EVENT_EVENTS_START   800
#define LOG_EVENT_EVENTS_START   900
#define MULTI_CACHE_EVENT_EVENTS_START   1000
#define CACHE_EVENT_EVENTS_START   1100
#define CACHE_DIRECTORY_EVENT_EVENTS_START   1200
#define CACHE_DB_EVENT_EVENTS_START   1300
#define HTTP_NET_CONNECTION_EVENT_EVENTS_START   1400
#define HTTP_NET_VCONNECTION_EVENT_EVENTS_START   1500
#define GC_EVENT_EVENTS_START   1600
#define ICP_EVENT_EVENTS_START   1800
#define TRANSFORM_EVENTS_START   2000
#define STAT_PAGES_EVENTS_START   2100
#define HTTP_SESSION_EVENTS_START   2200
#define HTTP2_SESSION_EVENTS_START   2250
#define HTTP_TUNNEL_EVENTS_START   2300
#define HTTP_SCH_UPDATE_EVENTS_START   2400
#define NT_ASYNC_CONNECT_EVENT_EVENTS_START   3000
#define NT_ASYNC_IO_EVENT_EVENTS_START   3100
#define RAFT_EVENT_EVENTS_START   3200
#define SIMPLE_EVENT_EVENTS_START   3300
#define UPDATE_EVENT_EVENTS_START   3500
#define LOG_COLLATION_EVENT_EVENTS_START   3800
#define AIO_EVENT_EVENTS_START   3900
#define BLOCK_CACHE_EVENT_EVENTS_START   4000
#define UTILS_EVENT_EVENTS_START   5000
#define CONGESTION_EVENT_EVENTS_START   5100
#define INK_API_EVENT_EVENTS_START   60000
#define SRV_EVENT_EVENTS_START   62000
#define REMAP_EVENT_EVENTS_START   63000
#define ONE_WAY_TUNNEL_EVENT_PEER_CLOSE   (SIMPLE_EVENT_EVENTS_START+1)
#define PREFETCH_EVENT_SEND_URL   (SIMPLE_EVENT_EVENTS_START+2)
#define EVENT_ALLOC(_a, _t)   THREAD_ALLOC(_a, _t)
#define EVENT_FREE(_p, _a, _t)

Typedefs

typedef int EventType

Variables

const int ET_CALL = 0
const int MAX_EVENT_TYPES = 8
ClassAllocator< EventeventAllocator

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


Define Documentation

#define AIO_EVENT_EVENTS_START   3900

Definition at line 85 of file I_Event.h.

#define BLOCK_CACHE_EVENT_EVENTS_START   4000

Definition at line 86 of file I_Event.h.

#define CACHE_DB_EVENT_EVENTS_START   1300

Definition at line 68 of file I_Event.h.

#define CACHE_DIRECTORY_EVENT_EVENTS_START   1200

Definition at line 67 of file I_Event.h.

#define CACHE_EVENT_EVENTS_START   1100

Definition at line 66 of file I_Event.h.

#define CLUSTER_EVENT_EVENTS_START   400

Definition at line 60 of file I_Event.h.

#define CONFIG_EVENT_EVENTS_START   800

Definition at line 63 of file I_Event.h.

#define CONGESTION_EVENT_EVENTS_START   5100

Definition at line 88 of file I_Event.h.

#define DISK_EVENT_EVENTS_START   300

Definition at line 59 of file I_Event.h.

#define DNS_EVENT_EVENTS_START   600

Definition at line 62 of file I_Event.h.

Referenced by event_int_to_string().

#define EVENT_ALLOC (   _a,
  _t 
)    THREAD_ALLOC(_a, _t)
#define EVENT_CALL   4
#define EVENT_CONT   CONTINUATION_CONT
#define EVENT_DONE   CONTINUATION_DONE
#define EVENT_ERROR   3
#define EVENT_FREE (   _p,
  _a,
  _t 
)
Value:
_p->mutex = NULL;              \
  if (_p->globally_allocated)    \
    ::_a.free(_p);               \
  else                           \
    THREAD_FREE(_p, _a, _t)

Definition at line 279 of file I_Event.h.

Referenced by PriorityEventQueue::check_ready(), and EThread::free_event().

#define EVENT_IMMEDIATE   1

Definition at line 40 of file I_Event.h.

Referenced by Vol::aggWriteDone(), PluginVCCore::attempt_delete(), PrefetchBlaster::blastObject(), PrefetchBlaster::bufferObject(), CacheVC::callcont(), InactivityCop::check_inactivity(), UpdateScheduler::ChildExitEventHandler(), CacheDisk::clearDone(), ClusterAccept::ClusterAcceptEvent(), PluginVCCore::connect(), PluginVCCore::connect_re(), ClusterHandler::connectClusterEvent(), DNSEntry::delayEvent(), ICPPeriodicCont::DoReconfigAction(), CacheTestSM::event_handler(), EThread::execute(), RecursiveHttpGet::ExitEventHandler(), DNSProcessor::getby(), Vol::handle_dir_clear(), TransformControl::handle_event(), INKContInternal::handle_event_count(), Vol::handle_recover_from_data(), Vol::handle_recover_write_dir(), HttpPagesHandler::handle_smdetails(), HttpPagesHandler::handle_smlist(), PrefetchBlaster::handleEvent(), BlasterUrlList::handleEvent(), UpdateSM::HandleSMEvent(), PrefetchBlaster::httpClient(), ICPPeerReadCont::ICPPeerReadEvent(), ICPRequestCont::ICPRequestEvent(), ObjectReloadCont::Init(), UpdateConfigManager::init(), APIHook::invoke(), ClusterState::IOComplete(), CacheContinuation::lookupOpenWriteVCEvent(), PluginVC::main_handler(), UnixNetVConnection::mainEvent(), DNSEntry::mainEvent(), CacheSync::mainEvent(), Cache::open_read(), Cache::open_write(), CacheVC::openReadFromWriter(), CacheVC::openReadReadDone(), CacheVC::openReadStartHead(), CacheDisk::openStart(), CacheVC::openWriteCloseHead(), CacheVC::openWriteOverwrite(), CacheVC::openWriteStartBegin(), UpdateConfigManager::ProcessUpdate(), Vol::recover_data(), RecursiveHttpGet::RecursiveHttpGetEvent(), Cache::remove(), HostDBContinuation::remove_trigger_pending_dns(), RemapPlugins::run_remap(), CacheVC::scanOpenWrite(), CacheVC::scanRemoveDone(), CacheVC::scanUpdateDone(), UpdateScheduler::ScheduleEvent(), OpenDir::signal_readers(), ClusterHandler::startClusterEvent(), and TSActionCancel().

#define EVENT_INTERVAL   2

Definition at line 41 of file I_Event.h.

Referenced by ClusterHandler::beginClusterEvent(), PrefetchBlaster::bufferObject(), UpdateScheduler::ChildExitEventHandler(), ClusterAccept::ClusterAcceptEvent(), HostDBContinuation::clusterEvent(), ClusterHandler::connectClusterEvent(), HostDBContinuation::dnsEvent(), HostDBContinuation::dnsPendingEvent(), ICPPeriodicCont::DoReconfigAction(), CacheTestSM::event_handler(), RecursiveHttpGet::ExitEventHandler(), HttpDebugNames::get_event_name(), INKContInternal::handle_event_count(), HttpPagesHandler::handle_smdetails(), HttpPagesHandler::handle_smlist(), KeepAliveLockHandler::handleEvent(), PrefetchBlaster::handleEvent(), BlasterUrlList::handleEvent(), ICPPeerReadCont::ICPPeerReadEvent(), ICPRequestCont::ICPRequestEvent(), ClusterAccept::Init(), APIHook::invoke(), PrefetchBlaster::invokeBlaster(), CacheContinuation::localVCsetupEvent(), Cache::lookup(), PluginVC::main_handler(), ClusterHandler::mainClusterEvent(), UnixNetVConnection::mainEvent(), SocksProxy::mainEvent(), SocksEntry::mainEvent(), HostDBTestRR::mainEvent(), DNSEntry::mainEvent(), CacheSync::mainEvent(), NetHandler::mainNetEvent(), ICPHandlerCont::PeriodicEvent(), UpdateConfigManager::ProcessUpdate(), ClusterHandler::protoZombieEvent(), CacheContinuation::remoteOpEvent(), UpdateScheduler::ScheduleEvent(), ClusterHandler::startClusterEvent(), HttpSM::state_add_to_list(), HttpSM::state_api_callout(), HttpSM::state_http_server_open(), HttpSM::state_raw_http_server_open(), and HttpSM::state_remove_from_list().

#define EVENT_NONE   CONTINUATION_EVENT_NONE
#define EVENT_POLL   5
#define EVENT_RESTART   6

Definition at line 51 of file I_Event.h.

#define EVENT_RESTART_DELAYED   7

Definition at line 52 of file I_Event.h.

#define EVENT_RETURN   5
#define GC_EVENT_EVENTS_START   1600

Definition at line 71 of file I_Event.h.

#define HOSTDB_EVENT_EVENTS_START   500

Definition at line 61 of file I_Event.h.

#define HTTP2_SESSION_EVENTS_START   2250

Definition at line 76 of file I_Event.h.

#define HTTP_NET_CONNECTION_EVENT_EVENTS_START   1400

Definition at line 69 of file I_Event.h.

#define HTTP_NET_VCONNECTION_EVENT_EVENTS_START   1500

Definition at line 70 of file I_Event.h.

#define HTTP_SCH_UPDATE_EVENTS_START   2400

Definition at line 78 of file I_Event.h.

#define HTTP_SESSION_EVENTS_START   2200

Definition at line 75 of file I_Event.h.

#define HTTP_TUNNEL_EVENTS_START   2300

Definition at line 77 of file I_Event.h.

#define ICP_EVENT_EVENTS_START   1800

Definition at line 72 of file I_Event.h.

#define INK_API_EVENT_EVENTS_START   60000

Definition at line 89 of file I_Event.h.

#define LOG_COLLATION_EVENT_EVENTS_START   3800

Definition at line 84 of file I_Event.h.

#define LOG_EVENT_EVENTS_START   900

Definition at line 64 of file I_Event.h.

#define MAX_EVENTS_PER_THREAD   100000

Definition at line 35 of file I_Event.h.

#define MULTI_CACHE_EVENT_EVENTS_START   1000

Definition at line 65 of file I_Event.h.

#define NET_EVENT_EVENTS_START   200

Definition at line 58 of file I_Event.h.

#define NT_ASYNC_CONNECT_EVENT_EVENTS_START   3000

Definition at line 79 of file I_Event.h.

#define NT_ASYNC_IO_EVENT_EVENTS_START   3100

Definition at line 80 of file I_Event.h.

#define ONE_WAY_TUNNEL_EVENT_PEER_CLOSE   (SIMPLE_EVENT_EVENTS_START+1)

Definition at line 94 of file I_Event.h.

Referenced by OneWayTunnel::startEvent().

#define PREFETCH_EVENT_SEND_URL   (SIMPLE_EVENT_EVENTS_START+2)

Definition at line 95 of file I_Event.h.

Referenced by PrefetchBlaster::handleEvent(), and BlasterUrlList::handleEvent().

#define RAFT_EVENT_EVENTS_START   3200

Definition at line 81 of file I_Event.h.

#define REMAP_EVENT_EVENTS_START   63000

Definition at line 91 of file I_Event.h.

#define SIMPLE_EVENT_EVENTS_START   3300

Definition at line 82 of file I_Event.h.

Referenced by PrefetchUrlBlaster::init(), and PrefetchUrlBlaster::udpUrlBlaster().

#define SRV_EVENT_EVENTS_START   62000

Definition at line 90 of file I_Event.h.

#define STAT_PAGES_EVENTS_START   2100

Definition at line 74 of file I_Event.h.

#define TRANSFORM_EVENTS_START   2000

Definition at line 73 of file I_Event.h.

#define UPDATE_EVENT_EVENTS_START   3500

Definition at line 83 of file I_Event.h.

#define UTILS_EVENT_EVENTS_START   5000

Definition at line 87 of file I_Event.h.

#define VC_EVENT_EVENTS_START   100

Definition at line 57 of file I_Event.h.

Referenced by HttpSM::main_handler().


Typedef Documentation

typedef int EventType

Definition at line 97 of file I_Event.h.


Variable Documentation

const int ET_CALL = 0
const int MAX_EVENT_TYPES = 8