public class jdk.jshell.execution.FailOverExecutionControlProvider implements jdk.jshell.spi.ExecutionControlProvider
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.jshell.execution.FailOverExecutionControlProvider
super_class: java.lang.Object
{
private java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield jdk.jshell.execution.FailOverExecutionControlProvider.logger:Ljava/util/logging/Logger;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/execution/FailOverExecutionControlProvider;
public java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "failover"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/execution/FailOverExecutionControlProvider;
public java.util.Map<java.lang.String, java.lang.String> defaultParameters();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 1
ldc "0"
ldc "jdi"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: iconst_1
istore 2
start local 2 3: goto 6
4: StackMap locals: java.util.Map int
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc ""
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
bipush 9
if_icmple 4
end local 2 7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jshell/execution/FailOverExecutionControlProvider;
1 8 1 dp Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
3 7 2 i I
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public jdk.jshell.spi.ExecutionControl generate(jdk.jshell.spi.ExecutionEnv, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljdk/jshell/spi/ExecutionEnv;Ljava/util/Map;)Ljdk/jshell/spi/ExecutionControl;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 4
start local 4 2: new java.io.PrintWriter
dup
aload 4
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 5
start local 5 3: iconst_0
istore 6
start local 6 4: goto 39
5: StackMap locals: jdk.jshell.execution.FailOverExecutionControlProvider jdk.jshell.spi.ExecutionEnv java.util.Map java.lang.Throwable java.io.StringWriter java.io.PrintWriter int
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 6: aload 7
ifnull 38
aload 7
invokevirtual java.lang.String.isEmpty:()Z
ifne 38
7: aload 1
aload 7
invokestatic jdk.jshell.spi.ExecutionControl.generate:(Ljdk/jshell/spi/ExecutionEnv;Ljava/lang/String;)Ljdk/jshell/spi/ExecutionControl;
astore 8
start local 8 8: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.logger:()Ljava/util/logging/Logger;
9: ldc "FailOverExecutionControlProvider: Success %s -- %d = %s\n"
iconst_3
anewarray java.lang.Object
dup
iconst_0
10: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.name:()Ljava/lang/String;
aastore
dup
iconst_1
iload 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 7
aastore
11: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
12: invokevirtual java.util.logging.Logger.finest:(Ljava/lang/String;)V
13: aload 8
14: areturn
end local 8 15: StackMap locals: jdk.jshell.execution.FailOverExecutionControlProvider jdk.jshell.spi.ExecutionEnv java.util.Map java.lang.Throwable java.io.StringWriter java.io.PrintWriter int java.lang.String
StackMap stack: java.lang.Throwable
astore 8
start local 8 16: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.logger:()Ljava/util/logging/Logger;
17: ldc "FailOverExecutionControlProvider: Failure %s -- %d = %s -- %s\n"
iconst_4
anewarray java.lang.Object
dup
iconst_0
18: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.name:()Ljava/lang/String;
aastore
dup
iconst_1
iload 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 7
aastore
dup
iconst_3
aload 8
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
aastore
19: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
20: invokevirtual java.util.logging.Logger.warning:(Ljava/lang/String;)V
21: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 9
start local 9 22: new java.io.PrintWriter
dup
aload 9
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 10
start local 10 23: aload 10
ldc "FailOverExecutionControlProvider:"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
24: aload 8
aload 10
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
25: aload 10
invokevirtual java.io.PrintWriter.flush:()V
26: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.logger:()Ljava/util/logging/Logger;
aload 9
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.fine:(Ljava/lang/String;)V
27: aload 5
ldc "FailOverExecutionControlProvider: FAILED: %d:%s --%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 6
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 7
aastore
invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
pop
28: aload 5
ldc " Exception: %s%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
aastore
invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
pop
29: aload 8
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 11
start local 11 30: iconst_0
istore 12
start local 12 31: goto 34
32: StackMap locals: jdk.jshell.execution.FailOverExecutionControlProvider jdk.jshell.spi.ExecutionEnv java.util.Map java.lang.Throwable java.io.StringWriter java.io.PrintWriter int java.lang.String java.lang.Throwable java.io.StringWriter java.io.PrintWriter java.lang.StackTraceElement[] int
StackMap stack:
aload 5
ldc " %s%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 11
iload 12
aaload
aastore
invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
pop
33: iinc 12 1
StackMap locals:
StackMap stack:
34: iload 12
iconst_5
if_icmpge 35
iload 12
aload 11
arraylength
if_icmplt 32
end local 12 35: StackMap locals:
StackMap stack:
aload 8
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
ifnull 37
36: aload 5
ldc " cause: %s%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
invokevirtual java.lang.Throwable.getCause:()Ljava/lang/Throwable;
aastore
invokevirtual java.io.PrintWriter.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;
pop
37: StackMap locals:
StackMap stack:
aload 8
astore 3
end local 11 end local 10 end local 9 end local 8 end local 7 38: StackMap locals: jdk.jshell.execution.FailOverExecutionControlProvider jdk.jshell.spi.ExecutionEnv java.util.Map java.lang.Throwable java.io.StringWriter java.io.PrintWriter int
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
39: iload 6
bipush 9
if_icmple 5
end local 6 40: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.logger:()Ljava/util/logging/Logger;
ldc "FailOverExecutionControlProvider: Terminating, failovers exhausted"
invokevirtual java.util.logging.Logger.severe:(Ljava/lang/String;)V
41: aload 3
ifnonnull 43
42: new java.lang.IllegalArgumentException
dup
ldc "All least one parameter must be set to a provider."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
43: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
aload 4
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 this Ljdk/jshell/execution/FailOverExecutionControlProvider;
0 44 1 env Ljdk/jshell/spi/ExecutionEnv;
0 44 2 parameters Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 44 3 thrown Ljava/lang/Throwable;
2 44 4 dumpsw Ljava/io/StringWriter;
3 44 5 dump Ljava/io/PrintWriter;
4 40 6 i I
6 38 7 param Ljava/lang/String;
8 15 8 ec Ljdk/jshell/spi/ExecutionControl;
16 38 8 ex Ljava/lang/Throwable;
22 38 9 writer Ljava/io/StringWriter;
23 38 10 log Ljava/io/PrintWriter;
30 38 11 st [Ljava/lang/StackTraceElement;
31 35 12 k I
Exception table:
from to target type
7 14 15 Class java.lang.Throwable
Exceptions:
throws java.lang.Throwable
Signature: (Ljdk/jshell/spi/ExecutionEnv;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljdk/jshell/spi/ExecutionControl;
MethodParameters:
Name Flags
env
parameters
private java.util.logging.Logger logger();
descriptor: ()Ljava/util/logging/Logger;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.execution.FailOverExecutionControlProvider.logger:Ljava/util/logging/Logger;
ifnonnull 4
1: aload 0
ldc "jdk.jshell.execution"
invokestatic java.util.logging.Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
putfield jdk.jshell.execution.FailOverExecutionControlProvider.logger:Ljava/util/logging/Logger;
2: aload 0
getfield jdk.jshell.execution.FailOverExecutionControlProvider.logger:Ljava/util/logging/Logger;
invokevirtual java.util.logging.Logger.getLevel:()Ljava/util/logging/Level;
ifnonnull 4
3: aload 0
getfield jdk.jshell.execution.FailOverExecutionControlProvider.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.OFF:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.setLevel:(Ljava/util/logging/Level;)V
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.execution.FailOverExecutionControlProvider.logger:Ljava/util/logging/Logger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jshell/execution/FailOverExecutionControlProvider;
}
SourceFile: "FailOverExecutionControlProvider.java"