summaryrefslogtreecommitdiff
path: root/src/mod_stats.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-1/+21
| | | | | | | Several documentation callbacks (doc/0 and mod_doc/0) are implemented and `ejabberdctl man` command is added to generate a man page. Note that the command requires a2x to be installed (which is a part of asciidoc package).
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-3/+4
| | | | | | | | | | | | | Now every such string MUST be encapsulated into ?T() macro. The macro itself is defined in include/translate.hrl. Example: -module(foo). -export([bar/1]). -include("translate.hrl"). bar(Lang) -> translate:translate(Lang, ?T("baz")).
* Use new configuration validatorEvgeny Khramtsov2019-06-141-1/+1
|
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-2/+1
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-8/+5
| | | | | | | | | | | | | | | | | Since we got rid of all bottle-neck processes and we have a connection pool for every database, the option is no longer needed and in fact is detrimental: in practice what you get is just a bunch of overloaded processes in the IQ handlers pool no matter how much you increase the `iqdisc` value. Given that there are close to zero operators understanding the meaning of the option and, hence, not using it all, it's not simply deprecated but completely removed. The commit also deprecates the following functions: - gen_iq_handler:add_iq_handler/6 - gen_iq_handler:handle/5 - gen_iq_handler:iqdisc/1
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-4/+7
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Use cache for authentication backendsEvgeniy Khramtsov2017-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commit introduces the following API incompatibilities: In ejabberd_auth.erl: * dirty_get_registered_users/0 is renamed to get_users/0 * get_vh_registered_users/1 is renamed to get_users/1 * get_vh_registered_users/2 is renamed to get_users/2 * get_vh_registered_users_number/1 is renamed to count_users/1 * get_vh_registered_users_number/2 is renamed to count_users/2 In ejabberd_auth callbacks * plain_password_required/0 is replaced by plain_password_required/1 where the argument is a virtual host * store_type/0 is replaced by store_type/1 where the argument is a virtual host * set_password/3 is now an optional callback * remove_user/3 callback is no longer needed * remove_user/2 now should return `ok | {error, atom()}` * is_user_exists/2 now must only be implemented for backends with `external` store type * check_password/6 is no longer needed * check_password/4 now must only be implemented for backends with `external` store type * try_register/3 is now an optional callback and should return `ok | {error, atom()}` * dirty_get_registered_users/0 is no longer needed * get_vh_registered_users/1 is no longer needed * get_vh_registered_users/2 is renamed to get_users/2 * get_vh_registered_users_number/1 is no longer needed * get_vh_registered_users_number/2 is renamed to count_users/2 * get_password_s/2 is no longer needed * get_password/2 now must only be implemented for backends with `plain` or `scram` store type Additionally, the commit introduces two new callbacks: * use_cache/1 where the argument is a virtual host * cache_nodes/1 where the argument is a virtual host New options are also introduced: `auth_use_cache`, `auth_cache_missed`, `auth_cache_life_time` and `auth_cache_size`.
* Introduce 'iqdisc' global optionEvgeniy Khramtsov2017-05-041-1/+1
|
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-2/+1
| | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup.
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-1/+4
|
* Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|
* Get rid of excessive (io)list_to_binary/1 callsEvgeniy Khramtsov2016-11-241-15/+11
|
* Merge branch 'master' into xml-ngEvgeniy Khramtsov2016-11-121-7/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/adhoc.erl src/cyrsasl_oauth.erl src/ejabberd_c2s.erl src/ejabberd_config.erl src/ejabberd_service.erl src/gen_mod.erl src/mod_admin_extra.erl src/mod_announce.erl src/mod_carboncopy.erl src/mod_client_state.erl src/mod_configure.erl src/mod_echo.erl src/mod_mam.erl src/mod_muc.erl src/mod_muc_room.erl src/mod_offline.erl src/mod_pubsub.erl src/mod_stats.erl src/node_flat_sql.erl src/randoms.erl
| * Ignore offline sessions in statisticsHolger Weiss2016-10-111-7/+2
| | | | | | | | | | | | | | | | Offline sessions should not be counted when reporting the number of connected resources. Apart from that, this number is now also reported when using a non-default session management backend.
* | Rewrite mod_stats to use XML generatorEvgeniy Khramtsov2016-07-311-69/+35
|/
* Make modules loading in a dependent order (#1191)Evgeniy Khramtsov2016-07-061-1/+4
|
* Replace some ?ERR_* macros with ?ERRT_*Evgeniy Khramtsov2016-03-311-10/+14
|
* Switch to Fast XML moduleMickael Remond2016-02-031-2/+2
|
* Update copyright to 2016 (#901)Badlop2016-01-131-1/+1
|
* cosmetic cleanupChristophe Romain2015-10-071-7/+7
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-1/+5
|
* Document protocol support (EJABS-1620)Badlop2015-05-211-0/+2
|
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-1/+1
|
* Merge pull request #146 from jamielinux/masterbadlop2014-04-111-4/+3
|\ | | | | Update FSF address
| * Update FSF addressJamie Nguyen2014-02-221-4/+3
| |
* | Update copyright dates to 2014 (EJAB-1679)Badlop2014-03-131-1/+1
|/
* Switch to rebar build toolEvgeniy Khramtsov2013-06-131-0/+1
| | | | | | | | | | | | | | | | Use dynamic Rebar configuration Make iconv dependency optional Disable transient_supervisors compile option Add hipe compilation support Only compile ibrowse and lhttpc when needed Make it possible to generate an OTP application release Add --enable-debug compile option Add --enable-all compiler option Add --enable-tools configure option Add --with-erlang configure option. Add --enable-erlang-version-check configure option. Add lager support Improve the test suite
* Accumulated patch to binarize and indent codeBadlop2013-03-141-175/+189
|
* Update copyright datesAlexey Shchepin2013-01-241-1/+1
|
* Update copyright datesAlexey Shchepin2012-02-231-1/+1
|
* Remove useless case clauseEvgeniy Khramtsov2011-09-051-6/+1
|
* Fix ODBC account counting (thanks to Artem Sh)(EJAB-1491)Badlop2011-08-161-1/+6
|
* update copyright up to 2011Christophe Romain2011-02-141-1/+1
|
* Update year of ProcessOne copyright from 2009 to 2010 (EJAB-1159)Badlop2010-01-121-1/+1
| | | | SVN Revision: 2891
* * doc/guide.tex: Fix some English strings: JID -> Jabber ID;Badlop2009-01-121-2/+2
| | | | | | | | | jabberd 1.4 -> jabberd14; commited -> committed * src/*/*.erl: Likewise * src/msgs/*.msg: Likewise * src/msgs/*.po: Likewise SVN Revision: 1810
* * doc/guide.tex: Update copyright date 2008 to 2009 (EJAB-842)Badlop2009-01-121-2/+2
| | | | | | | | * doc/guide.html: Likewise * src/*/*.erl: Likewise * src/*/*.erl: Remove unneeded blankspaces in license text SVN Revision: 1804
* * doc/guide.tex: Update Process-one name to ProcessOne (EJAB-708)Badlop2008-07-311-1/+1
| | | | | | | | | | | * doc/guide.html: Likewise * doc/api/overview.edoc: Likewise * src/*/*.erl: Likewise * src/*/*.hrl: Likewise * src/*/*.c: Likewise * src/odbc/*.sql: Likewise SVN Revision: 1499
* * doc/guide.tex: Updated copyright dates to 2008Badlop2008-01-151-1/+1
| | | | | | * src/*: Likewise SVN Revision: 1153
* * applied copyright patch 2.Mickaël Rémond2007-12-241-5/+23
| | | | SVN Revision: 1112
* * src/mod_caps.erl: Fix compilation warnings: Part 2 (EJAB-290)Badlop2007-12-071-17/+17
| | | | | | | | | | | * src/mod_configure.erl: * src/mod_configure2.erl: * src/mod_offline_odbc.erl: * src/mod_shared_roster.erl: * src/mod_stats.erl: * src/mod_version.erl: SVN Revision: 1046
* * src/acl.erl and other 64 files: Remove Erlang module attributeBadlop2007-12-061-1/+0
| | | | | | | 'vsn' because it doesn't provide any worth feature, and it difficults hot code update (EJAB-440) SVN Revision: 1044
* * src/mod_stats.erl: UpdatedAlexey Shchepin2007-05-121-3/+3
| | | | | | * src/web/ejabberd_web_admin.erl: Likewise SVN Revision: 767
* * (all): Enhanced virtual hosting supportAlexey Shchepin2005-06-201-6/+6
| | | | SVN Revision: 370
* Merged the Process One contributions ( Virtual Hosting )tmallard2005-04-171-17/+34
| | | | SVN Revision: 307