~ubuntu-branches/debian/sid/gearmand/sid

« back to all changes in this revision

Viewing changes to libtest/server_container.h

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2012-05-01 20:43:47 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120501204347-qaifvvjkktvc9upu
Tags: 0.32-1
* Imported Upstream version 0.32
* Remove spelling patch included upstream
* Remove documentation patch, we do not rebuild documentation
* Remove memcached patch, fixed upstream
* Use dh_autoreconf
* Use copyright format 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
  uint32_t count() const
59
59
  {
60
 
    return _count;
61
 
  }
62
 
 
63
 
  void set_count(uint32_t arg)
64
 
  {
65
 
    _count= arg;
 
60
    return servers.size();
66
61
  }
67
62
 
68
63
  void restart();
79
74
    return _username;
80
75
  }
81
76
 
82
 
 
83
 
  bool is_debug() const;
84
 
  bool is_helgrind() const;
85
 
  bool is_valgrind() const;
86
 
 
87
77
  bool socket()
88
78
  {
89
79
    return _socket;
108
98
 
109
99
 
110
100
  void shutdown_and_remove();
111
 
  void shutdown();
 
101
  bool shutdown();
112
102
  bool shutdown(uint32_t number_of_host);
113
103
 
 
104
  bool check() const;
 
105
 
114
106
  void push_server(Server *);
115
107
  Server *pop_server();
 
108
 
 
109
  unsigned long int servers_to_run() const
 
110
  {
 
111
    return _servers_to_run;
 
112
  }
 
113
 
 
114
  void set_servers_to_run(unsigned long int arg)
 
115
  {
 
116
    _servers_to_run= arg;
 
117
  }
 
118
 
 
119
private:
 
120
  unsigned long int _servers_to_run;
116
121
};
117
122
 
118
 
bool server_startup(server_startup_st&, const std::string&, in_port_t try_port, int argc, const char *argv[]);
 
123
bool server_startup(server_startup_st&, const std::string&, in_port_t try_port, int argc, const char *argv[], const bool opt_startup_message= true);
119
124
 
120
125
} // namespace libtest