OmniSciDB  94e8789169
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QuerySessionStatus Class Reference

#include <Execute.h>

Public Types

enum  QueryStatus { UNDEFINED = 0, PENDING_QUEUE, PENDING_EXECUTOR, RUNNING }
 

Public Member Functions

 QuerySessionStatus (const QuerySessionId &query_session, const std::string &query_str, const std::chrono::time_point< std::chrono::system_clock > submitted_time)
 
 QuerySessionStatus (const QuerySessionId &query_session, const size_t executor_id, const std::string &query_str, const std::chrono::time_point< std::chrono::system_clock > submitted_time)
 
 QuerySessionStatus (const QuerySessionId &query_session, const size_t executor_id, const std::string &query_str, const std::chrono::time_point< std::chrono::system_clock > submitted_time, const QuerySessionStatus::QueryStatus &query_status)
 
const QuerySessionId getQuerySession ()
 
const std::string getQueryStr ()
 
const size_t getExecutorId ()
 
const std::chrono::time_point
< std::chrono::system_clock > 
getQuerySubmittedTime ()
 
const
QuerySessionStatus::QueryStatus 
getQueryStatus ()
 
void setQueryStatus (const QuerySessionStatus::QueryStatus &status)
 
void setExecutorId (const size_t executor_id)
 
void setQueryStatusAsRunning ()
 

Private Attributes

const QuerySessionId query_session_
 
size_t executor_id_
 
const std::string query_str_
 
const std::chrono::time_point
< std::chrono::system_clock > 
submitted_time_
 
QuerySessionStatus::QueryStatus query_status_
 

Detailed Description

Definition at line 81 of file Execute.h.

Member Enumeration Documentation

Enumerator
UNDEFINED 
PENDING_QUEUE 
PENDING_EXECUTOR 
RUNNING 

Definition at line 84 of file Execute.h.

Constructor & Destructor Documentation

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

Definition at line 86 of file Execute.h.

90  : query_session_(query_session)
91  , executor_id_(0)
92  , query_str_(query_str)
93  , submitted_time_(submitted_time)
94  , query_status_(QueryStatus::UNDEFINED) {}
const std::string query_str_
Definition: Execute.h:135
const QuerySessionId query_session_
Definition: Execute.h:133
size_t executor_id_
Definition: Execute.h:134
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
Definition: Execute.h:136
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:142
QuerySessionStatus::QuerySessionStatus ( const QuerySessionId query_session,
const size_t  executor_id,
const std::string &  query_str,
const std::chrono::time_point< std::chrono::system_clock >  submitted_time 
)
inline

Definition at line 95 of file Execute.h.

100  : query_session_(query_session)
101  , executor_id_(executor_id)
102  , query_str_(query_str)
103  , submitted_time_(submitted_time)
104  , query_status_(QueryStatus::UNDEFINED) {}
const std::string query_str_
Definition: Execute.h:135
const QuerySessionId query_session_
Definition: Execute.h:133
size_t executor_id_
Definition: Execute.h:134
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
Definition: Execute.h:136
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:142
QuerySessionStatus::QuerySessionStatus ( const QuerySessionId query_session,
const size_t  executor_id,
const std::string &  query_str,
const std::chrono::time_point< std::chrono::system_clock >  submitted_time,
const QuerySessionStatus::QueryStatus query_status 
)
inline

Definition at line 105 of file Execute.h.

111  : query_session_(query_session)
112  , executor_id_(executor_id)
113  , query_str_(query_str)
114  , submitted_time_(submitted_time)
115  , query_status_(query_status) {}
const std::string query_str_
Definition: Execute.h:135
const QuerySessionId query_session_
Definition: Execute.h:133
size_t executor_id_
Definition: Execute.h:134
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
Definition: Execute.h:136
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:142

Member Function Documentation

const size_t QuerySessionStatus::getExecutorId ( )
inline

Definition at line 119 of file Execute.h.

References executor_id_.

119 { return executor_id_; }
size_t executor_id_
Definition: Execute.h:134
const QuerySessionId QuerySessionStatus::getQuerySession ( )
inline

Definition at line 117 of file Execute.h.

References query_session_.

117 { return query_session_; }
const QuerySessionId query_session_
Definition: Execute.h:133
const QuerySessionStatus::QueryStatus QuerySessionStatus::getQueryStatus ( )
inline

Definition at line 123 of file Execute.h.

References query_status_.

123 { return query_status_; }
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:142
const std::string QuerySessionStatus::getQueryStr ( )
inline

Definition at line 118 of file Execute.h.

References query_str_.

118 { return query_str_; }
const std::string query_str_
Definition: Execute.h:135
const std::chrono::time_point<std::chrono::system_clock> QuerySessionStatus::getQuerySubmittedTime ( )
inline

Definition at line 120 of file Execute.h.

References submitted_time_.

120  {
121  return submitted_time_;
122  }
const std::chrono::time_point< std::chrono::system_clock > submitted_time_
Definition: Execute.h:136
void QuerySessionStatus::setExecutorId ( const size_t  executor_id)
inline

Definition at line 127 of file Execute.h.

References executor_id_.

127 { executor_id_ = executor_id; }
size_t executor_id_
Definition: Execute.h:134
void QuerySessionStatus::setQueryStatus ( const QuerySessionStatus::QueryStatus status)
inline

Definition at line 124 of file Execute.h.

References query_status_.

124  {
125  query_status_ = status;
126  }
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:142
void QuerySessionStatus::setQueryStatusAsRunning ( )
inline

Definition at line 128 of file Execute.h.

References query_status_.

128  {
129  query_status_ = QuerySessionStatus::QueryStatus::RUNNING;
130  }
QuerySessionStatus::QueryStatus query_status_
Definition: Execute.h:142

Member Data Documentation

size_t QuerySessionStatus::executor_id_
private

Definition at line 134 of file Execute.h.

Referenced by getExecutorId(), and setExecutorId().

const QuerySessionId QuerySessionStatus::query_session_
private

Definition at line 133 of file Execute.h.

Referenced by getQuerySession().

QuerySessionStatus::QueryStatus QuerySessionStatus::query_status_
private

Definition at line 142 of file Execute.h.

Referenced by getQueryStatus(), setQueryStatus(), and setQueryStatusAsRunning().

const std::string QuerySessionStatus::query_str_
private

Definition at line 135 of file Execute.h.

Referenced by getQueryStr().

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

Definition at line 136 of file Execute.h.

Referenced by getQuerySubmittedTime().


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