public class org.eclipse.jetty.util.Uptime$DefaultImpl implements org.eclipse.jetty.util.Uptime$Impl
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.Uptime$DefaultImpl
super_class: java.lang.Object
{
public java.lang.Object mxBean;
descriptor: Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
public java.lang.reflect.Method uptimeMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0001) ACC_PUBLIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 // org.eclipse.jetty.util.Uptime$DefaultImpl this
0: .line 41
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 43
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 1 /* cl */
start local 1 // java.lang.ClassLoader cl
2: .line 46
ldc "java.lang.management.ManagementFactory"
iconst_1
aload 1 /* cl */
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 2 /* mgmtFactory */
start local 2 // java.lang.Class mgmtFactory
3: .line 47
ldc "java.lang.management.RuntimeMXBean"
iconst_1
aload 1 /* cl */
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 3 /* runtimeClass */
start local 3 // java.lang.Class runtimeClass
4: .line 48
iconst_0
anewarray java.lang.Class
astore 4 /* noParams */
start local 4 // java.lang.Class[] noParams
5: .line 49
aload 2 /* mgmtFactory */
ldc "getRuntimeMXBean"
aload 4 /* noParams */
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 5 /* mxBeanMethod */
start local 5 // java.lang.reflect.Method mxBeanMethod
6: .line 50
aload 5 /* mxBeanMethod */
ifnonnull 8
7: .line 52
new java.lang.UnsupportedOperationException
dup
ldc "method getRuntimeMXBean() not found"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
8: .line 54
StackMap locals: org.eclipse.jetty.util.Uptime$DefaultImpl java.lang.ClassLoader java.lang.Class java.lang.Class java.lang.Class[] java.lang.reflect.Method
StackMap stack:
aload 0 /* this */
aload 5 /* mxBeanMethod */
aload 2 /* mgmtFactory */
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
putfield org.eclipse.jetty.util.Uptime$DefaultImpl.mxBean:Ljava/lang/Object;
9: .line 55
aload 0 /* this */
getfield org.eclipse.jetty.util.Uptime$DefaultImpl.mxBean:Ljava/lang/Object;
ifnonnull 11
10: .line 57
new java.lang.UnsupportedOperationException
dup
ldc "getRuntimeMXBean() method returned null"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
11: .line 59
StackMap locals:
StackMap stack:
aload 0 /* this */
aload 3 /* runtimeClass */
ldc "getUptime"
aload 4 /* noParams */
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putfield org.eclipse.jetty.util.Uptime$DefaultImpl.uptimeMethod:Ljava/lang/reflect/Method;
12: .line 60
aload 0 /* this */
getfield org.eclipse.jetty.util.Uptime$DefaultImpl.mxBean:Ljava/lang/Object;
ifnonnull 16
13: .line 62
new java.lang.UnsupportedOperationException
dup
ldc "method getUptime() not found"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 5 // java.lang.reflect.Method mxBeanMethod
end local 4 // java.lang.Class[] noParams
end local 3 // java.lang.Class runtimeClass
end local 2 // java.lang.Class mgmtFactory
14: .line 71
StackMap locals: org.eclipse.jetty.util.Uptime$DefaultImpl java.lang.ClassLoader
StackMap stack: java.lang.Throwable
astore 2 /* e */
start local 2 // java.lang.Throwable e
15: .line 73
new java.lang.UnsupportedOperationException
dup
ldc "Implementation not available in this environment"
aload 2 /* e */
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 // java.lang.Throwable e
16: .line 75
StackMap locals:
StackMap stack:
return
end local 1 // java.lang.ClassLoader cl
end local 0 // org.eclipse.jetty.util.Uptime$DefaultImpl this
LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/eclipse/jetty/util/Uptime$DefaultImpl;
2 17 1 cl Ljava/lang/ClassLoader;
3 14 2 mgmtFactory Ljava/lang/Class<*>;
4 14 3 runtimeClass Ljava/lang/Class<*>;
5 14 4 noParams [Ljava/lang/Class;
6 14 5 mxBeanMethod Ljava/lang/reflect/Method;
15 16 2 e Ljava/lang/Throwable;
Exception table:
from to target type
2 14 14 Class java.lang.ClassNotFoundException
2 14 14 Class java.lang.NoClassDefFoundError
2 14 14 Class java.lang.NoSuchMethodException
2 14 14 Class java.lang.SecurityException
2 14 14 Class java.lang.IllegalAccessException
2 14 14 Class java.lang.IllegalArgumentException
2 14 14 Class java.lang.reflect.InvocationTargetException
public long getUptime();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 // org.eclipse.jetty.util.Uptime$DefaultImpl this
0: .line 82
aload 0 /* this */
getfield org.eclipse.jetty.util.Uptime$DefaultImpl.uptimeMethod:Ljava/lang/reflect/Method;
aload 0 /* this */
getfield org.eclipse.jetty.util.Uptime$DefaultImpl.mxBean:Ljava/lang/Object;
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
1: lreturn
2: .line 84
StackMap locals:
StackMap stack: java.lang.Exception
pop
3: .line 86
ldc -1
lreturn
end local 0 // org.eclipse.jetty.util.Uptime$DefaultImpl this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/Uptime$DefaultImpl;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalAccessException
0 1 2 Class java.lang.IllegalArgumentException
0 1 2 Class java.lang.reflect.InvocationTargetException
}
SourceFile: "Uptime.java"
NestHost: org.eclipse.jetty.util.Uptime
InnerClasses:
public DefaultImpl = org.eclipse.jetty.util.Uptime$DefaultImpl of org.eclipse.jetty.util.Uptime
public abstract Impl = org.eclipse.jetty.util.Uptime$Impl of org.eclipse.jetty.util.Uptime