OmniSciDB  2e3a973ef4
QuerySessionStatus Class Reference

#include <Execute.h>

+ Collaboration diagram for QuerySessionStatus:

Public Member Functions

 QuerySessionStatus (const std::string &query_session, const std::string &query_str, const std::chrono::time_point< std::chrono::system_clock > submitted_time)
 
 QuerySessionStatus (const std::string &query_session, const std::string &query_str, const std::chrono::time_point< std::chrono::system_clock > submitted_time, const std::string &query_status)
 
const std::string getQuerySession ()
 
const std::string getQueryStr ()
 
const std::chrono::time_point< std::chrono::system_clock > getQuerySubmittedTime ()
 
const std::string getQueryStatus ()
 
void setQueryStatusAsRunning ()
 

Private Attributes

const std::string query_session_
 
const std::string query_str_
 
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
 
std::string query_status_
 

Detailed Description

Definition at line 78 of file Execute.h.

Constructor & Destructor Documentation

◆ QuerySessionStatus() [1/2]

QuerySessionStatus::QuerySessionStatus ( const std::string &  query_session,
const std::string &  query_str,
const std::chrono::time_point< std::chrono::system_clock >  submitted_time 
)
inline

Definition at line 80 of file Execute.h.

84  : query_session_(query_session)
85  , query_str_(query_str)
86  , submitted_time_(submitted_time)
87  , query_status_("Pending") {}
const std::string query_str_
Definition: Execute.h:108
std::string query_status_
Definition: Execute.h:110
const std::string query_session_
Definition: Execute.h:107
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
Definition: Execute.h:109

◆ QuerySessionStatus() [2/2]

QuerySessionStatus::QuerySessionStatus ( const std::string &  query_session,
const std::string &  query_str,
const std::chrono::time_point< std::chrono::system_clock >  submitted_time,
const std::string &  query_status 
)
inline

Definition at line 88 of file Execute.h.

93  : query_session_(query_session)
94  , query_str_(query_str)
95  , submitted_time_(submitted_time)
96  , query_status_(query_status) {}
const std::string query_str_
Definition: Execute.h:108
std::string query_status_
Definition: Execute.h:110
const std::string query_session_
Definition: Execute.h:107
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
Definition: Execute.h:109

Member Function Documentation

◆ getQuerySession()

const std::string QuerySessionStatus::getQuerySession ( )
inline

Definition at line 98 of file Execute.h.

References query_session_.

98 { return query_session_; }
const std::string query_session_
Definition: Execute.h:107

◆ getQueryStatus()

const std::string QuerySessionStatus::getQueryStatus ( )
inline

Definition at line 103 of file Execute.h.

References query_status_.

103 { return query_status_; }
std::string query_status_
Definition: Execute.h:110

◆ getQueryStr()

const std::string QuerySessionStatus::getQueryStr ( )
inline

Definition at line 99 of file Execute.h.

References query_str_.

99 { return query_str_; }
const std::string query_str_
Definition: Execute.h:108

◆ getQuerySubmittedTime()

const std::chrono::time_point<std::chrono::system_clock> QuerySessionStatus::getQuerySubmittedTime ( )
inline

Definition at line 100 of file Execute.h.

References submitted_time_.

100  {
101  return submitted_time_;
102  }
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
Definition: Execute.h:109

◆ setQueryStatusAsRunning()

void QuerySessionStatus::setQueryStatusAsRunning ( )
inline

Definition at line 104 of file Execute.h.

References query_status_.

104 { query_status_ = "Running"; }
std::string query_status_
Definition: Execute.h:110

Member Data Documentation

◆ query_session_

const std::string QuerySessionStatus::query_session_
private

Definition at line 107 of file Execute.h.

Referenced by getQuerySession().

◆ query_status_

std::string QuerySessionStatus::query_status_
private

Definition at line 110 of file Execute.h.

Referenced by getQueryStatus(), and setQueryStatusAsRunning().

◆ query_str_

const std::string QuerySessionStatus::query_str_
private

Definition at line 108 of file Execute.h.

Referenced by getQueryStr().

◆ submitted_time_

const std::chrono::time_point<std::chrono::system_clock> QuerySessionStatus::submitted_time_
private

Definition at line 109 of file Execute.h.

Referenced by getQuerySubmittedTime().


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