summaryrefslogtreecommitdiff
path: root/libjava/gnu/java/lang/management/MemoryMXBeanImpl.h
blob: 3c87a0f355b19063201498cc6a16f71e40c76bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_java_lang_management_MemoryMXBeanImpl__
#define __gnu_java_lang_management_MemoryMXBeanImpl__

#pragma interface

#include <gnu/java/lang/management/BeanImpl.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace lang
      {
        namespace management
        {
            class MemoryMXBeanImpl;
        }
      }
    }
  }
  namespace javax
  {
    namespace management
    {
        class MBeanNotificationInfo;
        class NotificationFilter;
        class NotificationListener;
      namespace openmbean
      {
          class CompositeType;
      }
    }
  }
}

class gnu::java::lang::management::MemoryMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
{

public:
  MemoryMXBeanImpl();
  void gc();
  ::java::lang::management::MemoryUsage * getHeapMemoryUsage();
  ::java::lang::management::MemoryUsage * getNonHeapMemoryUsage();
  jint getObjectPendingFinalizationCount();
  jboolean isVerbose();
  void setVerbose(jboolean);
  void addNotificationListener(::javax::management::NotificationListener *, ::javax::management::NotificationFilter *, ::java::lang::Object *);
  JArray< ::javax::management::MBeanNotificationInfo * > * getNotificationInfo();
  void removeNotificationListener(::javax::management::NotificationListener *);
  void removeNotificationListener(::javax::management::NotificationListener *, ::javax::management::NotificationFilter *, ::java::lang::Object *);
public: // actually package-private
  void fireNotification(::java::lang::String *, ::java::lang::String *, jlong, jlong, jlong, jlong, jlong);
  void fireThresholdExceededNotification(::java::lang::String *, jlong, jlong, jlong, jlong, jlong);
  void fireCollectionThresholdExceededNotification(::java::lang::String *, jlong, jlong, jlong, jlong, jlong);
private:
  ::java::util::List * __attribute__((aligned(__alignof__( ::gnu::java::lang::management::BeanImpl)))) listeners;
  jlong notificationCount;
public:
  static ::javax::management::openmbean::CompositeType * notifType;
  static ::javax::management::openmbean::CompositeType * usageType;
  static ::java::lang::Class class$;
};

#endif // __gnu_java_lang_management_MemoryMXBeanImpl__