0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DispatchHandlerOperationCompact.h
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 
29 #ifndef HYPERTABLE_DISPATCHHANDLEROPERATIONCOMPACT_H
30 #define HYPERTABLE_DISPATCHHANDLEROPERATIONCOMPACT_H
31 
32 #include "AsyncComm/CommAddress.h"
33 
35 
36 namespace Hypertable {
37 
45  public:
46 
55  const String &row, uint32_t range_types) :
56  DispatchHandlerOperation(context), m_table(table),
57  m_row(row), m_range_types(range_types) { }
58 
65  virtual void start(const String &location) {
66  CommAddress addr;
67  addr.set_proxy(location);
69  }
70 
71  private:
72 
75 
78 
80  uint32_t m_range_types;
81  };
82 
84  typedef std::shared_ptr<DispatchHandlerOperationCompact> DispatchHandlerOperationCompactPtr;
85 
86  /* @}*/
87 }
88 
89 #endif // HYPERTABLE_DISPATCHHANDLEROPERATIONCOMPACT_H
uint32_t m_range_types
Range type specification (see RangeServerProtocol::RangeType)
Dispatch handler to aggregate a set of RangeServer::compact results.
std::string String
A String is simply a typedef to std::string.
Definition: String.h:44
std::shared_ptr< DispatchHandlerOperationCompact > DispatchHandlerOperationCompactPtr
Smart pointer to DispatchHandlerOperationCompact.
Declarations for CommAddress.
TableIdentifierManaged m_table
Table identifier of table to be compacted
std::shared_ptr< Context > ContextPtr
Smart pointer to Context.
Definition: Context.h:265
Wrapper for TableIdentifier providing member storage.
DispatchHandler class for managing async RangeServer requests.
Declarations for DispatchHandlerOperation.
DispatchHandlerOperationCompact(ContextPtr &context, const TableIdentifier &table, const String &row, uint32_t range_types)
Constructor.
void set_proxy(const String &str)
Sets address type to CommAddress::PROXY and proxy name to p.
Definition: CommAddress.h:76
RangeServer::Client m_rsclient
Range server client object
Hypertable definitions
void compact(const CommAddress &addr, const TableIdentifier &table, const String &row, int32_t flags)
Issues a "compact" request synchronously.
Definition: Client.cc:86
virtual void start(const String &location)
Asynchronously issues compact request.
Address abstraction to hold either proxy name or IPv4:port address.
Definition: CommAddress.h:52