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
FsBroker
Lib
Request
Handler
Factory.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 FsBroker_Lib_Request_Handler_Factory_h
28
#define FsBroker_Lib_Request_Handler_Factory_h
29
30
#include <
FsBroker/Lib/Broker.h
>
31
32
#include <
AsyncComm/ApplicationHandler.h
>
33
#include <
AsyncComm/Comm.h
>
34
#include <
AsyncComm/Event.h
>
35
36
namespace
Hypertable
{
37
namespace
FsBroker {
38
namespace
Lib
{
39
namespace
Request {
40
namespace
Handler {
41
44
46
class
Factory
{
47
48
public
:
49
51
enum
Type
{
52
FUNCTION_OPEN
= 0,
53
FUNCTION_CREATE
,
54
FUNCTION_CLOSE
,
55
FUNCTION_READ
,
56
FUNCTION_APPEND
,
57
FUNCTION_SEEK
,
58
FUNCTION_REMOVE
,
59
FUNCTION_SHUTDOWN
,
60
FUNCTION_LENGTH
,
61
FUNCTION_PREAD
,
62
FUNCTION_MKDIRS
,
63
FUNCTION_STATUS
,
64
FUNCTION_FLUSH
,
65
FUNCTION_RMDIR
,
66
FUNCTION_READDIR
,
67
FUNCTION_EXISTS
,
68
FUNCTION_RENAME
,
69
FUNCTION_DEBUG
,
70
FUNCTION_SYNC
,
71
FUNCTION_MAX
72
};
73
78
static
ApplicationHandler
*
create
(
Comm
*comm,
Broker
*broker,
79
EventPtr
&event);
80
};
81
83
84
}}}}}
85
86
#endif // FsBroker_Lib_Request_Handler_Factory_h
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_STATUS
Status.
Definition:
Factory.h:63
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_MAX
Maximum code marker.
Definition:
Factory.h:71
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_PREAD
Pread.
Definition:
Factory.h:61
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_SEEK
Seek.
Definition:
Factory.h:57
ApplicationHandler.h
Declarations of ApplicationHandler.
Hypertable::FsBroker::Lib::Broker
Abstract class to be implemented by brokers.
Definition:
Broker.h:51
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_LENGTH
Length.
Definition:
Factory.h:60
Hypertable::FsBroker::Lib::Request::Handler::Factory
Factory class for constructing application handlers from request events.
Definition:
Factory.h:46
Hypertable::EventPtr
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
Definition:
Event.h:228
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_RMDIR
Rmdir.
Definition:
Factory.h:65
Hypertable::FsBroker::Lib::Request::Handler::Factory::create
static ApplicationHandler * create(Comm *comm, Broker *broker, EventPtr &event)
Constructs a handler class from a request event.
Definition:
Factory.cc:57
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_APPEND
Append.
Definition:
Factory.h:56
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_SYNC
Sync.
Definition:
Factory.h:70
Event.h
Declarations for Event.
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_OPEN
Open.
Definition:
Factory.h:52
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_CLOSE
Close.
Definition:
Factory.h:54
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_RENAME
Rename.
Definition:
Factory.h:68
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_EXISTS
Exists.
Definition:
Factory.h:67
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_CREATE
Create.
Definition:
Factory.h:53
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_READDIR
Readdir.
Definition:
Factory.h:66
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_SHUTDOWN
Shutdown.
Definition:
Factory.h:59
Hypertable
Hypertable definitions
Definition:
ApplicationHandler.h:36
Hypertable::Comm
Entry point to AsyncComm service.
Definition:
Comm.h:61
Comm.h
Declarations for Comm.
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_REMOVE
Remove.
Definition:
Factory.h:58
Broker.h
Hypertable::ApplicationHandler
Base clase for application handlers.
Definition:
ApplicationHandler.h:67
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_READ
Read.
Definition:
Factory.h:55
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_MKDIRS
Mkdirs.
Definition:
Factory.h:62
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_DEBUG
Debug.
Definition:
Factory.h:69
Hypertable::FsBroker::Lib::Request::Handler::Factory::FUNCTION_FLUSH
Flush.
Definition:
Factory.h:64
Lib
Hypertable::FsBroker::Lib::Request::Handler::Factory::Type
Type
Enumeration for request function codes.
Definition:
Factory.h:51
Generated on Tue Dec 22 2015 18:43:08 for Hypertable by
1.8.8