NCBI C++ ToolKit
|
Search Toolkit Book for SPSGS_RequestBase
#include "psgs_request.hpp"
(Private to src/app/pubseq_gateway/server
.)
Public Types | |
enum | EPSGS_CacheAndDbUse { ePSGS_CacheOnly , ePSGS_DbOnly , ePSGS_CacheAndDb , ePSGS_UnknownUseCache } |
enum | EPSGS_AccSubstitutioOption { ePSGS_DefaultAccSubstitution , ePSGS_LimitedAccSubstitution , ePSGS_NeverAccSubstitute , ePSGS_UnknownAccSubstitution } |
enum | EPSGS_Trace { ePSGS_NoTracing , ePSGS_WithTracing } |
Public Member Functions | |
SPSGS_RequestBase () | |
SPSGS_RequestBase (EPSGS_Trace trace, bool processor_events, const vector< string > &enabled_processors, const vector< string > &disabled_processors, const psg_time_point_t &start) | |
virtual | ~SPSGS_RequestBase () |
virtual CPSGS_Request::EPSGS_Type | GetRequestType (void) const =0 |
virtual string | GetName (void) const =0 |
virtual CJsonNode | Serialize (void) const =0 |
virtual EPSGS_Trace | GetTrace (void) const |
virtual bool | GetProcessorEvents (void) const |
virtual psg_time_point_t | GetStartTimestamp (void) const |
void | AppendCommonParameters (CJsonNode &json) const |
SPSGS_RequestBase (const SPSGS_RequestBase &)=default | |
SPSGS_RequestBase (SPSGS_RequestBase &&)=default | |
SPSGS_RequestBase & | operator= (const SPSGS_RequestBase &)=default |
SPSGS_RequestBase & | operator= (SPSGS_RequestBase &&)=default |
Static Public Member Functions | |
static string | CacheAndDbUseToString (EPSGS_CacheAndDbUse option) |
static string | AccSubstitutioOptionToString (EPSGS_AccSubstitutioOption option) |
static string | TraceToString (EPSGS_Trace trace) |
Public Attributes | |
EPSGS_Trace | m_Trace |
bool | m_ProcessorEvents |
psg_time_point_t | m_StartTimestamp |
vector< string > | m_EnabledProcessors |
vector< string > | m_DisabledProcessors |
Definition at line 264 of file psgs_request.hpp.
Enumerator | |
---|---|
ePSGS_DefaultAccSubstitution | |
ePSGS_LimitedAccSubstitution | |
ePSGS_NeverAccSubstitute | |
ePSGS_UnknownAccSubstitution |
Definition at line 289 of file psgs_request.hpp.
Enumerator | |
---|---|
ePSGS_CacheOnly | |
ePSGS_DbOnly | |
ePSGS_CacheAndDb | |
ePSGS_UnknownUseCache |
Definition at line 267 of file psgs_request.hpp.
Enumerator | |
---|---|
ePSGS_NoTracing | |
ePSGS_WithTracing |
Definition at line 309 of file psgs_request.hpp.
|
inline |
Definition at line 330 of file psgs_request.hpp.
|
inline |
Definition at line 336 of file psgs_request.hpp.
|
inlinevirtual |
Definition at line 347 of file psgs_request.hpp.
|
default |
|
default |
|
inlinestatic |
Definition at line 297 of file psgs_request.hpp.
References ePSGS_DefaultAccSubstitution, ePSGS_LimitedAccSubstitution, ePSGS_NeverAccSubstitute, ePSGS_UnknownAccSubstitution, and option.
Referenced by SPSGS_ResolveRequest::Serialize(), and SPSGS_BlobBySeqIdRequest::Serialize().
void SPSGS_RequestBase::AppendCommonParameters | ( | CJsonNode & | json | ) | const |
Definition at line 358 of file psgs_request.cpp.
References CJsonNode::AppendString(), m_DisabledProcessors, m_EnabledProcessors, m_ProcessorEvents, m_StartTimestamp, m_Trace, CJsonNode::NewArrayNode(), CJsonNode::SetBoolean(), CJsonNode::SetByKey(), CJsonNode::SetInteger(), CJsonNode::SetString(), and TraceToString().
Referenced by SPSGS_ResolveRequest::Serialize(), SPSGS_BlobBySeqIdRequest::Serialize(), SPSGS_BlobBySatSatKeyRequest::Serialize(), SPSGS_AnnotRequest::Serialize(), SPSGS_TSEChunkRequest::Serialize(), SPSGS_AccessionVersionHistoryRequest::Serialize(), and SPSGS_IPGResolveRequest::Serialize().
|
inlinestatic |
Definition at line 275 of file psgs_request.hpp.
References ePSGS_CacheAndDb, ePSGS_CacheOnly, ePSGS_DbOnly, ePSGS_UnknownUseCache, and option.
Referenced by SPSGS_BlobRequestBase::AppendCommonParameters(), SPSGS_ResolveRequest::Serialize(), SPSGS_TSEChunkRequest::Serialize(), SPSGS_AccessionVersionHistoryRequest::Serialize(), and SPSGS_IPGResolveRequest::Serialize().
|
pure virtual |
|
inlinevirtual |
Definition at line 358 of file psgs_request.hpp.
References m_ProcessorEvents.
|
pure virtual |
|
inlinevirtual |
Definition at line 363 of file psgs_request.hpp.
References m_StartTimestamp.
|
inlinevirtual |
Definition at line 353 of file psgs_request.hpp.
References m_Trace.
|
default |
|
default |
|
pure virtual |
|
inlinestatic |
Definition at line 314 of file psgs_request.hpp.
References ePSGS_NoTracing, ePSGS_WithTracing, and trace.
Referenced by AppendCommonParameters().
vector<string> SPSGS_RequestBase::m_DisabledProcessors |
Definition at line 328 of file psgs_request.hpp.
Referenced by AppendCommonParameters(), CPSGS_DummyProcessor::CanProcess(), CPSGS_CassProcessorBase::IsCassandraProcessorEnabled(), CPSGS_CDDProcessor::x_IsEnabled(), CPSGS_SNPProcessor::x_IsEnabled(), and CPSGS_WGSProcessor::x_IsEnabled().
vector<string> SPSGS_RequestBase::m_EnabledProcessors |
Definition at line 327 of file psgs_request.hpp.
Referenced by AppendCommonParameters(), CPSGS_CassProcessorBase::IsCassandraProcessorEnabled(), CPSGS_CDDProcessor::x_IsEnabled(), CPSGS_SNPProcessor::x_IsEnabled(), and CPSGS_WGSProcessor::x_IsEnabled().
bool SPSGS_RequestBase::m_ProcessorEvents |
Definition at line 325 of file psgs_request.hpp.
Referenced by AppendCommonParameters(), and GetProcessorEvents().
psg_time_point_t SPSGS_RequestBase::m_StartTimestamp |
Definition at line 326 of file psgs_request.hpp.
Referenced by AppendCommonParameters(), and GetStartTimestamp().
EPSGS_Trace SPSGS_RequestBase::m_Trace |
Definition at line 324 of file psgs_request.hpp.
Referenced by AppendCommonParameters(), and GetTrace().