~clint-fewbar/drizzle/regex-policy-cache-limiter

« back to all changes in this revision

Viewing changes to plugin/pbms/src/parameters_ms.h

  • Committer: Clint Byrum
  • Date: 2012-03-15 18:05:43 UTC
  • mfrom: (2224.1.302 workspace)
  • Revision ID: clint@ubuntu.com-20120315180543-9jxxm4q10k3np2ws
merging with latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
2
 
 *
3
 
 * PrimeBase Media Stream for MySQL
4
 
 *
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.
9
 
 *
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.
14
 
 *
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
18
 
 *
19
 
 * Barry Leslie
20
 
 *
21
 
 * 2010-05-25
22
 
 *
23
 
 * PBMS daemon global parameters.
24
 
 *
25
 
 */
26
 
 
27
 
#ifndef __PARAMETERS_MS_H__
28
 
#define __PARAMETERS_MS_H__
29
 
 
30
 
#ifdef DRIZZLED
31
 
namespace drizzled { namespace module {
32
 
class Context;
33
 
class option_context;
34
 
}}
35
 
#endif
36
 
 
37
 
class PBMSParameters {
38
 
        public:
39
 
#ifdef DRIZZLED
40
 
        static void startUp(drizzled::module::Context &context);
41
 
 
42
 
        static void initOptions(drizzled::module::option_context &context);
43
 
        
44
 
#else   
45
 
        static void startUp();
46
 
 
47
 
#endif
48
 
        static void shutDown(){}
49
 
 
50
 
        static uint32_t getPortNumber();
51
 
 
52
 
        static uint32_t getServerID();
53
 
        
54
 
        static uint64_t getRepoThreshold();
55
 
 
56
 
        static uint64_t getTempLogThreshold();
57
 
        
58
 
        static uint32_t getTempBlobTimeout();
59
 
        
60
 
        static uint32_t getGarbageThreshold();
61
 
        
62
 
        static uint32_t getMaxKeepAlive();
63
 
        
64
 
        static uint32_t getBackupDatabaseID();
65
 
        static void setBackupDatabaseID(uint32_t id);
66
 
        
67
 
        static const char *getDefaultMetaDataHeaders();
68
 
        
69
 
#ifdef DRIZZLED
70
 
        static void blackListedDB(const char *db);
71
 
 
72
 
        static bool isBlackListedDB(const char *db);
73
 
        
74
 
        static bool isBLOBDatabase(const char *db);
75
 
        
76
 
        static bool isBLOBTable(const char *db, const char *table);
77
 
 
78
 
        static bool isPBMSEventsEnabled();
79
 
        
80
 
        static int32_t getBeforeUptateEventPosition();
81
 
        
82
 
        static int32_t getBeforeInsertEventPosition();  
83
 
        
84
 
        private:
85
 
        static bool try_LocateDB(CSThread *self, const char *db, bool *found);
86
 
        static bool try_LocateTable(CSThread *self, const char *db, const char *table, bool *found);
87
 
 
88
 
#endif
89
 
};
90
 
 
91
 
#endif // __PARAMETERS_MS_H__