Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
f2dc11d6
Commit
f2dc11d6
authored
Sep 18, 2019
by
Daniele Tafani
Browse files
Fixed small leak and updated documentation on GrafanaServer.cpp
parent
a0304326
Changes
2
Hide whitespace changes
Inline
Side-by-side
grafana/GrafanaServer.cpp
View file @
f2dc11d6
//================================================================================
// Name : GrafanaServer.cpp
// Author : Daniele Tafani
// Contact : info@dcdb.it
// Copyright : Leibniz Supercomputing Centre
// Description : An HTTPS server that processes requests from a Grafana frontend.
//================================================================================
//================================================================================
// This file is part of DCDB (DataCenter DataBase)
// Copyright (C) 2019-2019 Leibniz Supercomputing Centre
//
// HTTPServer.cpp
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// Created by Tafani, Daniele on 27.09.18.
// Copyright © 2018 LRZ. All rights reserved.
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//================================================================================
#include "Configuration.h"
#include "RestAPI.h"
#include "version.h"
...
...
@@ -69,6 +88,7 @@ void sigHandler(int sig) {
//Stop https server
LOG
(
info
)
<<
"Stopping REST API Server..."
;
_httpsServer
->
stop
();
}
...
...
grafana/RestAPI.h
View file @
f2dc11d6
...
...
@@ -54,7 +54,11 @@ public:
hierarchySettings_t
hierarchySettings
,
DCDB
::
Connection
*
cassandraConnection
);
virtual
~
RestAPI
()
{}
virtual
~
RestAPI
()
{
delete
_navigator
;
delete
_sensorConfig
;
}
private:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment