1 #ifndef DISPATCHER__HPP_INCLUDED
2 #define DISPATCHER__HPP_INCLUDED
57 struct STimeStatistics;
69 typedef vector<CSeq_id_Handle>
TIds;
78 bool HasReaderWithHUPIncluded()
const;
140 static bool SetBlobState(
size_t i,
149 const CReader* asking_reader = 0);
170 const TIds& seq_ids);
174 void CheckReaders(
void)
const;
176 const CReader* asking_reader = 0);
177 void ResetCaches(
void);
179 static int CollectStatistics(
void);
208 virtual bool MayBeSkipped(
void)
const;
219 virtual size_t GetStatisticsCount(
void)
const;
virtual CGBRequestStatistics::EStatType GetStatistics(void) const =0
virtual string GetStatisticsDescription(void) const =0
virtual bool Execute(CReader &reader)=0
CReaderRequestResult & m_Result
virtual string GetErrMsg(void) const =0
virtual bool IsDone(void)=0
CReaderRequestResult & GetResult(void) const
CReader::TBlobState TBlobState
vector< CBlob_id > TBlobIds
CReader::TChunkId TChunkId
CReader::TBlobVersion TBlobVersion
CReader::TContentsMask TContentsMask
CReader::TChunkIds TChunkIds
vector< TBlobState > TStates
vector< pair< CBlob_id, TChunkIds > > TBlobChunkIds
map< TLevel, CRef< CReader > > TReaders
vector< CBlob_Info > TBlobInfos
vector< CSeq_id_Handle > TIds
vector< CSeq_inst::EMol > TTypes
map< CProcessor::EType, CRef< CProcessor > > TProcessors
vector< TSeqPos > TLengths
map< TLevel, CRef< CWriter > > TWriters
vector< TChunkId > TChunkIds
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
virtual void Process(SOCK sock)=0
Runs asynchronously (from a separate thread) for each request.
#define NCBI_XREADER_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
Plugin manager (using class factory paradigm).
static bool CannotProcess(const CSeq_id_Handle &sih)