Navigator2Go
2.0
Manage your local Ocean Navigator installation.
|
Manages the Apache and gUnicorn servers for the Ocean Navigator. More...
#include <servermanager.h>
Public Member Functions | |
ServerManager (QObject *parent=nullptr) | |
ServerManager (const bool autoStartServers=true, QObject *parent=nullptr) | |
void | refreshServers () |
Restarts the Apache and gUnicorn servers after 5 seconds. | |
NODISCARD auto | isWebUIRunning () const noexcept |
NODISCARD auto | isTHREDDSRunning () const noexcept |
Private Member Functions | |
void | startServers () |
void | startWebServer () |
void | startTHREDDS () |
void | stopServers () |
void | stopWebServer () |
void | stopTHREDDS () |
void | setEnvironment () |
Private Attributes | |
QProcess | m_apacheProcess {this} |
QProcess | m_gunicornProcess {this} |
bool | m_isGunicornRunning {false} |
gUnicorn server | |
bool | m_isApacheRunning {false} |
Apache tomcat server. | |
qint64 | m_gunicornPID {0} |
PID of gUnicorn process. | |
qint64 | m_apachePID {0} |
PID of apache tomcat process. | |
Manages the Apache and gUnicorn servers for the Ocean Navigator.