Navigator2Go  2.0
Manage your local Ocean Navigator installation.
ServerManager Class Reference

Manages the Apache and gUnicorn servers for the Ocean Navigator. More...

#include <servermanager.h>

Inheritance diagram for ServerManager:
Collaboration diagram for ServerManager:

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.
 

Detailed Description

Manages the Apache and gUnicorn servers for the Ocean Navigator.


The documentation for this class was generated from the following files: