NCBI C++ ToolKit
|
Search Toolkit Book for CCassFetch
#include "cass_fetch.hpp"
(Private to src/app/pubseq_gateway/server
.)
Public Member Functions | |
CCassFetch () | |
CCassFetch (const string &client_id, const SCass_BlobId &blob_id) | |
virtual | ~CCassFetch () |
virtual void | ResetCallbacks (void)=0 |
virtual string | Serialize (void) const =0 |
CCassBlobWaiter * | GetLoader (void) |
void | SetReadFinished (void) |
EPSGS_DbFetchType | GetFetchType (void) const |
bool | ReadFinished (void) const |
void | SetInPeek (bool val) |
bool | InPeek (void) const |
bool | Canceled (void) const |
void | Cancel (void) |
bool | IsBlobFetch (void) const |
SCass_BlobId | GetBlobId (void) const |
string | GetClientId (void) const |
void | RemoveFromExcludeBlobCache (void) |
EPSGS_CacheAddResult | AddToExcludeBlobCache (bool &completed, psg_time_point_t &completed_time) |
void | SetExcludeBlobCacheUpdated (bool value) |
void | SetExcludeBlobCacheCompleted (void) |
Protected Attributes | |
unique_ptr< CCassBlobWaiter > | m_Loader |
bool | m_FinishedRead |
bool | m_InPeek |
EPSGS_DbFetchType | m_FetchType |
bool | m_Canceled |
string | m_ClientId |
SCass_BlobId | m_BlobId |
bool | m_ExcludeBlobCacheUpdated |
Definition at line 57 of file cass_fetch.hpp.
|
inline |
Definition at line 60 of file cass_fetch.hpp.
|
inline |
Definition at line 68 of file cass_fetch.hpp.
|
inlinevirtual |
Definition at line 79 of file cass_fetch.hpp.
EPSGS_CacheAddResult CCassFetch::AddToExcludeBlobCache | ( | bool & | completed, |
psg_time_point_t & | completed_time | ||
) |
Definition at line 61 of file cass_fetch.cpp.
References ePSGS_Added, CPubseqGatewayApp::GetInstance(), IsBlobFetch(), m_BlobId, m_ClientId, m_ExcludeBlobCacheUpdated, SCass_BlobId::m_Sat, and SCass_BlobId::m_SatKey.
Referenced by CPSGS_CassBlobBase::x_CheckExcludeBlobCache().
|
inline |
Definition at line 107 of file cass_fetch.hpp.
|
inline |
Definition at line 104 of file cass_fetch.hpp.
|
inline |
Definition at line 124 of file cass_fetch.hpp.
Referenced by CPSGS_CassBlobBase::OnGetBlobChunk(), CPSGS_CassBlobBase::OnGetBlobProp(), CPSGS_TSEChunkProcessor::OnGetBlobProp(), CPSGS_Reply::PrepareBlobData(), CPSGS_Reply::PrepareBlobMessage(), CPSGS_Reply::PrepareBlobPropData(), CPSGS_CassBlobBase::x_BlobChunkCallback(), CPSGS_CassBlobBase::x_BlobErrorCallback(), CPSGS_CassBlobBase::x_BlobPropsCallback(), CPSGS_CassBlobBase::x_CheckExcludeBlobCache(), CPSGS_CassBlobBase::x_CheckId2Info(), CPSGS_CassBlobBase::x_GetId2ChunkNumber(), CPSGS_CassBlobBase::x_OnBlobPropNotFound(), CPSGS_CassBlobBase::x_OnBlobPropSlimTSE(), CPSGS_CassBlobBase::x_PrepareBlobExcluded(), CPSGS_CassBlobBase::x_PrepareBlobPropData(), CPSGS_CassBlobBase::x_RequestID2BlobChunks(), CPSGS_CassBlobBase::x_RequestId2SplitBlobs(), CPSGS_CassBlobBase::x_RequestMoreChunksForSmartTSE(), and CPSGS_CassBlobBase::x_RequestOriginalBlobChunks().
|
inline |
Definition at line 127 of file cass_fetch.hpp.
Referenced by CPSGS_CassBlobBase::x_CheckExcludeBlobCache(), CPSGS_CassBlobBase::x_RequestID2BlobChunks(), CPSGS_CassBlobBase::x_RequestId2SplitBlobs(), CPSGS_CassBlobBase::x_RequestMoreChunksForSmartTSE(), and CPSGS_CassBlobBase::x_RequestOriginalBlobChunks().
|
inline |
Definition at line 92 of file cass_fetch.hpp.
Referenced by CPSGS_CassProcessorBase::CountError(), and CPSGS_CassBlobBase::x_OnBlobPropNotFound().
|
inline |
Definition at line 86 of file cass_fetch.hpp.
Referenced by CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfo(), CPSGS_AsyncResolveBase::x_OnBioseqInfo(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfoError(), CPSGS_AsyncResolveBase::x_OnBioseqInfoError(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfoWithoutSeqIdType(), CPSGS_AsyncResolveBase::x_OnBioseqInfoWithoutSeqIdType(), CPSGS_AsyncResolveBase::x_OnSi2csiError(), and CPSGS_AsyncResolveBase::x_OnSi2csiRecord().
|
inline |
Definition at line 101 of file cass_fetch.hpp.
|
inline |
Definition at line 117 of file cass_fetch.hpp.
References ePSGS_AnnotationBlobFetch, ePSGS_BlobBySatSatKeyFetch, and ePSGS_BlobBySeqIdFetch.
Referenced by AddToExcludeBlobCache(), RemoveFromExcludeBlobCache(), SetExcludeBlobCacheCompleted(), and CPSGS_CassBlobBase::x_CheckExcludeBlobCache().
|
inline |
Definition at line 95 of file cass_fetch.hpp.
void CCassFetch::RemoveFromExcludeBlobCache | ( | void | ) |
Definition at line 41 of file cass_fetch.cpp.
References CPubseqGatewayApp::GetInstance(), IsBlobFetch(), m_BlobId, m_ClientId, m_ExcludeBlobCacheUpdated, SCass_BlobId::m_Sat, and SCass_BlobId::m_SatKey.
Referenced by CPSGS_CassBlobBase::OnGetBlobError(), CPSGS_CassBlobBase::x_BlobChunkCallback(), CPSGS_CassBlobBase::x_BlobErrorCallback(), and CPSGS_CassBlobBase::x_OnBlobPropNotFound().
|
pure virtual |
|
pure virtual |
Implemented in CCassIPGFetch, CCassPublicCommentFetch, CCassSplitHistoryFetch, CCassSi2csiFetch, CCassBioseqInfoFetch, CCassBlobFetch, CCassAccVerHistoryFetch, and CCassNamedAnnotFetch.
Referenced by CPSGS_CassProcessorBase::CountError().
void CCassFetch::SetExcludeBlobCacheCompleted | ( | void | ) |
Definition at line 80 of file cass_fetch.cpp.
References CPubseqGatewayApp::GetInstance(), IsBlobFetch(), m_BlobId, m_ClientId, m_ExcludeBlobCacheUpdated, SCass_BlobId::m_Sat, and SCass_BlobId::m_SatKey.
|
inline |
Definition at line 134 of file cass_fetch.hpp.
References rapidjson::value.
Referenced by CPSGS_CassBlobBase::x_CheckExcludeBlobCache().
|
inline |
Definition at line 98 of file cass_fetch.hpp.
References val.
|
inline |
Definition at line 89 of file cass_fetch.hpp.
Referenced by CPSGS_AnnotProcessor::OnAnnotBlobProp(), CPSGS_CassBlobBase::OnGetBlobChunk(), CPSGS_TSEChunkProcessor::OnGetBlobChunk(), CPSGS_CassBlobBase::OnGetBlobError(), CPSGS_TSEChunkProcessor::OnGetBlobError(), CPSGS_CassBlobBase::OnGetBlobProp(), CPSGS_TSEChunkProcessor::OnGetBlobProp(), CPSGS_TSEChunkProcessor::OnGetSplitHistory(), CPSGS_TSEChunkProcessor::OnGetSplitHistoryError(), CPSGS_CassBlobBase::OnPublicComment(), CPSGS_CassBlobBase::OnPublicCommentError(), CPSGS_CassBlobBase::x_BlobChunkCallback(), CPSGS_CassBlobBase::x_BlobErrorCallback(), CPSGS_CassBlobBase::x_BlobPropsCallback(), CPSGS_AccessionVersionHistoryProcessor::x_OnAccVerHistData(), CPSGS_AccessionVersionHistoryProcessor::x_OnAccVerHistError(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfo(), CPSGS_AsyncResolveBase::x_OnBioseqInfo(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfoError(), CPSGS_AsyncResolveBase::x_OnBioseqInfoError(), CPSGS_AsyncBioseqInfoBase::x_OnBioseqInfoWithoutSeqIdType(), CPSGS_AsyncResolveBase::x_OnBioseqInfoWithoutSeqIdType(), CPSGS_CassBlobBase::x_OnBlobPropNoneTSE(), CPSGS_CassBlobBase::x_OnBlobPropNotFound(), CPSGS_CassBlobBase::x_OnBlobPropOrigTSE(), CPSGS_CassBlobBase::x_OnBlobPropSlimTSE(), CPSGS_CassBlobBase::x_OnBlobPropSmartTSE(), CPSGS_CassBlobBase::x_OnBlobPropWholeTSE(), CPSGS_IPGResolveProcessor::x_OnIPGResolveData(), CPSGS_IPGResolveProcessor::x_OnIPGResolveError(), CPSGS_AnnotProcessor::x_OnNamedAnnotData(), CPSGS_AnnotProcessor::x_OnNamedAnnotError(), CPSGS_AsyncResolveBase::x_OnSi2csiError(), and CPSGS_AsyncResolveBase::x_OnSi2csiRecord().
|
protected |
Definition at line 163 of file cass_fetch.hpp.
Referenced by AddToExcludeBlobCache(), RemoveFromExcludeBlobCache(), and SetExcludeBlobCacheCompleted().
|
protected |
Definition at line 159 of file cass_fetch.hpp.
|
protected |
Definition at line 162 of file cass_fetch.hpp.
Referenced by AddToExcludeBlobCache(), RemoveFromExcludeBlobCache(), and SetExcludeBlobCacheCompleted().
|
protected |
Definition at line 164 of file cass_fetch.hpp.
Referenced by AddToExcludeBlobCache(), RemoveFromExcludeBlobCache(), and SetExcludeBlobCacheCompleted().
|
protected |
Definition at line 157 of file cass_fetch.hpp.
|
protected |
Definition at line 148 of file cass_fetch.hpp.
|
protected |
Definition at line 151 of file cass_fetch.hpp.
|
protected |
Definition at line 145 of file cass_fetch.hpp.
Referenced by CCassNamedAnnotFetch::ResetCallbacks(), CCassAccVerHistoryFetch::ResetCallbacks(), CCassBlobFetch::ResetCallbacks(), CCassBioseqInfoFetch::ResetCallbacks(), CCassSi2csiFetch::ResetCallbacks(), CCassSplitHistoryFetch::ResetCallbacks(), CCassPublicCommentFetch::ResetCallbacks(), and CCassIPGFetch::ResetCallbacks().