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.
Main Page
Namespaces
Classes
Files
File List
File Members
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
33
class
FrontendQueryTestServer
:
public
ServerFunctionality
{
34
35
public
:
36
FrontendQueryTestServer
();
37
38
FrontendQueryTestServer
(
bool
isStandalone
,
bool
createOutputSet
);
39
40
void
registerHandlers
(
PDBServer
& forMe)
override
;
41
42
// destructor
43
~FrontendQueryTestServer
();
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
55
int
tempSetName
;
56
57
bool
isStandalone
;
58
59
bool
createOutputSet
;
60
};
61
}
62
63
#endif
pdb::FrontendQueryTestServer::FrontendQueryTestServer
FrontendQueryTestServer()
Definition:
FrontendQueryTestServer.cc:54
pdb::FrontendQueryTestServer::computeQuery
void computeQuery(std::string setOutputName, std::string setPrefix, int &whichNode, Handle< QueryBase > &computeMe, std::vector< std::string > &tempSetsCreated)
pdb::FrontendQueryTestServer::createOutputSet
bool createOutputSet
Definition:
FrontendQueryTestServer.h:59
pdb::FrontendQueryTestServer::isStandalone
bool isStandalone
Definition:
FrontendQueryTestServer.h:57
pdb::FrontendQueryTestServer::doSelection
void doSelection(std::string setOutputName, Handle< QueryBase > &computeMe)
pdb::FrontendQueryTestServer::tempSetName
int tempSetName
Definition:
FrontendQueryTestServer.h:55
pdb::FrontendQueryTestServer::registerHandlers
void registerHandlers(PDBServer &forMe) override
Definition:
FrontendQueryTestServer.cc:68
PDBServer.h
ServerFunctionality.h
pdb::FrontendQueryTestServer
Definition:
FrontendQueryTestServer.h:33
pdb::FrontendQueryTestServer::~FrontendQueryTestServer
~FrontendQueryTestServer()
Definition:
FrontendQueryTestServer.cc:66
pdb::ServerFunctionality
Definition:
ServerFunctionality.h:28
pdb::PDBServer
Definition:
PDBServer.h:56
QueryBase.h
pdb::Handle
Definition:
Allocator.h:399
plinycompute
pdb
src
serverFunctionalities
headers
FrontendQueryTestServer.h
Generated on Mon Jun 18 2018 18:10:36 by
1.8.6