Mercurial > hg > release > heapstats-2.1
changeset 146:3b4e142bca0f
Bug 2848: Show new configuration when it changed through JMX.
reviewed-by: ykubota
GitHub: https://github.com/HeapStats/heapstats/pull/14
author | Yasumasa Suenaga <yasuenag@gmail.com> |
---|---|
date | Sat, 13 Feb 2016 17:02:49 +0900 |
parents | 53699074fee2 |
children | f5896ee78e30 |
files | ChangeLog agent/src/heapstats-engines/heapstatsMBean.cpp |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Feb 13 17:01:02 2016 +0900 +++ b/ChangeLog Sat Feb 13 17:02:49 2016 +0900 @@ -1,6 +1,7 @@ 2016-02-13 Yasumasa Suenaga <yasuenag@gmail.com> * Bug2847: LogLevel cannot change through JMX. + * Bug2848: Show new configuration when it changed through JMX. 2016-02-09 KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp>
--- a/agent/src/heapstats-engines/heapstatsMBean.cpp Sat Feb 13 17:01:02 2016 +0900 +++ b/agent/src/heapstats-engines/heapstatsMBean.cpp Sat Feb 13 17:02:49 2016 +0900 @@ -1,7 +1,7 @@ /*! * \file heapstatsMBean.cpp * \brief JNI implementation for HeapStatsMBean. - * Copyright (C) 2014-2015 Yasumasa Suenaga + * Copyright (C) 2014-2016 Yasumasa Suenaga * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -598,6 +598,8 @@ if (!env->ExceptionOccurred()) { if (new_conf.validate()) { conf->merge(&new_conf); + logger->printInfoMsg("Configuration has been changed through JMX."); + conf->printSetting(); result = JNI_TRUE; } else { raiseException(env, "java/lang/IllegalArgumentException",