Record local definitions. More...
#include "libts.h"
#include "Rollback.h"
#include "ParseRules.h"
#include "P_RecCore.h"
#include "P_RecLocal.h"
#include "P_RecMessage.h"
#include "P_RecUtils.h"
#include "P_RecFile.h"
#include "LocalManager.h"
#include "FileManager.h"
Go to the source code of this file.
Functions | |
bool | i_am_the_record_owner (RecT rec_type) |
static void * | sync_thr (void *data) |
static void * | config_update_thr (void *) |
void | RecMessageInit () |
int | RecLocalInit (Diags *_diags) |
int | RecLocalInitMessage () |
int | RecLocalStart (FileManager *configFiles) |
int | RecRegisterManagerCb (int id, RecManagerCb _fn, void *_data) |
void | RecSignalManager (int id, const char *, size_t) |
int | RecMessageSend (RecMessage *msg) |
Variables | |
static bool | message_initialized_p = false |
Record local definitions.
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 RecLocal.cc.
static void* config_update_thr | ( | void * | ) | [static] |
Definition at line 107 of file RecLocal.cc.
References REC_CONFIG_UPDATE_INTERVAL_MS, REC_LOCAL_UPDATE_REQUIRED, and RecExecConfigUpdateCbs().
Referenced by RecLocalStart().
bool i_am_the_record_owner | ( | RecT | rec_type | ) |
Definition at line 42 of file RecLocal.cc.
References ink_assert, RECT_CLUSTER, RECT_CONFIG, RECT_LOCAL, RECT_NODE, RECT_PLUGIN, and RECT_PROCESS.
int RecLocalInit | ( | Diags * | _diags | ) |
Definition at line 132 of file RecLocal.cc.
References g_mode_type, REC_ERR_FAIL, RecCoreInit(), and RECM_SERVER.
int RecLocalInitMessage | ( | ) |
Definition at line 165 of file RecLocal.cc.
References RecMessageInit(), RecMessageRegisterRecvCb(), and recv_message_cb().
int RecLocalStart | ( | FileManager * | configFiles | ) |
Definition at line 187 of file RecLocal.cc.
References config_update_thr(), ink_thread_create(), and sync_thr().
void RecMessageInit | ( | ) |
Definition at line 121 of file RecLocal.cc.
References g_mode_type, ink_assert, message_initialized_p, RECM_NULL, and RecMessageRecvThis().
Referenced by RecLocalInitMessage(), and RecProcessInitMessage().
int RecMessageSend | ( | RecMessage * | msg | ) |
Definition at line 214 of file RecLocal.cc.
References g_mode_type, message_initialized_p, RecMessageHdr::o_end, RecMessageHdr::o_start, RecMessageHdr::o_write, RECM_CLIENT, and RECM_SERVER.
int RecRegisterManagerCb | ( | int | id, | |
RecManagerCb | _fn, | |||
void * | _data | |||
) |
Definition at line 196 of file RecLocal.cc.
void RecSignalManager | ( | int | id, | |
const char * | , | |||
size_t | ||||
) |
Definition at line 202 of file RecLocal.cc.
References DL_Debug, and RecDebug().
static void* sync_thr | ( | void * | data | ) | [static] |
Definition at line 63 of file RecLocal.cc.
References DL_Note, REC_CONFIG_FILE, REC_ERR_OKAY, REC_REMOTE_SYNC_INTERVAL_MS, RecDebug(), RecSyncConfigToTB(), RecSyncStatsFile(), RecWriteConfigFile(), and send_push_message().
Referenced by RecLocalStart().
bool message_initialized_p = false [static] |
Definition at line 36 of file RecLocal.cc.
Referenced by RecMessageInit(), and RecMessageSend().