Jazz 1.25.+
Loading...
Searching...
No Matches
instances.h
1/* Jazz (c) 2018-2025 kaalam.ai (The Authors of Jazz), using (under the same license):
2
3 1. Biomodelling - The AATBlockQueue class (c) Jacques BasaldĂșa, 2009-2012 licensed
4 exclusively for the use in the Jazz server software.
5
6 Copyright 2009-2012 Jacques BasaldĂșa
7
8 2. BBVA - Jazz: A lightweight analytical web server for data-driven applications.
9
10 Copyright 2016-2017 Banco Bilbao Vizcaya Argentaria, S.A.
11
12 This product includes software developed at
13
14 BBVA (https://www.bbva.com/)
15
16 3. LMDB, Copyright 2011-2017 Howard Chu, Symas Corp. All rights reserved.
17
18 Licensed under http://www.OpenLDAP.org/license.html
19
20
21 Licensed under the Apache License, Version 2.0 (the "License");
22 you may not use this file except in compliance with the License.
23 You may obtain a copy of the License at
24
25 http://www.apache.org/licenses/LICENSE-2.0
26
27 Unless required by applicable law or agreed to in writing, software
28 distributed under the License is distributed on an "AS IS" BASIS,
29 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30 See the License for the specific language governing permissions and
31 limitations under the License.
32*/
33
34
35#include "src/jazz_main/server.h"
36
37#ifdef CATCH_TEST
38#ifndef INCLUDED_JAZZ_CATCH2
39#define INCLUDED_JAZZ_CATCH2
40
41#include "src/catch2/catch.hpp"
42
43#endif
44#endif
45
46
47#ifndef INCLUDED_JAZZ_MAIN_INSTANCES
48#define INCLUDED_JAZZ_MAIN_INSTANCES
49
50
51#ifndef CATCH_TEST
52
53// Uplifted containers: The declarations cannot go inside the namespace jazz_main.
54// -------------------
55
56#include "src/uplifted/uplifted_instances.h"
57
58#endif
59
60
61namespace jazz_main
62{
63
64using namespace jazz_elements;
65using namespace jazz_bebop;
66using namespace jazz_models;
67
68/* -----------------------------
69 I n s t a n t i a t i n g
70--------------------------------- */
71
72#ifndef CATCH_TEST
73
74// Block containers:
75
76extern Channels CHANNELS;
77extern Volatile VOLATILE;
78extern Persisted PERSISTED;
79
80// Code execution:
81
82extern Core CORE;
83
84// Http server:
85
86extern HttpServer HTTP;
87
88// SIGTERM Callback and http server daemon:
89
91void signalHandler_SIGTERM(int signum);
92
93#endif
94
95
99
100// Utils for starting and stopping Services:
101
111bool start_service(pService service);
112
113
123bool stop_service(pService service);
124
125} // namespace jazz_main
126
127#endif // ifndef INCLUDED_JAZZ_MAIN_INSTANCES
Core: The execution unit is now a wrapper around onnx-runtime.
Definition core.h:89
Channels: A Container doing block transactions across media (files, folders, shell,...
Definition channel.h:227
Persisted: A Service to manage data objects in LMDB.
Definition persisted.h:93
A Jazz Service is a globally instanced configurable object that may allocate RAM.
Definition utils.h:285
Volatile: A Service to manage data objects in RAM.
Definition volatile.h:244
A language to access any container by base using locators.
Definition base_api.cpp:39
The namespace for Jazz Utils, Blocks, Kinds, Tuples, Containers, etc.
Definition block.cpp:39
The http API, instancing and building the server.
Definition api.cpp:42
bool stop_service(pService service)
A little utility to stop services writing output to the console.
Definition instances.cpp:413
Volatile VOLATILE
The container allocating volatile blocks.
void init_http_callback()
The initialization of the global variables for http_request_callback().
Definition instances.cpp:384
Core CORE
The container running Bop code.
Persisted PERSISTED
The container allocating persisted blocks.
HttpServer HTTP
The server.
pMHD_Daemon Jazz_MHD_Daemon
The MHD_Daemon created by MHD_start_daemon()
Definition instances.cpp:78
bool start_service(pService service)
A little utility to start services writing output to the console.
Definition instances.cpp:396
MHD_Daemon * pMHD_Daemon
Definition server.h:62
Channels CHANNELS
The container channeling blocks.
void signalHandler_SIGTERM(int signum)
Definition instances.cpp:438
Concepts: A tree of Snippets with support fro blending that populates a semantic space.
Definition concept.cpp:39