0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
FsTestThreadFunction.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 3
9  * of the License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
26 
27 #ifndef Tools_client_fsbroker_FsTestThreadFunction_h
28 #define Tools_client_fsbroker_FsTestThreadFunction_h
29 
30 #include <FsBroker/Lib/Client.h>
31 
32 #include <string>
33 
34 using namespace Hypertable;
35 using namespace std;
36 
40 namespace Tools {
41 namespace client {
42 namespace fsbroker {
43 
46 
49  public:
50  FsTestThreadFunction(FsBroker::Lib::ClientPtr &client, const string &input)
51  : m_client(client) {
52  m_input_file = input;
53  }
54  void set_dfs_file(const string &fname) {
55  m_dfs_file = fname;
56  }
57  void set_output_file(const string &fname) {
58  m_output_file = fname;
59  }
60  void operator()();
61 
62  private:
64  string m_input_file;
65  string m_output_file;
66  string m_dfs_file;
67  };
68 
70 
71 }}}
72 
73 #endif // Tools_client_fsbroker_FsTestThreadFunction_h
STL namespace.
std::shared_ptr< Client > ClientPtr
Smart pointer to Client.
Definition: Client.h:233
Thread function class for fsbroker test.
FsTestThreadFunction(FsBroker::Lib::ClientPtr &client, const string &input)
Hypertable definitions
Forward declarations.
Declarations for Client.