Data Structures | Typedefs | Functions | Variables

CongestionDB.h File Reference

A brief file description. More...

#include "P_EventSystem.h"
#include "MT_hashtable.h"
#include "ControlMatcher.h"
Include dependency graph for CongestionDB.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CongestRequestParam
class  CongestionDB

Typedefs

typedef MTHashTable< uint64_t,
CongestionEntry * > 
CongestionTable
typedef HashTableIteratorState
< uint64_t, CongestionEntry * > 
Iter

Functions

Actionget_congest_entry (Continuation *cont, HttpRequestData *data, CongestionEntry **ppEntry)
Actionget_congest_list (Continuation *cont, MIOBuffer *buffer, int format=0)
void remove_all_congested_entry (void)
void remove_congested_entry (uint64_t key)
void remove_congested_entry (char *buf, MIOBuffer *out_buffer)
void revalidateCongestionDB ()
void initCongestionDB ()

Variables

CongestionDBtheCongestionDB

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


Typedef Documentation

Definition at line 44 of file CongestionDB.h.

Definition at line 47 of file CongestionDB.h.


Function Documentation

Action* get_congest_entry ( Continuation cont,
HttpRequestData data,
CongestionEntry **  ppEntry 
)
Action* get_congest_list ( Continuation cont,
MIOBuffer buffer,
int  format = 0 
)
void initCongestionDB (  ) 

Definition at line 434 of file CongestionDB.cc.

References CONGESTION_DB_SIZE, and MT_HASHTABLE_PARTITIONS.

void remove_all_congested_entry ( void   ) 

Definition at line 565 of file CongestionDB.cc.

References CongestionDB::removeAllRecords().

void remove_congested_entry ( uint64_t  key  ) 

Definition at line 573 of file CongestionDB.cc.

References CongestionDB::removeRecord().

void remove_congested_entry ( char *  buf,
MIOBuffer out_buffer 
)
void revalidateCongestionDB (  ) 

Variable Documentation

Definition at line 41 of file CongestionDB.cc.