~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/scheduler.h

  • Committer: Brian Aker
  • Date: 2009-04-17 19:23:54 UTC
  • mfrom: (994.2.2 mordred)
  • Revision ID: brian@gaz-20090417192354-gyr9nvpuj6vrc2tv
Mergig Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#ifndef DRIZZLED_PLUGIN_SCHEDULING_H
24
24
#define DRIZZLED_PLUGIN_SCHEDULING_H
25
25
 
 
26
#include <string>
 
27
#include <vector>
 
28
 
26
29
class Scheduler
27
30
{
28
31
private:
56
59
class SchedulerFactory
57
60
{
58
61
  std::string name;
 
62
  std::vector<std::string> aliases;
59
63
protected:
60
64
  Scheduler *scheduler;
61
65
public:
64
68
  virtual ~SchedulerFactory() {}
65
69
  virtual Scheduler *operator()(void)= 0;
66
70
  std::string getName() {return name;}
 
71
  const std::vector<std::string>& getAliases() {return aliases;}
 
72
  void addAlias(std::string alias)
 
73
  {
 
74
    aliases.push_back(alias);
 
75
  }
 
76
 
67
77
};
68
78
 
69
79
#endif /* DRIZZLED_PLUGIN_SCHEDULING_H */