public abstract class com.sun.org.glassfish.external.statistics.impl.StatisticImpl implements com.sun.org.glassfish.external.statistics.Statistic
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.org.glassfish.external.statistics.impl.StatisticImpl
super_class: java.lang.Object
{
private final java.lang.String statisticName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String statisticUnit;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String statisticDesc;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected long sampleTime;
descriptor: J
flags: (0x0004) ACC_PROTECTED
private long startTime;
descriptor: J
flags: (0x0002) ACC_PRIVATE
public static final java.lang.String UNIT_COUNT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "count"
public static final java.lang.String UNIT_SECOND;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "second"
public static final java.lang.String UNIT_MILLISECOND;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "millisecond"
public static final java.lang.String UNIT_MICROSECOND;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "microsecond"
public static final java.lang.String UNIT_NANOSECOND;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "nanosecond"
public static final java.lang.String START_TIME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "starttime"
public static final java.lang.String LAST_SAMPLE_TIME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "lastsampletime"
protected final java.util.Map<java.lang.String, java.lang.Object> statMap;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
protected static final java.lang.String NEWLINE;
descriptor: Ljava/lang/String;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putstatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.NEWLINE:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.lang.String, java.lang.String, java.lang.String, long, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJ)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=8, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 6 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.sampleTime:J
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statMap:Ljava/util/Map;
3: aload 1
invokestatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.isValidString:(Ljava/lang/String;)Z
ifeq 6
4: aload 0
aload 1
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticName:Ljava/lang/String;
5: goto 7
6: StackMap locals: com.sun.org.glassfish.external.statistics.impl.StatisticImpl java.lang.String java.lang.String java.lang.String long long
StackMap stack:
aload 0
ldc "name"
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticName:Ljava/lang/String;
7: StackMap locals:
StackMap stack:
aload 2
invokestatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.isValidString:(Ljava/lang/String;)Z
ifeq 10
8: aload 0
aload 2
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticUnit:Ljava/lang/String;
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
ldc "unit"
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticUnit:Ljava/lang/String;
11: StackMap locals:
StackMap stack:
aload 3
invokestatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.isValidString:(Ljava/lang/String;)Z
ifeq 14
12: aload 0
aload 3
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticDesc:Ljava/lang/String;
13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
ldc "description"
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticDesc:Ljava/lang/String;
15: StackMap locals:
StackMap stack:
aload 0
lload 4
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.startTime:J
16: aload 0
lload 6
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.sampleTime:J
17: return
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
0 18 1 name Ljava/lang/String;
0 18 2 unit Ljava/lang/String;
0 18 3 desc Ljava/lang/String;
0 18 4 start_time J
0 18 6 sample_time J
MethodParameters:
Name Flags
name
unit
desc
start_time
sample_time
protected void <init>(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.System.currentTimeMillis:()J
invokespecial com.sun.org.glassfish.external.statistics.impl.StatisticImpl.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;JJ)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
0 2 1 name Ljava/lang/String;
0 2 2 unit Ljava/lang/String;
0 2 3 desc Ljava/lang/String;
MethodParameters:
Name Flags
name
unit
desc
public synchronized java.util.Map getStaticAsMap();
descriptor: ()Ljava/util/Map;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticName:Ljava/lang/String;
invokestatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.isValidString:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statMap:Ljava/util/Map;
ldc "name"
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticName:Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticUnit:Ljava/lang/String;
invokestatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.isValidString:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statMap:Ljava/util/Map;
ldc "unit"
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticUnit:Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticDesc:Ljava/lang/String;
invokestatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.isValidString:(Ljava/lang/String;)Z
ifeq 6
5: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statMap:Ljava/util/Map;
ldc "description"
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticDesc:Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statMap:Ljava/util/Map;
ldc "starttime"
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.startTime:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statMap:Ljava/util/Map;
ldc "lastsampletime"
aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.sampleTime:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statMap:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
public java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticDesc:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
public java.lang.String getUnit();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.statisticUnit:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
public synchronized long getLastSampleTime();
descriptor: ()J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.sampleTime:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
public synchronized long getStartTime();
descriptor: ()J
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.startTime:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield com.sun.org.glassfish.external.statistics.impl.StatisticImpl.startTime:J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
public synchronized java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Statistic "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: ldc "Name: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual com.sun.org.glassfish.external.statistics.impl.StatisticImpl.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc "Description: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual com.sun.org.glassfish.external.statistics.impl.StatisticImpl.getDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc "Unit: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual com.sun.org.glassfish.external.statistics.impl.StatisticImpl.getUnit:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "LastSampleTime: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual com.sun.org.glassfish.external.statistics.impl.StatisticImpl.getLastSampleTime:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
getstatic com.sun.org.glassfish.external.statistics.impl.StatisticImpl.NEWLINE:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc "StartTime: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual com.sun.org.glassfish.external.statistics.impl.StatisticImpl.getStartTime:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
protected static boolean isValidString(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.String.length:()I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
protected void checkMethod(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 3
aload 1
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
ifnull 3
1: ldc Lcom/sun/org/glassfish/external/statistics/Statistic;
aload 1
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 3
2: aload 1
invokevirtual java.lang.reflect.Method.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 4
3: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
ldc "Invalid method on invoke"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/org/glassfish/external/statistics/impl/StatisticImpl;
0 5 1 method Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
method
}
SourceFile: "StatisticImpl.java"