src/store.cc File Reference

#include "squid.h"
#include "event.h"
#include "fde.h"
#include "Store.h"
#include "CacheManager.h"
#include "StoreClient.h"
#include "stmem.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "MemObject.h"
#include "mem_node.h"
#include "StoreMeta.h"
#include "SwapDir.h"
#include "DelayPools.h"
#include "Stack.h"
#include "SquidTime.h"
#include "swap_log_op.h"
#include "comm.h"
#include "Store.cci"
Include dependency graph for store.cc:

Go to the source code of this file.

Classes

struct  _storerepl_entry
struct  _store_check_cachable_hist

Defines

#define REBUILD_TIMESTAMP_DELTA_MAX   2
#define STORE_IN_MEM_BUCKETS   (229)
#define MAINTAIN_MAX_SCAN   1024
#define MAINTAIN_MAX_REMOVE   64

Typedefs

typedef struct _storerepl_entry storerepl_entry_t

Functions

static int getKeyCounter (void)
void destroyStoreEntry (void *data)
StoreEntrystoreGetPublic (const char *uri, const HttpRequestMethod &method)
StoreEntrystoreGetPublicByRequestMethod (HttpRequest *req, const HttpRequestMethod &method)
StoreEntrystoreGetPublicByRequest (HttpRequest *req)
StoreEntrystoreCreateEntry (const char *url, const char *log_url, request_flags flags, const HttpRequestMethod &method)
void storeWriteComplete (void *data, StoreIOBuffer wroteBuffer)
void storeAppendPrintf (StoreEntry *e, const char *fmt,...)
void storeAppendVPrintf (StoreEntry *e, const char *fmt, va_list vargs)
int storeTooManyDiskFilesOpen (void)
void storeCheckCachableStats (StoreEntry *sentry)
void storeGetMemSpace (int size)
static void storeLateRelease (void *unused)
static void storeRegisterWithCacheManager (void)
void storeInit (void)
void storeConfigure (void)
void storeFreeMemory (void)
int expiresMoreThan (time_t expires, time_t when)
void storeFsInit (void)
void storeReplAdd (const char *type, REMOVALPOLICYCREATE *create)
RemovalPolicycreateRemovalPolicy (RemovalPolicySettings *settings)

Variables

static STMCB storeWriteComplete
const char * memStatusStr []
const char * pingStatusStr []
const char * storeStatusStr []
const char * swapStatusStr []
OBJH storeIOStats
static storerepl_entry_tstorerepl_list = NULL
static OBJH storeCheckCachableStats
static EVH storeLateRelease
static Stack< StoreEntry * > LateReleaseStack
struct _store_check_cachable_hist store_check_cachable_hist

Define Documentation

#define MAINTAIN_MAX_REMOVE   64

Definition at line 1191 of file store.cc.

#define MAINTAIN_MAX_SCAN   1024

Definition at line 1190 of file store.cc.

#define REBUILD_TIMESTAMP_DELTA_MAX   2

Definition at line 58 of file store.cc.

#define STORE_IN_MEM_BUCKETS   (229)

Definition at line 60 of file store.cc.


Typedef Documentation

Definition at line 94 of file store.cc.


Function Documentation

void destroyStoreEntry ( void *  data  ) 
static int getKeyCounter ( void   )  [static]

Definition at line 588 of file store.cc.

Referenced by StoreEntry::setPrivateKey().

static void storeLateRelease ( void *  unused  )  [static]
static void storeRegisterWithCacheManager ( void   )  [static]
void storeWriteComplete ( void *  data,
StoreIOBuffer  wroteBuffer 
)

Variable Documentation

Definition at line 114 of file store.cc.

const char* memStatusStr[]
Initial value:
 {
    "NOT_IN_MEMORY",
    "IN_MEMORY"
}
Todo:
Convert these string constants to enum string-arrays generated

Definition at line 65 of file store.cc.

Referenced by describeStatuses().

const char* pingStatusStr[]
Initial value:
 {
    "PING_NONE",
    "PING_WAITING",
    "PING_DONE"
}

Definition at line 70 of file store.cc.

Referenced by describeStatuses().

OBJH storeCheckCachableStats [static]

Definition at line 108 of file store.cc.

Referenced by storeRegisterWithCacheManager().

OBJH storeIOStats

Definition at line 16 of file store_io.cc.

Referenced by storeRegisterWithCacheManager().

EVH storeLateRelease [static]

Definition at line 109 of file store.cc.

Referenced by storeInit(), and storeLateRelease().

Definition at line 101 of file store.cc.

const char* storeStatusStr[]
Initial value:
 {
    "STORE_OK",
    "STORE_PENDING"
}

Definition at line 76 of file store.cc.

Referenced by describeStatuses(), and StoreEntry::swapoutPossible().

STMCB storeWriteComplete [static]

Definition at line 56 of file store.cc.

Referenced by storeWriteComplete(), and StoreEntry::write().

const char* swapStatusStr[]
Initial value:
 {
    "SWAPOUT_NONE",
    "SWAPOUT_WRITING",
    "SWAPOUT_DONE"
}

Definition at line 81 of file store.cc.

Referenced by describeStatuses(), and storeSwapInStart().

Search

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors