CACAO
management.hpp
Go to the documentation of this file.
1 /* src/native/vm/openjdk/management.hpp - HotSpot management interface functions
2 
3  Copyright (C) 2008 Theobroma Systems Ltd.
4 
5  This file is part of CACAO.
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2, or (at
10  your option) any later version.
11 
12  This program is distributed in the hope that it will be useful, but
13  WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  02110-1301, USA.
21 
22 */
23 
24 
25 #ifndef _MANAGEMENT_HPP
26 #define _MANAGEMENT_HPP
27 
28 // Include our JNI header before the JMM header, because the JMM
29 // header include jni.h and we want to override the typedefs in jni.h.
30 #include "native/jni.hpp"
31 
32 #include INCLUDE_JMM_H
33 
34 /**
35  * Management support.
36  */
37 class Management {
38 private:
39  jmmOptionalSupport _optional_support;
40 
41 public:
42  Management();
43 
44  static void* get_jmm_interface(int version);
45 
46  const jmmOptionalSupport& get_optional_support() const;
47 };
48 
49 
50 #endif // _MANAGEMENT_HPP
51 
52 
53 /*
54  * These are local overrides for various environment variables in Emacs.
55  * Please do not remove this and leave it at the end of the file, where
56  * Emacs will automagically detect them.
57  * ---------------------------------------------------------------------
58  * Local variables:
59  * mode: c++
60  * indent-tabs-mode: t
61  * c-basic-offset: 4
62  * tab-width: 4
63  * End:
64  * vim:noexpandtab:sw=4:ts=4:
65  */
Management support.
Definition: management.hpp:37
static void * get_jmm_interface(int version)
Return the requested management interface.
Definition: management.cpp:458
const jmmOptionalSupport & get_optional_support() const
Return a pointer to the optional support structure.
Definition: management.cpp:98
Management()
Initialize the Management subsystem.
Definition: management.cpp:70
static void version(bool opt_exit)
Definition: vm.cpp:529
jmmOptionalSupport _optional_support
Definition: management.hpp:39