2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

dcdbglobals.h 2.38 KB
Newer Older
1
2
3
//================================================================================
// Name        : dcdbglobals.h
// Author      : Axel Auweter
Micha Müller's avatar
Micha Müller committed
4
// Contact     : info@dcdb.it
5
// Copyright   : Leibniz Supercomputing Centre
Michael Ott's avatar
Michael Ott committed
6
// Description : Internal global settings for libdcdb
7
8
9
10
//================================================================================

//================================================================================
// This file is part of DCDB (DataCenter DataBase)
11
// Copyright (C) 2011-2019 Leibniz Supercomputing Centre
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
//================================================================================
27
28
29
30

/**
 * @file
 * @brief This file contains some global definitions and names
31
 * used by the libdcdb library.
32
33
34
35
36
 */

#ifndef DCDB_GLOBALS_H
#define DCDB_GLOBALS_H

37
/* Legend:
38
39
40
 *   CED = Caliper Event Data
 *   CF  = Column Family
 *   JD  = Job Data
41
42
 */

43
44
#define KEYSPACE_NAME        "dcdb"
#define CF_SENSORDATA        "sensordata"
Axel Auweter's avatar
Axel Auweter committed
45
#define SENSORDATA_GC_GRACE_SECONDS "600"
46
#define SENSORDATA_COMPACTION "{'class' : 'TimeWindowCompactionStrategy', 'compaction_window_unit' : 'DAYS', 'compaction_window_size' : 1 }"
47
#define PAGING_SIZE 10000
48
#define JOB_PAGING_SIZE 100
49
50
51

#define CONFIG_KEYSPACE_NAME KEYSPACE_NAME "_config"
#define CF_PUBLISHEDSENSORS  "publishedsensors"
52
#define CF_MONITORINGMETADATA "monitoringmetadata"
53
54
#define CF_VIRTUALSENSORS    "virtualsensors"

55
56
#define CF_PROPERTY_PSWRITETIME "pswritetime"

57
58
59
#define CED_KEYSPACE_NAME KEYSPACE_NAME "_calievtdata"
#define CF_CALIEVTDATA "calievtdata"

60
#define JD_KEYSPACE_NAME KEYSPACE_NAME "_jobdata"
61
#define CF_JOBDATA  "jobdata"
62
#define CF_JOBDATAVIEW "jobdata_bytime"
63

64
#endif /* DCDB_GLOBALS_H */