-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMemoryPoolMXBean.swift
More file actions
326 lines (203 loc) · 14.5 KB
/
MemoryPoolMXBean.swift
File metadata and controls
326 lines (203 loc) · 14.5 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
import java_swift
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface java.lang.management.MemoryPoolMXBean ///
public protocol MemoryPoolMXBean: PlatformManagedObject {
/// public abstract java.lang.management.MemoryUsage java.lang.management.MemoryPoolMXBean.getCollectionUsage()
func getCollectionUsage() -> MemoryUsage!
/// public abstract long java.lang.management.MemoryPoolMXBean.getCollectionUsageThreshold()
func getCollectionUsageThreshold() -> Int64
/// public abstract long java.lang.management.MemoryPoolMXBean.getCollectionUsageThresholdCount()
func getCollectionUsageThresholdCount() -> Int64
/// public abstract java.lang.String[] java.lang.management.MemoryPoolMXBean.getMemoryManagerNames()
func getMemoryManagerNames() -> [String]!
/// public abstract java.lang.String java.lang.management.MemoryPoolMXBean.getName()
func getName() -> String!
/// public abstract java.lang.management.MemoryUsage java.lang.management.MemoryPoolMXBean.getPeakUsage()
func getPeakUsage() -> MemoryUsage!
/// public abstract java.lang.management.MemoryType java.lang.management.MemoryPoolMXBean.getType()
func getType() -> MemoryType!
/// public abstract java.lang.management.MemoryUsage java.lang.management.MemoryPoolMXBean.getUsage()
func getUsage() -> MemoryUsage!
/// public abstract long java.lang.management.MemoryPoolMXBean.getUsageThreshold()
func getUsageThreshold() -> Int64
/// public abstract long java.lang.management.MemoryPoolMXBean.getUsageThresholdCount()
func getUsageThresholdCount() -> Int64
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isCollectionUsageThresholdExceeded()
func isCollectionUsageThresholdExceeded() -> Bool
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isCollectionUsageThresholdSupported()
func isCollectionUsageThresholdSupported() -> Bool
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isUsageThresholdExceeded()
func isUsageThresholdExceeded() -> Bool
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isUsageThresholdSupported()
func isUsageThresholdSupported() -> Bool
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isValid()
func isValid() -> Bool
/// public abstract void java.lang.management.MemoryPoolMXBean.resetPeakUsage()
func resetPeakUsage()
/// public abstract void java.lang.management.MemoryPoolMXBean.setCollectionUsageThreshold(long)
func setCollectionUsageThreshold( threshold: Int64 )
/// public abstract void java.lang.management.MemoryPoolMXBean.setUsageThreshold(long)
func setUsageThreshold( threshold: Int64 )
}
open class MemoryPoolMXBeanForward: PlatformManagedObjectForward, MemoryPoolMXBean {
private static var MemoryPoolMXBeanJNIClass: jclass?
/// public abstract java.lang.management.MemoryUsage java.lang.management.MemoryPoolMXBean.getCollectionUsage()
private static var getCollectionUsage_MethodID_19: jmethodID?
open func getCollectionUsage() -> MemoryUsage! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getCollectionUsage", methodSig: "()Ljava/lang/management/MemoryUsage;", methodCache: &MemoryPoolMXBeanForward.getCollectionUsage_MethodID_19, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? MemoryUsage( javaObject: __return ) : nil
}
/// public abstract long java.lang.management.MemoryPoolMXBean.getCollectionUsageThreshold()
private static var getCollectionUsageThreshold_MethodID_20: jmethodID?
open func getCollectionUsageThreshold() -> Int64 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "getCollectionUsageThreshold", methodSig: "()J", methodCache: &MemoryPoolMXBeanForward.getCollectionUsageThreshold_MethodID_20, args: &__args, locals: &__locals )
return __return
}
/// public abstract long java.lang.management.MemoryPoolMXBean.getCollectionUsageThresholdCount()
private static var getCollectionUsageThresholdCount_MethodID_21: jmethodID?
open func getCollectionUsageThresholdCount() -> Int64 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "getCollectionUsageThresholdCount", methodSig: "()J", methodCache: &MemoryPoolMXBeanForward.getCollectionUsageThresholdCount_MethodID_21, args: &__args, locals: &__locals )
return __return
}
/// public abstract java.lang.String[] java.lang.management.MemoryPoolMXBean.getMemoryManagerNames()
private static var getMemoryManagerNames_MethodID_22: jmethodID?
open func getMemoryManagerNames() -> [String]! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getMemoryManagerNames", methodSig: "()[Ljava/lang/String;", methodCache: &MemoryPoolMXBeanForward.getMemoryManagerNames_MethodID_22, args: &__args, locals: &__locals )
return JNIType.toSwift( type: [String].self, from: __return )
}
/// public abstract java.lang.String java.lang.management.MemoryPoolMXBean.getName()
private static var getName_MethodID_23: jmethodID?
open func getName() -> String! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getName", methodSig: "()Ljava/lang/String;", methodCache: &MemoryPoolMXBeanForward.getName_MethodID_23, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? String( javaObject: __return ) : nil
}
/// public abstract javax.management.ObjectName java.lang.management.PlatformManagedObject.getObjectName()
// Skipping method: false false true false false
/// public abstract java.lang.management.MemoryUsage java.lang.management.MemoryPoolMXBean.getPeakUsage()
private static var getPeakUsage_MethodID_24: jmethodID?
open func getPeakUsage() -> MemoryUsage! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getPeakUsage", methodSig: "()Ljava/lang/management/MemoryUsage;", methodCache: &MemoryPoolMXBeanForward.getPeakUsage_MethodID_24, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? MemoryUsage( javaObject: __return ) : nil
}
/// public abstract java.lang.management.MemoryType java.lang.management.MemoryPoolMXBean.getType()
private static var getType_MethodID_25: jmethodID?
open func getType() -> MemoryType! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getType", methodSig: "()Ljava/lang/management/MemoryType;", methodCache: &MemoryPoolMXBeanForward.getType_MethodID_25, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? MemoryType( javaObject: __return ) : nil
}
/// public abstract java.lang.management.MemoryUsage java.lang.management.MemoryPoolMXBean.getUsage()
private static var getUsage_MethodID_26: jmethodID?
open func getUsage() -> MemoryUsage! {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallObjectMethod( object: javaObject, methodName: "getUsage", methodSig: "()Ljava/lang/management/MemoryUsage;", methodCache: &MemoryPoolMXBeanForward.getUsage_MethodID_26, args: &__args, locals: &__locals )
defer { JNI.DeleteLocalRef( __return ) }
return __return != nil ? MemoryUsage( javaObject: __return ) : nil
}
/// public abstract long java.lang.management.MemoryPoolMXBean.getUsageThreshold()
private static var getUsageThreshold_MethodID_27: jmethodID?
open func getUsageThreshold() -> Int64 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "getUsageThreshold", methodSig: "()J", methodCache: &MemoryPoolMXBeanForward.getUsageThreshold_MethodID_27, args: &__args, locals: &__locals )
return __return
}
/// public abstract long java.lang.management.MemoryPoolMXBean.getUsageThresholdCount()
private static var getUsageThresholdCount_MethodID_28: jmethodID?
open func getUsageThresholdCount() -> Int64 {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallLongMethod( object: javaObject, methodName: "getUsageThresholdCount", methodSig: "()J", methodCache: &MemoryPoolMXBeanForward.getUsageThresholdCount_MethodID_28, args: &__args, locals: &__locals )
return __return
}
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isCollectionUsageThresholdExceeded()
private static var isCollectionUsageThresholdExceeded_MethodID_29: jmethodID?
open func isCollectionUsageThresholdExceeded() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isCollectionUsageThresholdExceeded", methodSig: "()Z", methodCache: &MemoryPoolMXBeanForward.isCollectionUsageThresholdExceeded_MethodID_29, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isCollectionUsageThresholdSupported()
private static var isCollectionUsageThresholdSupported_MethodID_30: jmethodID?
open func isCollectionUsageThresholdSupported() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isCollectionUsageThresholdSupported", methodSig: "()Z", methodCache: &MemoryPoolMXBeanForward.isCollectionUsageThresholdSupported_MethodID_30, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isUsageThresholdExceeded()
private static var isUsageThresholdExceeded_MethodID_31: jmethodID?
open func isUsageThresholdExceeded() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isUsageThresholdExceeded", methodSig: "()Z", methodCache: &MemoryPoolMXBeanForward.isUsageThresholdExceeded_MethodID_31, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isUsageThresholdSupported()
private static var isUsageThresholdSupported_MethodID_32: jmethodID?
open func isUsageThresholdSupported() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isUsageThresholdSupported", methodSig: "()Z", methodCache: &MemoryPoolMXBeanForward.isUsageThresholdSupported_MethodID_32, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public abstract boolean java.lang.management.MemoryPoolMXBean.isValid()
private static var isValid_MethodID_33: jmethodID?
open func isValid() -> Bool {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
let __return = JNIMethod.CallBooleanMethod( object: javaObject, methodName: "isValid", methodSig: "()Z", methodCache: &MemoryPoolMXBeanForward.isValid_MethodID_33, args: &__args, locals: &__locals )
return __return != jboolean(JNI_FALSE)
}
/// public abstract void java.lang.management.MemoryPoolMXBean.resetPeakUsage()
private static var resetPeakUsage_MethodID_34: jmethodID?
open func resetPeakUsage() {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "resetPeakUsage", methodSig: "()V", methodCache: &MemoryPoolMXBeanForward.resetPeakUsage_MethodID_34, args: &__args, locals: &__locals )
}
/// public abstract void java.lang.management.MemoryPoolMXBean.setCollectionUsageThreshold(long)
private static var setCollectionUsageThreshold_MethodID_35: jmethodID?
open func setCollectionUsageThreshold( threshold: Int64 ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( j: threshold )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "setCollectionUsageThreshold", methodSig: "(J)V", methodCache: &MemoryPoolMXBeanForward.setCollectionUsageThreshold_MethodID_35, args: &__args, locals: &__locals )
}
open func setCollectionUsageThreshold( _ _threshold: Int64 ) {
setCollectionUsageThreshold( threshold: _threshold )
}
/// public abstract void java.lang.management.MemoryPoolMXBean.setUsageThreshold(long)
private static var setUsageThreshold_MethodID_36: jmethodID?
open func setUsageThreshold( threshold: Int64 ) {
var __locals = [jobject]()
var __args = [jvalue]( repeating: jvalue(), count: 1 )
__args[0] = jvalue( j: threshold )
JNIMethod.CallVoidMethod( object: javaObject, methodName: "setUsageThreshold", methodSig: "(J)V", methodCache: &MemoryPoolMXBeanForward.setUsageThreshold_MethodID_36, args: &__args, locals: &__locals )
}
open func setUsageThreshold( _ _threshold: Int64 ) {
setUsageThreshold( threshold: _threshold )
}
/// In declared protocol but not defined.. ///
/// public abstract javax.management.ObjectName java.lang.management.PlatformManagedObject.getObjectName()
// Skipping method: false false true false false
}