A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FrontendQueryTestServer.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * *
3  * Copyright 2018 Rice University *
4  * *
5  * Licensed under the Apache License, Version 2.0 (the "License"); *
6  * you may not use this file except in compliance with the License. *
7  * You may obtain a copy of the License at *
8  * *
9  * http://www.apache.org/licenses/LICENSE-2.0 *
10  * *
11  * Unless required by applicable law or agreed to in writing, software *
12  * distributed under the License is distributed on an "AS IS" BASIS, *
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14  * See the License for the specific language governing permissions and *
15  * limitations under the License. *
16  * *
17  *****************************************************************************/
18 
19 #ifndef FRONTEND_QUERY_TEST_SERVER_H
20 #define FRONTEND_QUERY_TEST_SERVER_H
21 
22 #include "ServerFunctionality.h"
23 #include "QueryBase.h"
24 #include "PDBServer.h"
25 
26 namespace pdb {
27 
28 /*
29  * This server works in frontend as a message proxy to transfer message
30  * from QuerySchedulerServer to HermesExecutionServer.
31  */
32 
34 
35 public:
37 
39 
40  void registerHandlers(PDBServer& forMe) override;
41 
42  // destructor
44 
45 private:
46  void computeQuery(std::string setOutputName,
47  std::string setPrefix,
48  int& whichNode,
49  Handle<QueryBase>& computeMe,
50  std::vector<std::string>& tempSetsCreated);
51 
52  // this actually computes a selection query
53  void doSelection(std::string setOutputName, Handle<QueryBase>& computeMe);
54 
56 
58 
60 };
61 }
62 
63 #endif
void computeQuery(std::string setOutputName, std::string setPrefix, int &whichNode, Handle< QueryBase > &computeMe, std::vector< std::string > &tempSetsCreated)
void doSelection(std::string setOutputName, Handle< QueryBase > &computeMe)
void registerHandlers(PDBServer &forMe) override