Mercurial > hg > release > heapstats-2.1
view agent/src/heapstats-engines/heapstatsMBean.hpp @ 233:1ac3803a35d1
Bug 3403: HeapStats Agent might crash if application exits with System.exit()
Reviewed-by: ykubota
https://github.com/HeapStats/heapstats/pull/100
author | Yasumasa Suenaga <yasuenag@gmail.com> |
---|---|
date | Wed, 14 Jun 2017 16:30:31 +0900 |
parents | 31f4aed852e6 |
children |
line wrap: on
line source
/*! * \file heapstatsMBean.hpp * \brief JNI implementation for HeapStatsMBean. * Copyright (C) 2014-2017 Yasumasa Suenaga * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #ifndef HEAPSTATSMBEAN_HPP #define HEAPSTATSMBEAN_HPP #include <jni.h> #ifdef __cplusplus extern "C" { #endif JNIEXPORT void JNICALL RegisterHeapStatsNative(JNIEnv *env, jclass cls); JNIEXPORT jstring JNICALL GetHeapStatsVersion(JNIEnv *env, jobject obj); JNIEXPORT jobject JNICALL GetConfiguration(JNIEnv *env, jobject obj, jstring key); JNIEXPORT jobject JNICALL GetConfigurationList(JNIEnv *env, jobject obj); JNIEXPORT jboolean JNICALL ChangeConfiguration(JNIEnv *env, jobject obj, jstring key, jobject value); JNIEXPORT jboolean JNICALL InvokeLogCollection(JNIEnv *env, jobject obj); JNIEXPORT jboolean JNICALL InvokeAllLogCollection(JNIEnv *env, jobject obj); #ifdef __cplusplus } #endif void UnregisterHeapStatsNatives(JNIEnv *env); #endif // HEAPSTATSMBEAN_HPP