~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/scheduler.h

  • Committer: Brian Aker
  • Date: 2009-10-12 22:46:41 UTC
  • mfrom: (1130.2.27 plugin-base-class)
  • Revision ID: brian@gaz-20091012224641-gjo56i190y8c98xg
Merge Monty, default class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
3
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
 
 
 
3
 *
5
4
 *  Definitions required for Configuration Variables plugin
6
 
 
 
5
 *
7
6
 *  Copyright (C) 2008 Sun Microsystems
8
7
 *
9
8
 *  This program is free software; you can redistribute it and/or modify
35
34
 * This class should be used by scheduler plugins to implement custom session
36
35
 * schedulers.
37
36
 */
38
 
class Scheduler
 
37
class Scheduler : public Plugin
39
38
{
 
39
  /* Disable default constructors */
 
40
  Scheduler();
 
41
  Scheduler(const Scheduler &);
 
42
  Scheduler& operator=(const Scheduler &);
40
43
public:
41
 
  Scheduler(const char *name_arg) : 
42
 
    name(name_arg) {}
 
44
  explicit Scheduler(std::string name_arg)
 
45
    : Plugin(name_arg)
 
46
  {}
43
47
  virtual ~Scheduler() {}
44
48
 
45
49
  /**
63
67
  static bool setPlugin(const std::string& name);
64
68
  static Scheduler *getScheduler();
65
69
 
66
 
  /* TODO: make this private */
67
 
  const string name;
68
70
};
69
71
 
70
72
} /* end namespace drizzled::plugin */