Data Structures | Defines | Typedefs | Enumerations

P_RecDefs.h File Reference

Private record declarations. More...

#include "I_RecDefs.h"
Include dependency graph for P_RecDefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RecConfigFileEntry
struct  RecConfigCbList_t
struct  RecStatUpdateFuncList_t
struct  RecStatMeta
struct  RecConfigMeta
struct  RecRecord
struct  RecRecords
struct  RecMessageHdr
struct  RecMessageEleHdr
struct  RecMessageItr

Defines

#define REC_CONFIG_FILE   "records.config"
#define REC_SHADOW_EXT   ".shadow"
#define REC_RAW_STATS_FILE   "records.snap"
#define REC_PIPE_NAME   "librecords_pipe"
#define REC_MESSAGE_ELE_MAGIC   0xF00DF00D
#define REC_MAX_RECORDS   (2000 + TS_MAX_API_STATS)
#define REC_CONFIG_UPDATE_INTERVAL_MS   3000
#define REC_REMOTE_SYNC_INTERVAL_MS   5000
#define REC_RAW_STAT_SYNC_INTERVAL_MS   5000
#define REC_STAT_UPDATE_INTERVAL_MS   10000
#define REC_LOCAL_UPDATE_REQUIRED   1
#define REC_PROCESS_UPDATE_REQUIRED   (REC_LOCAL_UPDATE_REQUIRED << 1)
#define REC_UPDATE_REQUIRED   (REC_LOCAL_UPDATE_REQUIRED | REC_PROCESS_UPDATE_REQUIRED)
#define REC_DISK_SYNC_REQUIRED   1
#define REC_PEER_SYNC_REQUIRED   (REC_DISK_SYNC_REQUIRED << 1)
#define REC_INC_CONFIG_VERSION   (REC_PEER_SYNC_REQUIRED << 1)
#define REC_SYNC_REQUIRED   (REC_DISK_SYNC_REQUIRED | REC_PEER_SYNC_REQUIRED)

Typedefs

typedef struct RecConfigCbList_t RecConfigUpdateCbList
typedef struct
RecStatUpdateFuncList_t 
RecStatUpdateFuncList
typedef RecMessageHdr RecMessage
typedef void(* RecDumpEntryCb )(RecT rec_type, void *edata, int registered, const char *name, int data_type, RecData *datum)
typedef int(* RecMessageRecvCb )(RecMessage *msg, RecMessageT msg_type, void *cookie)

Enumerations

enum  RecEntryT { RECE_NULL, RECE_COMMENT, RECE_RECORD }
enum  RecMessageT {
  RECG_NULL, RECG_SET, RECG_REGISTER, RECG_PUSH,
  RECG_PULL_REQ, RECG_PULL_ACK, RECG_RESET
}

Detailed Description

Private record 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_RecDefs.h.


Define Documentation

#define REC_CONFIG_FILE   "records.config"

Definition at line 29 of file P_RecDefs.h.

Referenced by RecCoreInit(), and sync_thr().

#define REC_CONFIG_UPDATE_INTERVAL_MS   3000

Definition at line 41 of file P_RecDefs.h.

Referenced by config_update_thr().

#define REC_DISK_SYNC_REQUIRED   1

Definition at line 55 of file P_RecDefs.h.

Referenced by RecSyncConfigToTB().

#define REC_INC_CONFIG_VERSION   (REC_PEER_SYNC_REQUIRED << 1)

Definition at line 57 of file P_RecDefs.h.

Referenced by RecSyncConfigToTB().

#define REC_LOCAL_UPDATE_REQUIRED   1

Definition at line 51 of file P_RecDefs.h.

Referenced by config_update_thr().

#define REC_MAX_RECORDS   (2000 + TS_MAX_API_STATS)

Definition at line 39 of file P_RecDefs.h.

Referenced by RecAlloc(), and RecCoreInit().

#define REC_MESSAGE_ELE_MAGIC   0xF00DF00D

Definition at line 34 of file P_RecDefs.h.

Referenced by RecMessageUnmarshalNext().

#define REC_PEER_SYNC_REQUIRED   (REC_DISK_SYNC_REQUIRED << 1)

Definition at line 56 of file P_RecDefs.h.

Referenced by send_push_message().

#define REC_PIPE_NAME   "librecords_pipe"

Definition at line 32 of file P_RecDefs.h.

#define REC_PROCESS_UPDATE_REQUIRED   (REC_LOCAL_UPDATE_REQUIRED << 1)

Definition at line 52 of file P_RecDefs.h.

Referenced by config_update_cont::exec_callbacks().

#define REC_RAW_STAT_SYNC_INTERVAL_MS   5000

Definition at line 44 of file P_RecDefs.h.

#define REC_RAW_STATS_FILE   "records.snap"

Definition at line 31 of file P_RecDefs.h.

Referenced by RecConfigReadPersistentStatsPath().

#define REC_REMOTE_SYNC_INTERVAL_MS   5000

Definition at line 42 of file P_RecDefs.h.

Referenced by sync_thr().

#define REC_SHADOW_EXT   ".shadow"

Definition at line 30 of file P_RecDefs.h.

Referenced by RecCoreInit().

#define REC_STAT_UPDATE_INTERVAL_MS   10000

Definition at line 45 of file P_RecDefs.h.

#define REC_SYNC_REQUIRED   (REC_DISK_SYNC_REQUIRED | REC_PEER_SYNC_REQUIRED)

Definition at line 58 of file P_RecDefs.h.

#define REC_UPDATE_REQUIRED   (REC_LOCAL_UPDATE_REQUIRED | REC_PROCESS_UPDATE_REQUIRED)

Definition at line 53 of file P_RecDefs.h.


Typedef Documentation

typedef void(* RecDumpEntryCb)(RecT rec_type, void *edata, int registered, const char *name, int data_type, RecData *datum)

Definition at line 175 of file P_RecDefs.h.

Definition at line 173 of file P_RecDefs.h.

typedef int(* RecMessageRecvCb)(RecMessage *msg, RecMessageT msg_type, void *cookie)

Definition at line 177 of file P_RecDefs.h.


Enumeration Type Documentation

enum RecEntryT
Enumerator:
RECE_NULL 
RECE_COMMENT 
RECE_RECORD 

Definition at line 60 of file P_RecDefs.h.

Enumerator:
RECG_NULL 
RECG_SET 
RECG_REGISTER 
RECG_PUSH 
RECG_PULL_REQ 
RECG_PULL_ACK 
RECG_RESET 

Definition at line 140 of file P_RecDefs.h.