0.9.8.10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
home
doug
src
hypertable
src
cc
Hyperspace
request
RequestHandlerDoMaintenance.cc
Go to the documentation of this file.
1
/*
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
22
#include "
Common/Compat.h
"
23
#include "
Common/Error.h
"
24
#include "
Common/Logger.h
"
25
26
#include "
Hyperspace/Master.h
"
27
#include "
RequestHandlerDoMaintenance.h
"
28
29
using namespace
Hyperspace
;
30
31
/*
32
*
33
*/
34
void
RequestHandlerDoMaintenance::run
() {
35
try
{
36
m_master
->
do_maintenance
();
37
}
38
catch
(
Exception
&e) {
39
HT_ERROR_OUT
<<
"Error while trying to do maintenance"
<< e <<
HT_END
;
40
}
41
42
}
Master.h
RequestHandlerDoMaintenance.h
Hyperspace::RequestHandlerDoMaintenance::m_master
Master * m_master
Definition:
RequestHandlerDoMaintenance.h:42
Hyperspace
Hyperspace definitions
Definition:
BerkeleyDbFilesystem.h:57
Logger.h
Logging routines and macros.
Compat.h
Compatibility Macros for C/C++.
HT_END
#define HT_END
Definition:
Logger.h:220
HT_ERROR_OUT
#define HT_ERROR_OUT
Definition:
Logger.h:301
Hyperspace::Master::do_maintenance
void do_maintenance()
Definition:
Master.cc:1856
Hyperspace::RequestHandlerDoMaintenance::run
virtual void run()
Carries out the request.
Definition:
RequestHandlerDoMaintenance.cc:34
Hypertable::Exception
This is a generic exception class for Hypertable.
Definition:
Error.h:314
Error.h
Error codes, Exception handling, error logging.
Generated on Tue Dec 22 2015 18:43:09 for Hypertable by
1.8.8