0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
RequestHandlerDestroySession.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 "AsyncComm/CommBuf.h"
27 
28 #include "Hyperspace/Protocol.h"
29 #include "Hyperspace/Master.h"
31 #include "Hyperspace/SessionData.h"
32 
33 using namespace Hyperspace;
34 using namespace Hypertable;
35 
36 /*
37  *
38  */
40 
41  try {
42  HT_INFOF("Destroying session %llu", (Llu)m_session_id);
43  m_master->destroy_session(m_session_id);
44  }
45  catch (Exception &e) {
46  HT_ERROR_OUT << e << HT_END;
47  }
48 }
Declarations for Protocol.
long long unsigned int Llu
Shortcut for printf formats.
Definition: String.h:50
Hyperspace definitions
void destroy_session(uint64_t session_id)
Definition: Master.cc:305
virtual void run()
Carries out the request.
Logging routines and macros.
Compatibility Macros for C/C++.
#define HT_END
Definition: Logger.h:220
#define HT_ERROR_OUT
Definition: Logger.h:301
Hypertable definitions
Declarations for CommBuf.
#define HT_INFOF(msg,...)
Definition: Logger.h:272
This is a generic exception class for Hypertable.
Definition: Error.h:314
Error codes, Exception handling, error logging.