summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/lang/management
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-09 19:58:05 +0000
commit65bf3316cf384588453604be6b4f0ed3751a8b0f (patch)
tree996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/gnu/java/lang/management
parent8fc56618a84446beccd45b80381cdfe0e94050df (diff)
downloadppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.tar.gz
ppe42-gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.zip
Merged gcj-eclipse branch to trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java/lang/management')
-rw-r--r--libjava/gnu/java/lang/management/BeanImpl.h66
-rw-r--r--libjava/gnu/java/lang/management/ClassLoadingMXBeanImpl.h40
-rw-r--r--libjava/gnu/java/lang/management/CompilationMXBeanImpl.h42
-rw-r--r--libjava/gnu/java/lang/management/GarbageCollectorMXBeanImpl.h37
-rw-r--r--libjava/gnu/java/lang/management/MemoryMXBeanImpl$ListenerData.h55
-rw-r--r--libjava/gnu/java/lang/management/MemoryMXBeanImpl.h70
-rw-r--r--libjava/gnu/java/lang/management/MemoryManagerMXBeanImpl.h46
-rw-r--r--libjava/gnu/java/lang/management/MemoryPoolMXBeanImpl.h60
-rw-r--r--libjava/gnu/java/lang/management/OperatingSystemMXBeanImpl.h39
-rw-r--r--libjava/gnu/java/lang/management/RuntimeMXBeanImpl.h58
-rw-r--r--libjava/gnu/java/lang/management/ThreadMXBeanImpl.h67
-rw-r--r--libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.h40
-rw-r--r--libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java19
-rw-r--r--libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.h37
-rw-r--r--libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java5
-rw-r--r--libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.h38
-rw-r--r--libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java10
-rw-r--r--libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.h41
-rw-r--r--libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java19
-rw-r--r--libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.h40
-rw-r--r--libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java5
-rw-r--r--libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.h51
-rw-r--r--libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java64
-rw-r--r--libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.h43
-rw-r--r--libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.java32
-rw-r--r--libjava/gnu/java/lang/management/VMThreadMXBeanImpl.h53
-rw-r--r--libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java44
-rw-r--r--libjava/gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc49
-rw-r--r--libjava/gnu/java/lang/management/natVMCompilationMXBeanImpl.cc11
-rw-r--r--libjava/gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc18
-rw-r--r--libjava/gnu/java/lang/management/natVMMemoryMXBeanImpl.cc47
-rw-r--r--libjava/gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc11
-rw-r--r--libjava/gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc111
-rw-r--r--libjava/gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc39
-rw-r--r--libjava/gnu/java/lang/management/natVMThreadMXBeanImpl.cc67
35 files changed, 1334 insertions, 140 deletions
diff --git a/libjava/gnu/java/lang/management/BeanImpl.h b/libjava/gnu/java/lang/management/BeanImpl.h
new file mode 100644
index 00000000000..56b8a050cb3
--- /dev/null
+++ b/libjava/gnu/java/lang/management/BeanImpl.h
@@ -0,0 +1,66 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_BeanImpl__
+#define __gnu_java_lang_management_BeanImpl__
+
+#pragma interface
+
+#include <javax/management/StandardMBean.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class BeanImpl;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace management
+ {
+ class MBeanInfo;
+ class MBeanParameterInfo;
+ namespace openmbean
+ {
+ class OpenMBeanInfo;
+ class OpenMBeanParameterInfo;
+ class OpenType;
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::BeanImpl : public ::javax::management::StandardMBean
+{
+
+public: // actually protected
+ BeanImpl(::java::lang::Class *);
+ virtual void cacheMBeanInfo(::javax::management::MBeanInfo *);
+ virtual void checkMonitorPermissions();
+ virtual void checkControlPermissions();
+public:
+ virtual ::java::lang::Object * getAttribute(::java::lang::String *);
+public: // actually protected
+ virtual ::javax::management::MBeanInfo * getCachedMBeanInfo();
+public:
+ virtual ::javax::management::MBeanInfo * getMBeanInfo();
+private:
+ ::javax::management::openmbean::OpenType * getTypeFromClass(::java::lang::Class *);
+ JArray< ::javax::management::openmbean::OpenMBeanParameterInfo * > * translateSignature(JArray< ::javax::management::MBeanParameterInfo * > *);
+ ::javax::management::openmbean::OpenMBeanParameterInfo * translate(::java::lang::String *);
+ ::javax::management::openmbean::OpenMBeanInfo * __attribute__((aligned(__alignof__( ::javax::management::StandardMBean)))) openInfo;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_BeanImpl__
diff --git a/libjava/gnu/java/lang/management/ClassLoadingMXBeanImpl.h b/libjava/gnu/java/lang/management/ClassLoadingMXBeanImpl.h
new file mode 100644
index 00000000000..c03db232426
--- /dev/null
+++ b/libjava/gnu/java/lang/management/ClassLoadingMXBeanImpl.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_ClassLoadingMXBeanImpl__
+#define __gnu_java_lang_management_ClassLoadingMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/BeanImpl.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class ClassLoadingMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::ClassLoadingMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
+{
+
+public:
+ ClassLoadingMXBeanImpl();
+ jint getLoadedClassCount();
+ jlong getTotalLoadedClassCount();
+ jlong getUnloadedClassCount();
+ jboolean isVerbose();
+ void setVerbose(jboolean);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_ClassLoadingMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/CompilationMXBeanImpl.h b/libjava/gnu/java/lang/management/CompilationMXBeanImpl.h
new file mode 100644
index 00000000000..c11d3fb8389
--- /dev/null
+++ b/libjava/gnu/java/lang/management/CompilationMXBeanImpl.h
@@ -0,0 +1,42 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_CompilationMXBeanImpl__
+#define __gnu_java_lang_management_CompilationMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/BeanImpl.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class CompilationMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::CompilationMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
+{
+
+public:
+ CompilationMXBeanImpl();
+ ::java::lang::String * getName();
+ jboolean isCompilationTimeMonitoringSupported();
+ jlong getTotalCompilationTime();
+private:
+ static ::java::lang::String * COMPILER_NAME;
+ static ::java::lang::String * COMPILATION_TIME_SUPPORT;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_CompilationMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/GarbageCollectorMXBeanImpl.h b/libjava/gnu/java/lang/management/GarbageCollectorMXBeanImpl.h
new file mode 100644
index 00000000000..cfefdb653e3
--- /dev/null
+++ b/libjava/gnu/java/lang/management/GarbageCollectorMXBeanImpl.h
@@ -0,0 +1,37 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_GarbageCollectorMXBeanImpl__
+#define __gnu_java_lang_management_GarbageCollectorMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/MemoryManagerMXBeanImpl.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class GarbageCollectorMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::GarbageCollectorMXBeanImpl : public ::gnu::java::lang::management::MemoryManagerMXBeanImpl
+{
+
+public:
+ GarbageCollectorMXBeanImpl(::java::lang::String *);
+ jlong getCollectionCount();
+ jlong getCollectionTime();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_GarbageCollectorMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/MemoryMXBeanImpl$ListenerData.h b/libjava/gnu/java/lang/management/MemoryMXBeanImpl$ListenerData.h
new file mode 100644
index 00000000000..0be0fe815ae
--- /dev/null
+++ b/libjava/gnu/java/lang/management/MemoryMXBeanImpl$ListenerData.h
@@ -0,0 +1,55 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_MemoryMXBeanImpl$ListenerData__
+#define __gnu_java_lang_management_MemoryMXBeanImpl$ListenerData__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class MemoryMXBeanImpl;
+ class MemoryMXBeanImpl$ListenerData;
+ }
+ }
+ }
+ }
+ namespace javax
+ {
+ namespace management
+ {
+ class NotificationFilter;
+ class NotificationListener;
+ }
+ }
+}
+
+class gnu::java::lang::management::MemoryMXBeanImpl$ListenerData : public ::java::lang::Object
+{
+
+public:
+ MemoryMXBeanImpl$ListenerData(::gnu::java::lang::management::MemoryMXBeanImpl *, ::javax::management::NotificationListener *, ::javax::management::NotificationFilter *, ::java::lang::Object *);
+ virtual ::javax::management::NotificationListener * getListener();
+ virtual ::javax::management::NotificationFilter * getFilter();
+ virtual ::java::lang::Object * getPassback();
+ virtual jboolean equals(::java::lang::Object *);
+private:
+ ::javax::management::NotificationListener * __attribute__((aligned(__alignof__( ::java::lang::Object)))) listener;
+ ::javax::management::NotificationFilter * filter;
+ ::java::lang::Object * passback;
+public: // actually package-private
+ ::gnu::java::lang::management::MemoryMXBeanImpl * this$0;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_MemoryMXBeanImpl$ListenerData__
diff --git a/libjava/gnu/java/lang/management/MemoryMXBeanImpl.h b/libjava/gnu/java/lang/management/MemoryMXBeanImpl.h
new file mode 100644
index 00000000000..3c87a0f355b
--- /dev/null
+++ b/libjava/gnu/java/lang/management/MemoryMXBeanImpl.h
@@ -0,0 +1,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__
diff --git a/libjava/gnu/java/lang/management/MemoryManagerMXBeanImpl.h b/libjava/gnu/java/lang/management/MemoryManagerMXBeanImpl.h
new file mode 100644
index 00000000000..2ddbf70eac1
--- /dev/null
+++ b/libjava/gnu/java/lang/management/MemoryManagerMXBeanImpl.h
@@ -0,0 +1,46 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_MemoryManagerMXBeanImpl__
+#define __gnu_java_lang_management_MemoryManagerMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/BeanImpl.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class MemoryManagerMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::MemoryManagerMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
+{
+
+public:
+ MemoryManagerMXBeanImpl(::java::lang::String *);
+public: // actually protected
+ MemoryManagerMXBeanImpl(::java::lang::String *, ::java::lang::Class *);
+public:
+ virtual JArray< ::java::lang::String * > * getMemoryPoolNames();
+ virtual ::java::lang::String * getName();
+ virtual jboolean isValid();
+public: // actually protected
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::java::lang::management::BeanImpl)))) name;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_MemoryManagerMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/MemoryPoolMXBeanImpl.h b/libjava/gnu/java/lang/management/MemoryPoolMXBeanImpl.h
new file mode 100644
index 00000000000..ff3734d2858
--- /dev/null
+++ b/libjava/gnu/java/lang/management/MemoryPoolMXBeanImpl.h
@@ -0,0 +1,60 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_MemoryPoolMXBeanImpl__
+#define __gnu_java_lang_management_MemoryPoolMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/BeanImpl.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class MemoryPoolMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::MemoryPoolMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
+{
+
+public:
+ MemoryPoolMXBeanImpl(::java::lang::String *);
+ ::java::lang::management::MemoryUsage * getCollectionUsage();
+ jlong getCollectionUsageThreshold();
+ jlong getCollectionUsageThresholdCount();
+ JArray< ::java::lang::String * > * getMemoryManagerNames();
+ ::java::lang::String * getName();
+ ::java::lang::management::MemoryUsage * getPeakUsage();
+ ::java::lang::management::MemoryType * getType();
+ ::java::lang::management::MemoryUsage * getUsage();
+ jlong getUsageThreshold();
+ jlong getUsageThresholdCount();
+ jboolean isCollectionUsageThresholdExceeded();
+ jboolean isCollectionUsageThresholdSupported();
+ jboolean isUsageThresholdExceeded();
+ jboolean isUsageThresholdSupported();
+ jboolean isValid();
+ void resetPeakUsage();
+ void setCollectionUsageThreshold(jlong);
+ void setUsageThreshold(jlong);
+private:
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::java::lang::management::BeanImpl)))) name;
+ static ::java::lang::String * COLLECTION_USAGE_THRESHOLD;
+ static ::java::lang::String * USAGE_THRESHOLD;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_MemoryPoolMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/OperatingSystemMXBeanImpl.h b/libjava/gnu/java/lang/management/OperatingSystemMXBeanImpl.h
new file mode 100644
index 00000000000..41385fe2542
--- /dev/null
+++ b/libjava/gnu/java/lang/management/OperatingSystemMXBeanImpl.h
@@ -0,0 +1,39 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_OperatingSystemMXBeanImpl__
+#define __gnu_java_lang_management_OperatingSystemMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/BeanImpl.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class OperatingSystemMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::OperatingSystemMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
+{
+
+public:
+ OperatingSystemMXBeanImpl();
+ ::java::lang::String * getArch();
+ jint getAvailableProcessors();
+ ::java::lang::String * getName();
+ ::java::lang::String * getVersion();
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_OperatingSystemMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/RuntimeMXBeanImpl.h b/libjava/gnu/java/lang/management/RuntimeMXBeanImpl.h
new file mode 100644
index 00000000000..f46f6df2c5a
--- /dev/null
+++ b/libjava/gnu/java/lang/management/RuntimeMXBeanImpl.h
@@ -0,0 +1,58 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_RuntimeMXBeanImpl__
+#define __gnu_java_lang_management_RuntimeMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/BeanImpl.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class RuntimeMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::RuntimeMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
+{
+
+public:
+ RuntimeMXBeanImpl();
+ ::java::lang::String * getBootClassPath();
+ ::java::lang::String * getClassPath();
+ ::java::util::List * getInputArguments();
+ ::java::lang::String * getLibraryPath();
+ ::java::lang::String * getManagementSpecVersion();
+ ::java::lang::String * getName();
+ ::java::lang::String * getSpecName();
+ ::java::lang::String * getSpecVendor();
+ ::java::lang::String * getSpecVersion();
+ jlong getStartTime();
+ ::java::util::Map * getSystemProperties();
+ jlong getUptime();
+ ::java::lang::String * getVmName();
+ ::java::lang::String * getVmVendor();
+ ::java::lang::String * getVmVersion();
+ jboolean isBootClassPathSupported();
+private:
+ static ::java::lang::String * SUN_BOOT_CLASS_PATH;
+ static ::java::lang::String * JAVA_BOOT_CLASS_PATH;
+ jlong __attribute__((aligned(__alignof__( ::gnu::java::lang::management::BeanImpl)))) startTime;
+ ::java::lang::String * bootClassPath;
+ jboolean bootClassPathSupported;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_RuntimeMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/ThreadMXBeanImpl.h b/libjava/gnu/java/lang/management/ThreadMXBeanImpl.h
new file mode 100644
index 00000000000..3a8fd5f3033
--- /dev/null
+++ b/libjava/gnu/java/lang/management/ThreadMXBeanImpl.h
@@ -0,0 +1,67 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_ThreadMXBeanImpl__
+#define __gnu_java_lang_management_ThreadMXBeanImpl__
+
+#pragma interface
+
+#include <gnu/java/lang/management/BeanImpl.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class ThreadMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::ThreadMXBeanImpl : public ::gnu::java::lang::management::BeanImpl
+{
+
+public:
+ ThreadMXBeanImpl();
+ JArray< jlong > * findMonitorDeadlockedThreads();
+ JArray< jlong > * getAllThreadIds();
+ jlong getCurrentThreadCpuTime();
+ jlong getCurrentThreadUserTime();
+ jint getDaemonThreadCount();
+ jint getPeakThreadCount();
+ jint getThreadCount();
+ jlong getThreadCpuTime(jlong);
+ ::java::lang::management::ThreadInfo * getThreadInfo(jlong);
+ JArray< ::java::lang::management::ThreadInfo * > * getThreadInfo(JArray< jlong > *);
+ ::java::lang::management::ThreadInfo * getThreadInfo(jlong, jint);
+ JArray< ::java::lang::management::ThreadInfo * > * getThreadInfo(JArray< jlong > *, jint);
+ jlong getThreadUserTime(jlong);
+ jlong getTotalStartedThreadCount();
+ jboolean isCurrentThreadCpuTimeSupported();
+ jboolean isThreadContentionMonitoringEnabled();
+ jboolean isThreadContentionMonitoringSupported();
+ jboolean isThreadCpuTimeEnabled();
+ jboolean isThreadCpuTimeSupported();
+ void resetPeakThreadCount();
+ void setThreadContentionMonitoringEnabled(jboolean);
+ void setThreadCpuTimeEnabled(jboolean);
+private:
+ static ::java::lang::String * CURRENT_THREAD_TIME_SUPPORT;
+ static ::java::lang::String * THREAD_TIME_SUPPORT;
+ static ::java::lang::String * CONTENTION_SUPPORT;
+ static ::java::lang::String * TIME_ENABLED;
+ jboolean __attribute__((aligned(__alignof__( ::gnu::java::lang::management::BeanImpl)))) timeEnabled;
+ jboolean contentionEnabled;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_ThreadMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.h b/libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.h
new file mode 100644
index 00000000000..b381004460f
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMClassLoadingMXBeanImpl__
+#define __gnu_java_lang_management_VMClassLoadingMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMClassLoadingMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMClassLoadingMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMClassLoadingMXBeanImpl();
+ static jint getLoadedClassCount();
+ static jlong getUnloadedClassCount();
+ static jboolean isVerbose();
+ static void setVerbose(jboolean);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMClassLoadingMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java b/libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java
index 77ddbf5eb51..c1c7d13dd44 100644
--- a/libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java
@@ -55,10 +55,7 @@ final class VMClassLoadingMXBeanImpl
*
* @return the number of loaded classes.
*/
- static int getLoadedClassCount()
- {
- return -1;
- }
+ static native int getLoadedClassCount();
/**
* Returns the number of classes that have been unloaded
@@ -66,10 +63,7 @@ final class VMClassLoadingMXBeanImpl
*
* @return the number of unloaded classes.
*/
- static long getUnloadedClassCount()
- {
- return -1;
- }
+ static native long getUnloadedClassCount();
/**
* Returns true if the virtual machine will emit additional
@@ -78,10 +72,7 @@ final class VMClassLoadingMXBeanImpl
*
* @return true if verbose class loading output is on.
*/
- static boolean isVerbose()
- {
- return false;
- }
+ static native boolean isVerbose();
/**
* Turns on or off the emission of additional information
@@ -93,8 +84,6 @@ final class VMClassLoadingMXBeanImpl
* @param verbose the new setting for verbose class loading
* output.
*/
- static void setVerbose(boolean verbose)
- {
- }
+ static native void setVerbose(boolean verbose);
}
diff --git a/libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.h b/libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.h
new file mode 100644
index 00000000000..31967e13424
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.h
@@ -0,0 +1,37 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMCompilationMXBeanImpl__
+#define __gnu_java_lang_management_VMCompilationMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMCompilationMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMCompilationMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMCompilationMXBeanImpl();
+ static jlong getTotalCompilationTime();
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMCompilationMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java b/libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java
index d529cdc8c44..b9b5bbcefc7 100644
--- a/libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java
@@ -61,9 +61,6 @@ final class VMCompilationMXBeanImpl
* @return the number of milliseconds spent
* compiling.
*/
- static long getTotalCompilationTime()
- {
- return -1;
- }
+ static native long getTotalCompilationTime();
}
diff --git a/libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.h b/libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.h
new file mode 100644
index 00000000000..b01f97cd8a4
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.h
@@ -0,0 +1,38 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMGarbageCollectorMXBeanImpl__
+#define __gnu_java_lang_management_VMGarbageCollectorMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMGarbageCollectorMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMGarbageCollectorMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMGarbageCollectorMXBeanImpl();
+ static jlong getCollectionCount(::java::lang::String *);
+ static jlong getCollectionTime(::java::lang::String *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMGarbageCollectorMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java b/libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java
index b56efa954c1..2a202849a8f 100644
--- a/libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java
@@ -61,10 +61,7 @@ final class VMGarbageCollectorMXBeanImpl
* @return the number of collections made, or -1 if this is
* undefined.
*/
- static long getCollectionCount(String name)
- {
- return -1;
- }
+ static native long getCollectionCount(String name);
/**
* Returns the accumulated number of milliseconds this garbage
@@ -78,9 +75,6 @@ final class VMGarbageCollectorMXBeanImpl
* @return the accumulated number of milliseconds spent collecting,
* or -1 if this is undefined.
*/
- static long getCollectionTime(String name)
- {
- return -1;
- }
+ static native long getCollectionTime(String name);
}
diff --git a/libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.h b/libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.h
new file mode 100644
index 00000000000..a31c551c36f
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.h
@@ -0,0 +1,41 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMMemoryMXBeanImpl__
+#define __gnu_java_lang_management_VMMemoryMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMMemoryMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMMemoryMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMMemoryMXBeanImpl();
+ static ::java::lang::management::MemoryUsage * getHeapMemoryUsage();
+ static ::java::lang::management::MemoryUsage * getNonHeapMemoryUsage();
+ static jint getObjectPendingFinalizationCount();
+ static jboolean isVerbose();
+ static void setVerbose(jboolean);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMMemoryMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java b/libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java
index 660de5eb707..193e3353517 100644
--- a/libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java
@@ -76,20 +76,14 @@ final class VMMemoryMXBeanImpl
* @return an {@link java.lang.management.MemoryUsage} instance
* for non-heap memory.
*/
- static MemoryUsage getNonHeapMemoryUsage()
- {
- return null;
- }
+ static native MemoryUsage getNonHeapMemoryUsage();
/**
* Returns the number of objects ready to be garbage collected.
*
* @return the number of finalizable objects.
*/
- static int getObjectPendingFinalizationCount()
- {
- return -1;
- }
+ static native int getObjectPendingFinalizationCount();
/**
* Returns true if the virtual machine will emit additional
@@ -98,10 +92,7 @@ final class VMMemoryMXBeanImpl
*
* @return true if verbose class loading output is on.
*/
- static boolean isVerbose()
- {
- return false;
- }
+ static native boolean isVerbose();
/**
* Turns on or off the emission of additional information
@@ -113,8 +104,6 @@ final class VMMemoryMXBeanImpl
* @param verbose the new setting for verbose class loading
* output.
*/
- static void setVerbose(boolean verbose)
- {
- }
+ static native void setVerbose(boolean verbose);
}
diff --git a/libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.h b/libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.h
new file mode 100644
index 00000000000..3a174c82a8a
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMMemoryManagerMXBeanImpl__
+#define __gnu_java_lang_management_VMMemoryManagerMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMMemoryManagerMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMMemoryManagerMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMMemoryManagerMXBeanImpl();
+ static JArray< ::java::lang::String * > * getMemoryPoolNames(::java::lang::String *);
+ static jboolean isValid(::java::lang::String *);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMMemoryManagerMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java b/libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java
index 2db4cf4c14b..0a4204a6d57 100644
--- a/libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java
@@ -90,9 +90,6 @@ final class VMMemoryManagerMXBeanImpl
* @param name the name of the memory manager.
* @return true if this memory manager is valid.
*/
- static boolean isValid(String name)
- {
- return false;
- }
+ static native boolean isValid(String name);
}
diff --git a/libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.h b/libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.h
new file mode 100644
index 00000000000..623162ee886
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.h
@@ -0,0 +1,51 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMMemoryPoolMXBeanImpl__
+#define __gnu_java_lang_management_VMMemoryPoolMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMMemoryPoolMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMMemoryPoolMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMMemoryPoolMXBeanImpl();
+ static ::java::lang::management::MemoryUsage * getCollectionUsage(::java::lang::String *);
+ static jlong getCollectionUsageThreshold(::java::lang::String *);
+ static jlong getCollectionUsageThresholdCount(::java::lang::String *);
+ static JArray< ::java::lang::String * > * getMemoryManagerNames(::java::lang::String *);
+ static ::java::lang::management::MemoryUsage * getPeakUsage(::java::lang::String *);
+ static ::java::lang::String * getType(::java::lang::String *);
+ static ::java::lang::management::MemoryUsage * getUsage(::java::lang::String *);
+ static jlong getUsageThreshold(::java::lang::String *);
+ static jlong getUsageThresholdCount(::java::lang::String *);
+ static jboolean isValid(::java::lang::String *);
+ static void resetPeakUsage(::java::lang::String *);
+ static void setCollectionUsageThreshold(::java::lang::String *, jlong);
+ static void setUsageThreshold(::java::lang::String *, jlong);
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMMemoryPoolMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java b/libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
index d0f85b68425..723d4e89713 100644
--- a/libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
@@ -59,10 +59,7 @@ final class VMMemoryPoolMXBeanImpl
* containing the statistics or <code>null</code>
* if this pool does not support such statistics.
*/
- static MemoryUsage getCollectionUsage(String name)
- {
- return null;
- }
+ static native MemoryUsage getCollectionUsage(String name);
/**
* Returns the collection usage threshold for the specified pool.
@@ -74,10 +71,7 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to obtain statistics on.
* @return the collection usage threshold.
*/
- static long getCollectionUsageThreshold(String name)
- {
- return -1;
- }
+ static native long getCollectionUsageThreshold(String name);
/**
* Returns the number of times the collection usage threshold
@@ -90,10 +84,7 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to obtain statistics on.
* @return the collection usage threshold count.
*/
- static long getCollectionUsageThresholdCount(String name)
- {
- return -1;
- }
+ static native long getCollectionUsageThresholdCount(String name);
/**
* Returns an array of names of memory managers which manage
@@ -102,10 +93,7 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to obtain statistics on.
* @return a list of memory managers for the pool.
*/
- static String[] getMemoryManagerNames(String name)
- {
- return new String[0];
- }
+ static native String[] getMemoryManagerNames(String name);
/**
* Returns the peak usage level of the specified pool.
@@ -115,22 +103,16 @@ final class VMMemoryPoolMXBeanImpl
* @return a {@link java.lang.management.MemoryUsage} object
* containing the statistics.
*/
- static MemoryUsage getPeakUsage(String name)
- {
- return null;
- }
+ static native MemoryUsage getPeakUsage(String name);
/**
- * Returns the type of memory used by the specified pool.
+ * Returns the type of memory used by the specified pool.
* The value must be either "HEAP" or "NON_HEAP".
*
* @param name the name of the pool to obtain statistics on.
* @return the type of the given pool.
*/
- static String getType(String name)
- {
- return "HEAP";
- }
+ static native String getType(String name);
/**
* Returns the current usage level of the specified pool.
@@ -140,10 +122,7 @@ final class VMMemoryPoolMXBeanImpl
* @return a {@link java.lang.management.MemoryUsage} object
* containing the statistics.
*/
- static MemoryUsage getUsage(String name)
- {
- return null;
- }
+ static native MemoryUsage getUsage(String name);
/**
* Returns the usage threshold for the specified pool.
@@ -156,10 +135,7 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to obtain statistics on.
* @return the usage threshold.
*/
- static long getUsageThreshold(String name)
- {
- return -1;
- }
+ static native long getUsageThreshold(String name);
/**
* Returns the number of times the usage threshold
@@ -172,10 +148,7 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to obtain statistics on.
* @return the usage threshold count.
*/
- static long getUsageThresholdCount(String name)
- {
- return -1;
- }
+ static native long getUsageThresholdCount(String name);
/**
* Returns true if the specified pool is still valid i.e.
@@ -184,10 +157,7 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to check the validity of.
* @return true if the pool is valid.
*/
- static boolean isValid(String name)
- {
- return false;
- }
+ static native boolean isValid(String name);
/**
* Resets the peak usage level to the current usage level for
@@ -195,9 +165,7 @@ final class VMMemoryPoolMXBeanImpl
*
* @param name the name of the pool to reset the peak usage of.
*/
- static void resetPeakUsage(String name)
- {
- }
+ static native void resetPeakUsage(String name);
/**
* Sets the collection usage threshold for the specified
@@ -210,9 +178,7 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to set the threshold of.
* @param threshold the new threshold level.
*/
- static void setCollectionUsageThreshold(String name, long threshold)
- {
- }
+ static native void setCollectionUsageThreshold(String name, long threshold);
/**
* Sets the usage threshold for the specified pool to the supplied value.
@@ -224,8 +190,6 @@ final class VMMemoryPoolMXBeanImpl
* @param name the name of the pool to set the threshold of.
* @param threshold the new threshold level.
*/
- static void setUsageThreshold(String name, long threshold)
- {
- }
+ static native void setUsageThreshold(String name, long threshold);
}
diff --git a/libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.h b/libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.h
new file mode 100644
index 00000000000..9bd0e442250
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMRuntimeMXBeanImpl__
+#define __gnu_java_lang_management_VMRuntimeMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMRuntimeMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMRuntimeMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMRuntimeMXBeanImpl();
+ static JArray< ::java::lang::String * > * getInputArguments();
+ static ::java::lang::String * getName();
+ static jlong getStartTime();
+private:
+ static jlong getPID();
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMRuntimeMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.java b/libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.java
index bbfceb6ffd7..05d368a9e24 100644
--- a/libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMRuntimeMXBeanImpl.java
@@ -39,6 +39,9 @@ package gnu.java.lang.management;
import gnu.classpath.SystemProperties;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+
/**
* Provides access to information about the virtual machine.
*
@@ -55,10 +58,7 @@ final class VMRuntimeMXBeanImpl
*
* @return the command-line arguments.
*/
- static String[] getInputArguments()
- {
- return new String[0];
- }
+ static native String[] getInputArguments();
/**
* Returns a developer-chosen name for the virtual
@@ -75,8 +75,18 @@ final class VMRuntimeMXBeanImpl
*/
static String getName()
{
+ String hostName;
+ try
+ {
+ hostName = InetAddress.getLocalHost().getHostName();
+ }
+ catch (UnknownHostException e)
+ {
+ hostName = "Unknown host";
+ }
return SystemProperties.getProperty("java.vm.name") + " " +
- SystemProperties.getProperty("java.vm.version");
+ SystemProperties.getProperty("java.vm.version") + " [" +
+ getPID() + "@" + hostName + "]";
}
/**
@@ -87,9 +97,13 @@ final class VMRuntimeMXBeanImpl
*
* @return the VM start time.
*/
- static long getStartTime()
- {
- return -1;
- }
+ static native long getStartTime();
+
+ /**
+ * The process identifier of the runtime.
+ *
+ * @return the PID of the runtime.
+ */
+ private static native long getPID();
}
diff --git a/libjava/gnu/java/lang/management/VMThreadMXBeanImpl.h b/libjava/gnu/java/lang/management/VMThreadMXBeanImpl.h
new file mode 100644
index 00000000000..77577f7668e
--- /dev/null
+++ b/libjava/gnu/java/lang/management/VMThreadMXBeanImpl.h
@@ -0,0 +1,53 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_java_lang_management_VMThreadMXBeanImpl__
+#define __gnu_java_lang_management_VMThreadMXBeanImpl__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace java
+ {
+ namespace lang
+ {
+ namespace management
+ {
+ class VMThreadMXBeanImpl;
+ }
+ }
+ }
+ }
+}
+
+class gnu::java::lang::management::VMThreadMXBeanImpl : public ::java::lang::Object
+{
+
+public: // actually package-private
+ VMThreadMXBeanImpl();
+ static JArray< jlong > * findMonitorDeadlockedThreads();
+ static JArray< ::java::lang::Thread * > * getAllThreads();
+ static JArray< jlong > * getAllThreadIds();
+ static jlong getCurrentThreadCpuTime();
+ static jlong getCurrentThreadUserTime();
+ static jint getDaemonThreadCount();
+ static jint getPeakThreadCount();
+ static jint getThreadCount();
+ static jlong getThreadCpuTime(jlong);
+ static ::java::lang::management::ThreadInfo * getThreadInfoForId(jlong, jint);
+ static jlong getThreadUserTime(jlong);
+ static jlong getTotalStartedThreadCount();
+ static void resetPeakThreadCount();
+private:
+ static jint filled;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_java_lang_management_VMThreadMXBeanImpl__
diff --git a/libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java b/libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java
index 3478372c6c5..c5bcb631055 100644
--- a/libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java
+++ b/libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java
@@ -64,10 +64,7 @@ final class VMThreadMXBeanImpl
*
* @return the ids of the deadlocked threads.
*/
- static long[] findMonitorDeadlockedThreads()
- {
- return new long[0];
- }
+ static native long[] findMonitorDeadlockedThreads();
/* This is the same as in Thread.getAllStackTraces() */
static Thread[] getAllThreads()
@@ -110,10 +107,7 @@ final class VMThreadMXBeanImpl
* @return the nanoseconds of CPU time used by
* the current thread.
*/
- static long getCurrentThreadCpuTime()
- {
- return -1;
- }
+ static native long getCurrentThreadCpuTime();
/**
* Returns the number of nanoseconds of user time
@@ -124,10 +118,7 @@ final class VMThreadMXBeanImpl
* @return the nanoseconds of user time used by
* the current thread.
*/
- static long getCurrentThreadUserTime()
- {
- return -1;
- }
+ static native long getCurrentThreadUserTime();
/**
* Returns the number of live daemon threads.
@@ -151,10 +142,7 @@ final class VMThreadMXBeanImpl
*
* @return the peak number of live threads.
*/
- static int getPeakThreadCount()
- {
- return -1;
- }
+ static native int getPeakThreadCount();
/**
* Returns the number of live threads.
@@ -177,10 +165,7 @@ final class VMThreadMXBeanImpl
* @return the nanoseconds of CPU time used by
* the thread.
*/
- static long getThreadCpuTime(long id)
- {
- return -1;
- }
+ static native long getThreadCpuTime(long id);
/**
* Returns the {@link java.lang.management.ThreadInfo}
@@ -190,10 +175,7 @@ final class VMThreadMXBeanImpl
* @param maxDepth the depth of the stack trace.
* @return the corresponding <code>ThreadInfo</code>.
*/
- static ThreadInfo getThreadInfoForId(long id, int maxDepth)
- {
- return null;
- }
+ static native ThreadInfo getThreadInfoForId(long id, int maxDepth);
/**
* Returns the number of nanoseconds of user time
@@ -205,10 +187,7 @@ final class VMThreadMXBeanImpl
* @return the nanoseconds of user time used by
* the thread.
*/
- static long getThreadUserTime(long id)
- {
- return -1;
- }
+ static native long getThreadUserTime(long id);
/**
* Returns the total number of threads that have
@@ -217,17 +196,12 @@ final class VMThreadMXBeanImpl
*
* @return the total number of threads started.
*/
- static long getTotalStartedThreadCount()
- {
- return -1;
- }
+ static native long getTotalStartedThreadCount();
/**
* Resets the peak thread count to the current
* number of live threads.
*/
- static void resetPeakThreadCount()
- {
- }
+ static native void resetPeakThreadCount();
}
diff --git a/libjava/gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc
new file mode 100644
index 00000000000..5958b1f1dc9
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc
@@ -0,0 +1,49 @@
+/* Copyright (C) 2006 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+/**
+ * @author Andrew John Hughes <gnu_andrew@member.fsf.org>
+ * @date Sun 20 Aug 2006 */
+/* Written using online API docs for JDK 1.5 beta from http://java.sun.com.
+ * Status: Believed complete and correct.
+ */
+
+#include <config.h>
+
+#include <jvm.h>
+
+#include <gnu/java/lang/management/VMClassLoadingMXBeanImpl.h>
+
+jint
+gnu::java::lang::management::VMClassLoadingMXBeanImpl::getLoadedClassCount ()
+{
+ /* FIXME: We never unload, so this never goes down again */
+ return ::gcj::loadedClasses;
+}
+
+
+jlong
+gnu::java::lang::management::VMClassLoadingMXBeanImpl::getUnloadedClassCount ()
+{
+ /* FIXME: We never unload, so this always == 0 */
+ return ::gcj::unloadedClasses;
+}
+
+
+jboolean
+gnu::java::lang::management::VMClassLoadingMXBeanImpl::isVerbose ()
+{
+ return ::gcj::verbose_class_flag;
+}
+
+
+void
+gnu::java::lang::management::VMClassLoadingMXBeanImpl::setVerbose (jboolean b)
+{
+ ::gcj::verbose_class_flag = b;
+}
diff --git a/libjava/gnu/java/lang/management/natVMCompilationMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMCompilationMXBeanImpl.cc
new file mode 100644
index 00000000000..4ccadcb3c1b
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMCompilationMXBeanImpl.cc
@@ -0,0 +1,11 @@
+#include <config.h>
+
+#include <gnu/java/lang/management/VMCompilationMXBeanImpl.h>
+#include <gcj/cni.h>
+#include <java/lang/UnsupportedOperationException.h>
+
+jlong
+gnu::java::lang::management::VMCompilationMXBeanImpl::getTotalCompilationTime ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMCompilationMXBeanImpl::getTotalCompilationTime () not implemented"));
+}
diff --git a/libjava/gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc
new file mode 100644
index 00000000000..3e4f999fefa
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc
@@ -0,0 +1,18 @@
+#include <config.h>
+
+#include <gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.h>
+#include <gcj/cni.h>
+#include <java/lang/UnsupportedOperationException.h>
+
+jlong
+gnu::java::lang::management::VMGarbageCollectorMXBeanImpl::getCollectionCount (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMGarbageCollectorMXBeanImpl::getCollectionCount (::java::lang::String *) not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMGarbageCollectorMXBeanImpl::getCollectionTime (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMGarbageCollectorMXBeanImpl::getCollectionTime (::java::lang::String *) not implemented"));
+}
diff --git a/libjava/gnu/java/lang/management/natVMMemoryMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMMemoryMXBeanImpl.cc
new file mode 100644
index 00000000000..8b59815f551
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMMemoryMXBeanImpl.cc
@@ -0,0 +1,47 @@
+/* Copyright (C) 2006 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+/**
+ * @author Andrew John Hughes <gnu_andrew@member.fsf.org>
+ * @date Tue 08 Aug 2006 */
+/*
+ * Status: Stubbed.
+ */
+
+#include <config.h>
+
+#include <gcj/cni.h>
+#include <gnu/java/lang/management/VMMemoryMXBeanImpl.h>
+#include <java/lang/UnsupportedOperationException.h>
+
+::java::lang::management::MemoryUsage *
+gnu::java::lang::management::VMMemoryMXBeanImpl::getNonHeapMemoryUsage ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryMXBeanImpl::getNonHeapMemoryUsage () not implemented"));
+}
+
+
+jint
+gnu::java::lang::management::VMMemoryMXBeanImpl::getObjectPendingFinalizationCount ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryMXBeanImpl::getObjectPendingFinalizationCount () not implemented"));
+}
+
+
+jboolean
+gnu::java::lang::management::VMMemoryMXBeanImpl::isVerbose ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryMXBeanImpl::isVerbose () not implemented"));
+}
+
+
+void
+gnu::java::lang::management::VMMemoryMXBeanImpl::setVerbose (jboolean)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryMXBeanImpl::setVerbose (jboolean) not implemented"));
+}
diff --git a/libjava/gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc
new file mode 100644
index 00000000000..8d8a3e6e788
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc
@@ -0,0 +1,11 @@
+#include <config.h>
+
+#include <gnu/java/lang/management/VMMemoryManagerMXBeanImpl.h>
+#include <gcj/cni.h>
+#include <java/lang/UnsupportedOperationException.h>
+
+jboolean
+gnu::java::lang::management::VMMemoryManagerMXBeanImpl::isValid (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryManagerMXBeanImpl::isValid (::java::lang::String *) not implemented"));
+}
diff --git a/libjava/gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc
new file mode 100644
index 00000000000..b7a250955ad
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc
@@ -0,0 +1,111 @@
+/* Copyright (C) 2006 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+/**
+ * @author Andrew John Hughes <gnu_andrew@member.fsf.org>
+ * @date Tue 08 Aug 2006 */
+/* Implemented for our sole pool, the heap (we ignore the name input).
+ * Status: Stubbed.
+ */
+
+#include <config.h>
+
+#include <gcj/cni.h>
+#include <gnu/java/lang/management/VMMemoryPoolMXBeanImpl.h>
+#include <java/lang/UnsupportedOperationException.h>
+
+::java::lang::management::MemoryUsage *
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsage(jstring n)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsage (::java::lang::String *) not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsageThreshold (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsageThreshold (::java::lang::String *) not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsageThresholdCount (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getCollectionUsageThresholdCount (::java::lang::String *) not implemented"));
+}
+
+
+JArray< ::java::lang::String *> *
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getMemoryManagerNames(jstring n)
+{
+ return (JArray<jstring>*)
+ JvNewObjectArray(1, &::java::lang::String::class$, JvNewStringLatin1("BoehmGC"));
+}
+
+
+::java::lang::management::MemoryUsage *
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getPeakUsage (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getPeakUsage (::java::lang::String *) not implemented"));
+}
+
+
+::java::lang::String *
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getType (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getType (::java::lang::String *) not implemented"));
+}
+
+
+::java::lang::management::MemoryUsage *
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getUsage (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getUsage (::java::lang::String *) not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getUsageThreshold (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getUsageThreshold (::java::lang::String *) not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getUsageThresholdCount (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::getUsageThresholdCount (::java::lang::String *) not implemented"));
+}
+
+
+jboolean
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::isValid (::java::lang::String *)
+{
+ return true;
+}
+
+
+void
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::resetPeakUsage (::java::lang::String *)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::resetPeakUsage (::java::lang::String *) not implemented"));
+}
+
+
+void
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::setCollectionUsageThreshold (::java::lang::String *, jlong)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::setCollectionUsageThreshold (::java::lang::String *, jlong) not implemented"));
+}
+
+
+void
+gnu::java::lang::management::VMMemoryPoolMXBeanImpl::setUsageThreshold (::java::lang::String *, jlong)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMMemoryPoolMXBeanImpl::setUsageThreshold (::java::lang::String *, jlong) not implemented"));
+}
diff --git a/libjava/gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc
new file mode 100644
index 00000000000..331079b0ffd
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc
@@ -0,0 +1,39 @@
+/* Copyright (C) 2006 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+/**
+ * @author Andrew John Hughes <gnu_andrew@member.fsf.org>
+ * @date Wed 21 Jun 2006 */
+/* Written using online API docs for JDK 1.5 beta from http://java.sun.com.
+ * Status: Believed complete and correct.
+ */
+
+#include <config.h>
+
+#include <jvm.h>
+
+#include <unistd.h>
+
+#include <gnu/java/lang/management/VMRuntimeMXBeanImpl.h>
+
+JArray<jstring>* gnu::java::lang::management::VMRuntimeMXBeanImpl::getInputArguments()
+{
+ return ::gcj::vmArgs;
+}
+
+jlong gnu::java::lang::management::VMRuntimeMXBeanImpl::getStartTime()
+{
+ return ::gcj::startTime;
+}
+
+jlong gnu::java::lang::management::VMRuntimeMXBeanImpl::getPID()
+{
+ return getpid();
+}
+
+
diff --git a/libjava/gnu/java/lang/management/natVMThreadMXBeanImpl.cc b/libjava/gnu/java/lang/management/natVMThreadMXBeanImpl.cc
new file mode 100644
index 00000000000..df05300ca2f
--- /dev/null
+++ b/libjava/gnu/java/lang/management/natVMThreadMXBeanImpl.cc
@@ -0,0 +1,67 @@
+#include <config.h>
+
+#include <gnu/java/lang/management/VMThreadMXBeanImpl.h>
+#include <gcj/cni.h>
+#include <java/lang/UnsupportedOperationException.h>
+
+jlongArray
+gnu::java::lang::management::VMThreadMXBeanImpl::findMonitorDeadlockedThreads ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::findMonitorDeadlockedThreads () not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMThreadMXBeanImpl::getCurrentThreadCpuTime ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::getCurrentThreadCpuTime () not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMThreadMXBeanImpl::getCurrentThreadUserTime ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::getCurrentThreadUserTime () not implemented"));
+}
+
+
+jint
+gnu::java::lang::management::VMThreadMXBeanImpl::getPeakThreadCount ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::getPeakThreadCount () not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMThreadMXBeanImpl::getThreadCpuTime (jlong)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::getThreadCpuTime (jlong) not implemented"));
+}
+
+
+::java::lang::management::ThreadInfo *
+gnu::java::lang::management::VMThreadMXBeanImpl::getThreadInfoForId (jlong, jint)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::getThreadInfoForId (jlong, jint) not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMThreadMXBeanImpl::getThreadUserTime (jlong)
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::getThreadUserTime (jlong) not implemented"));
+}
+
+
+jlong
+gnu::java::lang::management::VMThreadMXBeanImpl::getTotalStartedThreadCount ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::getTotalStartedThreadCount () not implemented"));
+}
+
+
+void
+gnu::java::lang::management::VMThreadMXBeanImpl::resetPeakThreadCount ()
+{
+ throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("gnu::java::lang::management::VMThreadMXBeanImpl::resetPeakThreadCount () not implemented"));
+}
OpenPOWER on IntegriCloud