1
/* Copyright (c) 2010 PrimeBase Technologies GmbH, Germany
3
* PrimeBase Media Stream for MySQL
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
* PBMS daemon global parameters.
27
#ifndef __PARAMETERS_MS_H__
28
#define __PARAMETERS_MS_H__
30
class PBMSParameters {
32
static void startUp();
34
static void shutDown(){}
36
static uint32_t getPortNumber();
38
static uint32_t getServerID();
40
static uint64_t getRepoThreshold();
42
static uint64_t getTempLogThreshold();
44
static uint32_t getTempBlobTimeout();
46
static uint32_t getGarbageThreshold();
48
static uint32_t getMaxKeepAlive();
50
static uint32_t getBackupDatabaseID();
51
static void setBackupDatabaseID(uint32_t id);
53
static const char *getDefaultMetaDataHeaders();
56
static void blackListedDB(const char *db);
58
static bool isBlackListedDB(const char *db);
60
static bool isBLOBDatabase(const char *db);
62
static bool isBLOBTable(const char *db, const char *table);
64
static bool isPBMSEventsEnabled();
66
static int32_t getBeforeUptateEventPosition();
68
static int32_t getBeforeInsertEventPosition();
71
static bool try_LocateDB(CSThread *self, const char *db, bool *found);
72
static bool try_LocateTable(CSThread *self, const char *db, const char *table, bool *found);
77
#endif // __PARAMETERS_MS_H__