diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-08-10 15:22:55 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-08-10 15:22:55 +0000 |
| commit | db46bab38ba1b9e96949ba8cd1ffaa59fe14ef34 (patch) | |
| tree | 46a41a2c3cfd29263cd159edd9c65e711a0722df /src/ServerStatMan.h | |
| parent | 6aba376430b45979a420cfe8fd0f8d6a3025f581 (diff) | |
2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added options to load/save the server's performance/status to a
file
and the timeout to drop their data.
--server-stat-of=FILE specifies the file to which performance
data
is saved.
--server-stat-if=FILE specifies the file to read previously
saved
by --server-stat-of option. Might be used with
--uri-selector=feedback.
--server-stat-timeout=TIMEOUT specifies timeout to invalidate
the data.
TIMEOUT is specified in seconds and the default value is
24hours.
* src/MultiUrlRequestInfo.cc
* src/OptionHandlerFactory.cc
* src/RequestGroupMan.cc
* src/RequestGroupMan.h
* src/ServerStatMan.cc
* src/ServerStatMan.h
* src/option_processing.cc
* src/prefs.cc
* src/prefs.h
* test/ServerStatManTest.cc
Diffstat (limited to 'src/ServerStatMan.h')
| -rw-r--r-- | src/ServerStatMan.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ServerStatMan.h b/src/ServerStatMan.h index 0104b5e5..574dc085 100644 --- a/src/ServerStatMan.h +++ b/src/ServerStatMan.h @@ -55,9 +55,9 @@ public: bool add(const SharedHandle<ServerStat>& serverStat); - void load(std::istream& in); + bool load(std::istream& in); - void save(std::ostream& out) const; + bool save(std::ostream& out) const; void removeStaleServerStat(time_t timeout); private: |
