public class org.postgresql.hostchooser.GlobalHostStatusTracker
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.postgresql.hostchooser.GlobalHostStatusTracker
super_class: java.lang.Object
{
private static final java.util.Map<org.postgresql.util.HostSpec, org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus> hostStatusMap;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Lorg/postgresql/util/HostSpec;Lorg/postgresql/hostchooser/GlobalHostStatusTracker$HostSpecStatus;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
1: putstatic org.postgresql.hostchooser.GlobalHostStatusTracker.hostStatusMap:Ljava/util/Map;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/postgresql/hostchooser/GlobalHostStatusTracker;
public static void reportHostStatus(org.postgresql.util.HostSpec, org.postgresql.hostchooser.HostStatus);
descriptor: (Lorg/postgresql/util/HostSpec;Lorg/postgresql/hostchooser/HostStatus;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 1: getstatic org.postgresql.hostchooser.GlobalHostStatusTracker.hostStatusMap:Ljava/util/Map;
dup
astore 4
monitorenter
2: getstatic org.postgresql.hostchooser.GlobalHostStatusTracker.hostStatusMap:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus
astore 5
start local 5 3: aload 5
ifnonnull 6
4: new org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus
dup
aload 0
invokespecial org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus.<init>:(Lorg/postgresql/util/HostSpec;)V
astore 5
5: getstatic org.postgresql.hostchooser.GlobalHostStatusTracker.hostStatusMap:Ljava/util/Map;
aload 0
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals: long java.util.Map org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus
StackMap stack:
aload 5
aload 1
putfield org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus.status:Lorg/postgresql/hostchooser/HostStatus;
7: aload 5
lload 2
putfield org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus.lastUpdated:J
end local 5 8: aload 4
monitorexit
9: goto 12
StackMap locals: org.postgresql.util.HostSpec org.postgresql.hostchooser.HostStatus long java.util.Map
StackMap stack: java.lang.Throwable
10: aload 4
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 hostSpec Lorg/postgresql/util/HostSpec;
0 13 1 hostStatus Lorg/postgresql/hostchooser/HostStatus;
1 13 2 now J
3 8 5 hostSpecStatus Lorg/postgresql/hostchooser/GlobalHostStatusTracker$HostSpecStatus;
Exception table:
from to target type
2 9 10 any
10 11 10 any
MethodParameters:
Name Flags
hostSpec
hostStatus
static java.util.List<org.postgresql.util.HostSpec> getCandidateHosts(org.postgresql.util.HostSpec[], org.postgresql.hostchooser.HostRequirement, long);
descriptor: ([Lorg/postgresql/util/HostSpec;Lorg/postgresql/hostchooser/HostRequirement;J)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=13, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
aload 0
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 1: invokestatic java.lang.System.currentTimeMillis:()J
lload 2
lsub
lstore 5
start local 5 2: getstatic org.postgresql.hostchooser.GlobalHostStatusTracker.hostStatusMap:Ljava/util/Map;
dup
astore 7
monitorenter
3: aload 0
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 11
StackMap locals: org.postgresql.util.HostSpec[] org.postgresql.hostchooser.HostRequirement long java.util.List long java.util.Map top int int org.postgresql.util.HostSpec[]
StackMap stack:
4: aload 11
iload 9
aaload
astore 8
start local 8 5: getstatic org.postgresql.hostchooser.GlobalHostStatusTracker.hostStatusMap:Ljava/util/Map;
aload 8
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus
astore 12
start local 12 6: aload 12
ifnull 9
7: aload 12
getfield org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus.lastUpdated:J
lload 5
lcmp
iflt 9
8: aload 1
aload 12
getfield org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus.status:Lorg/postgresql/hostchooser/HostStatus;
invokevirtual org.postgresql.hostchooser.HostRequirement.allowConnectingTo:(Lorg/postgresql/hostchooser/HostStatus;)Z
ifeq 10
9: StackMap locals: org.postgresql.util.HostSpec[] org.postgresql.hostchooser.HostRequirement long java.util.List long java.util.Map org.postgresql.util.HostSpec int int org.postgresql.util.HostSpec[] org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus
StackMap stack:
aload 4
aload 8
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 12 end local 8 10: StackMap locals: org.postgresql.util.HostSpec[] org.postgresql.hostchooser.HostRequirement long java.util.List long java.util.Map top int int org.postgresql.util.HostSpec[]
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
11: iload 9
iload 10
if_icmplt 4
12: aload 7
monitorexit
13: goto 16
StackMap locals: org.postgresql.util.HostSpec[] org.postgresql.hostchooser.HostRequirement long java.util.List long java.util.Map
StackMap stack: java.lang.Throwable
14: aload 7
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
aload 4
areturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 hostSpecs [Lorg/postgresql/util/HostSpec;
0 17 1 targetServerType Lorg/postgresql/hostchooser/HostRequirement;
0 17 2 hostRecheckMillis J
1 17 4 candidates Ljava/util/List<Lorg/postgresql/util/HostSpec;>;
2 17 5 latestAllowedUpdate J
5 10 8 hostSpec Lorg/postgresql/util/HostSpec;
6 10 12 hostInfo Lorg/postgresql/hostchooser/GlobalHostStatusTracker$HostSpecStatus;
Exception table:
from to target type
3 13 14 any
14 15 14 any
Signature: ([Lorg/postgresql/util/HostSpec;Lorg/postgresql/hostchooser/HostRequirement;J)Ljava/util/List<Lorg/postgresql/util/HostSpec;>;
MethodParameters:
Name Flags
hostSpecs
targetServerType
hostRecheckMillis
}
SourceFile: "GlobalHostStatusTracker.java"
NestMembers:
org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus
InnerClasses:
HostSpecStatus = org.postgresql.hostchooser.GlobalHostStatusTracker$HostSpecStatus of org.postgresql.hostchooser.GlobalHostStatusTracker