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
Hypertable
RangeServer
Request
Handler
WaitForMaintenance.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; version 3 of the
9
* 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
24
#include "
WaitForMaintenance.h
"
25
26
#include <
Hypertable/RangeServer/RangeServer.h
>
27
28
#include <
AsyncComm/ResponseCallback.h
>
29
30
using namespace
Hypertable
;
31
using namespace
Hypertable::RangeServer::Request::Handler
;
32
33
void
WaitForMaintenance::run
() {
34
ResponseCallback
cb(
m_comm
,
m_event
);
35
try
{
36
m_range_server
->
wait_for_maintenance
(&cb);
37
}
38
catch
(
Exception
&e) {
39
HT_ERROR_OUT
<<
"WaitForMaintenance "
<< e <<
HT_END
;
40
}
41
}
Hypertable::RangeServer::Request::Handler::WaitForMaintenance::run
virtual void run()
Carries out the request.
Definition:
WaitForMaintenance.cc:33
WaitForMaintenance.h
Hypertable::RangeServer::Request::Handler
Definition:
AcknowledgeLoad.h:33
Hypertable::RangeServer::Request::Handler::WaitForMaintenance::m_range_server
Apps::RangeServer * m_range_server
Definition:
WaitForMaintenance.h:47
RangeServer.h
Declarations for RangeServer.
Hypertable::Apps::RangeServer::wait_for_maintenance
void wait_for_maintenance(ResponseCallback *cb)
Blocks while the maintenance queue is non-empty.
Definition:
RangeServer.cc:3627
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
Hypertable::ResponseCallback
This class is used to generate and deliver standard responses back to a client.
Definition:
ResponseCallback.h:46
Hypertable
Hypertable definitions
Definition:
ApplicationHandler.h:36
Hypertable::RangeServer::Request::Handler::WaitForMaintenance::m_comm
Comm * m_comm
Definition:
WaitForMaintenance.h:46
Hypertable::Exception
This is a generic exception class for Hypertable.
Definition:
Error.h:314
Hypertable::ApplicationHandler::m_event
EventPtr m_event
MESSAGE Event from which handler was initialized.
Definition:
ApplicationHandler.h:140
ResponseCallback.h
Declarations for ResponseCallback.
Generated on Tue Dec 22 2015 18:43:17 for Hypertable by
1.8.8