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/OptionHandlerFactory.cc | |
| 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/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 8153f6eb..4c106fb2 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -150,6 +150,11 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() std::deque<std::string> (¶ms[0], ¶ms[arrayLength(params)])))); } + handlers.push_back(SH(new NumberOptionHandler(PREF_SERVER_STAT_TIMEOUT, + 0, INT32_MAX))); + handlers.push_back(SH(new DefaultOptionHandler(PREF_SERVER_STAT_IF))); + handlers.push_back(SH(new DefaultOptionHandler(PREF_SERVER_STAT_OF))); + return handlers; } |
