Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
scheduler.h
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Definitions required for Configuration Variables plugin
5
*
6
* Copyright (C) 2008 Sun Microsystems, Inc.
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; version 2 of the License.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#pragma once
23
24
#include <drizzled/plugin/plugin.h>
25
#include <drizzled/session.h>
26
#include <
drizzled/visibility.h
>
27
28
namespace
drizzled
{
29
namespace
plugin
{
30
35
class
DRIZZLED_API
Scheduler
:
public
Plugin
36
{
37
public
:
38
explicit
Scheduler
(std::string name_arg)
39
:
Plugin
(name_arg,
"Scheduler"
)
40
{}
41
46
virtual
bool
addSession(
const
Session::shared_ptr&)= 0;
47
51
virtual
void
killSession
(
Session
*) {}
52
56
virtual
void
killSessionNow
(
const
Session::shared_ptr&) {}
57
58
static
bool
addPlugin(
plugin::Scheduler
*);
59
static
void
removePlugin(
plugin::Scheduler
*);
60
static
bool
setPlugin(
const
std::string& name);
61
static
Scheduler
* getScheduler();
62
};
63
64
}
/* namespace plugin */
65
}
/* namespace drizzled */
66
drizzled
TODO: Rename this file - func.h is stupid.
Definition:
abort_exception.h:27
drizzled::Session
Definition:
session.h:81
drizzled::plugin::Plugin
Definition:
plugin.h:34
drizzled::plugin::Scheduler::killSessionNow
virtual void killSessionNow(const Session::shared_ptr &)
Definition:
scheduler.h:56
drizzled::plugin::Scheduler::killSession
virtual void killSession(Session *)
Definition:
scheduler.h:51
DRIZZLED_API
#define DRIZZLED_API
Definition:
visibility.h:62
drizzled::plugin::Scheduler
Definition:
scheduler.h:35
visibility.h
Visibility Control Macros.
plugin
Definition:
engine.cc:41
drizzled
plugin
scheduler.h
Generated on Thu Dec 4 2014 10:50:04 for drizzle by
1.8.8