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=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 28
3: StackMap locals: java.lang.Throwable int
StackMap stack:
aload 2
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 4
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 5
start local 5 4: aload 5
ifnull 27
aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifne 27
5: aload 1
aload 5
invokestatic jdk.jshell.spi.ExecutionControl.generate:(Ljdk/jshell/spi/ExecutionEnv;Ljava/lang/String;)Ljdk/jshell/spi/ExecutionControl;
astore 6
start local 6 6: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.logger:()Ljava/util/logging/Logger;
7: ldc "FailOverExecutionControlProvider: Success %s -- %d = %s\n"
iconst_3
anewarray java.lang.Object
dup
iconst_0
8: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.name:()Ljava/lang/String;
aastore
dup
iconst_1
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 5
aastore
9: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
10: invokevirtual java.util.logging.Logger.finest:(Ljava/lang/String;)V
11: aload 6
12: areturn
end local 6 13: StackMap locals: jdk.jshell.execution.FailOverExecutionControlProvider jdk.jshell.spi.ExecutionEnv java.util.Map java.lang.Throwable int java.lang.String
StackMap stack: java.lang.Throwable
astore 6
start local 6 14: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.logger:()Ljava/util/logging/Logger;
15: ldc "FailOverExecutionControlProvider: Failure %s -- %d = %s -- %s\n"
iconst_4
anewarray java.lang.Object
dup
iconst_0
16: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.name:()Ljava/lang/String;
aastore
dup
iconst_1
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 5
aastore
dup
iconst_3
aload 6
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
aastore
17: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
18: invokevirtual java.util.logging.Logger.warning:(Ljava/lang/String;)V
19: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 7
start local 7 20: new java.io.PrintWriter
dup
aload 7
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 8
start local 8 21: aload 8
ldc "FailOverExecutionControlProvider:"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
22: aload 6
aload 8
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintWriter;)V
23: aload 8
invokevirtual java.io.PrintWriter.flush:()V
24: aload 0
invokevirtual jdk.jshell.execution.FailOverExecutionControlProvider.logger:()Ljava/util/logging/Logger;
aload 7
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.fine:(Ljava/lang/String;)V
25: aload 3
ifnonnull 27
26: aload 6
astore 3
end local 8 end local 7 end local 6 end local 5 27: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
28: iload 4
bipush 9
if_icmple 3
end local 4 29: 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
30: aload 3
ifnonnull 32
31: 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
32: StackMap locals:
StackMap stack:
aload 3
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Ljdk/jshell/execution/FailOverExecutionControlProvider;
0 33 1 env Ljdk/jshell/spi/ExecutionEnv;
0 33 2 parameters Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 33 3 thrown Ljava/lang/Throwable;
2 29 4 i I
4 27 5 param Ljava/lang/String;
6 13 6 ec Ljdk/jshell/spi/ExecutionControl;
14 27 6 ex Ljava/lang/Throwable;
20 27 7 writer Ljava/io/StringWriter;
21 27 8 log Ljava/io/PrintWriter;
Exception table:
from to target type
5 12 13 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"