Functions | Variables

P_RecCore.h File Reference

Private record core declarations. More...

#include "ink_thread.h"
#include "ink_hash_table.h"
#include "ink_llqueue.h"
#include "ink_rwlock.h"
#include "TextBuffer.h"
#include "I_RecCore.h"
#include "P_RecDefs.h"
#include "P_RecTree.h"
Include dependency graph for P_RecCore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int RecCoreInit (RecModeT mode_type, Diags *diags)
RecRecordRecRegisterStat (RecT rec_type, const char *name, RecDataT data_type, RecData data_default, RecPersistT persist_type)
RecRecordRecRegisterConfig (RecT rec_type, const char *name, RecDataT data_type, RecData data_default, RecUpdateT update_type, RecCheckT check_type, const char *check_regex, RecAccessT access_type=RECA_NULL)
RecRecordRecForceInsert (RecRecord *record)
int RecSetRecord (RecT rec_type, const char *name, RecDataT data_type, RecData *data, RecRawStat *raw_stat, bool lock=true, bool inc_version=true)
int RecGetRecord_Xmalloc (const char *name, RecDataT data_type, RecData *data, bool lock=true)
int RecReadStatsFile ()
int RecSyncStatsFile ()
int RecReadConfigFile (bool inc_version)
int RecWriteConfigFile (textBuffer *tb)
int RecSyncConfigToTB (textBuffer *tb, bool *inc_version=NULL)
bool i_am_the_record_owner (RecT rec_type)
int send_push_message ()
int send_pull_message (RecMessageT msg_type)
int send_register_message (RecRecord *record)
int recv_message_cb (RecMessage *msg, RecMessageT msg_type, void *cookie)
int RecExecConfigUpdateCbs (unsigned int update_required_type)
int RecExecStatUpdateFuncs ()
int RecExecRawStatUpdateFuncs ()
void RecDumpRecordsHt (RecT rec_type=RECT_NULL)
void RecDumpRecords (RecT rec_type, RecDumpEntryCb callback, void *edata)

Variables

RecRecordg_records
InkHashTableg_records_ht
ink_rwlock g_records_rwlock
int g_num_records
RecModeT g_mode_type
RecTreeg_records_tree
const char * g_rec_config_fpath
LLQg_rec_config_contents_llq
InkHashTableg_rec_config_contents_ht
ink_mutex g_rec_config_lock

Detailed Description

Private record core declarations.

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


Function Documentation

bool i_am_the_record_owner ( RecT  rec_type  ) 
int RecCoreInit ( RecModeT  mode_type,
Diags diags 
)
void RecDumpRecords ( RecT  rec_type,
RecDumpEntryCb  callback,
void *  edata 
)
void RecDumpRecordsHt ( RecT  rec_type = RECT_NULL  ) 

Definition at line 918 of file RecCore.cc.

References debug_record_callback(), DL_Note, RecDebug(), and RecDumpRecords().

int RecExecConfigUpdateCbs ( unsigned int  update_required_type  ) 
int RecExecRawStatUpdateFuncs (  ) 
int RecExecStatUpdateFuncs (  ) 
RecRecord* RecForceInsert ( RecRecord record  ) 
int RecGetRecord_Xmalloc ( const char *  name,
RecDataT  data_type,
RecData data,
bool  lock = true 
)
int RecReadConfigFile ( bool  inc_version  ) 
int RecReadStatsFile (  ) 
RecRecord* RecRegisterConfig ( RecT  rec_type,
const char *  name,
RecDataT  data_type,
RecData  data_default,
RecUpdateT  update_type,
RecCheckT  check_type,
const char *  check_regex,
RecAccessT  access_type = RECA_NULL 
)
RecRecord* RecRegisterStat ( RecT  rec_type,
const char *  name,
RecDataT  data_type,
RecData  data_default,
RecPersistT  persist_type 
)
int RecSetRecord ( RecT  rec_type,
const char *  name,
RecDataT  data_type,
RecData data,
RecRawStat raw_stat,
bool  lock = true,
bool  inc_version = true 
)
int RecSyncConfigToTB ( textBuffer tb,
bool *  inc_version = NULL 
)
int RecSyncStatsFile (  ) 
int recv_message_cb ( RecMessage msg,
RecMessageT  msg_type,
void *  cookie 
)
int RecWriteConfigFile ( textBuffer tb  ) 
int send_pull_message ( RecMessageT  msg_type  ) 
int send_push_message (  ) 
int send_register_message ( RecRecord record  ) 

Variable Documentation

Definition at line 37 of file RecConfigParse.cc.

Referenced by RecConfigFileInit(), RecConfigFileParse(), and RecSyncConfigToTB().

Definition at line 36 of file RecConfigParse.cc.

Referenced by RecSyncConfigToTB().

const char* g_rec_config_fpath

Definition at line 35 of file RecConfigParse.cc.

Referenced by RecCoreInit(), RecReadConfigFile(), and RecWriteConfigFile().

Definition at line 39 of file RecCore.cc.

Referenced by RecAlloc().