final class org.apache.cassandra.hints.HintsDispatchExecutor
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.hints.HintsDispatchExecutor
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.io.File hintsDirectory;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.ExecutorService executor;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicBoolean isPaused;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Function<java.net.InetAddress, java.lang.Boolean> isAlive;
descriptor: Ljava/util/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Function<Ljava/net/InetAddress;Ljava/lang/Boolean;>;
private final java.util.Map<java.util.UUID, java.util.concurrent.Future> scheduledDispatches;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/util/UUID;Ljava/util/concurrent/Future;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/hints/HintsDispatchExecutor;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.hints.HintsDispatchExecutor.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.io.File, int, java.util.concurrent.atomic.AtomicBoolean, java.util.function.Function<java.net.InetAddress, java.lang.Boolean>);
descriptor: (Ljava/io/File;ILjava/util/concurrent/atomic/AtomicBoolean;Ljava/util/function/Function;)V
flags: (0x0000)
Code:
stack=12, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.hints.HintsDispatchExecutor.hintsDirectory:Ljava/io/File;
2: aload 0
aload 3
putfield org.apache.cassandra.hints.HintsDispatchExecutor.isPaused:Ljava/util/concurrent/atomic/AtomicBoolean;
3: aload 0
aload 4
putfield org.apache.cassandra.hints.HintsDispatchExecutor.isAlive:Ljava/util/function/Function;
4: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.hints.HintsDispatchExecutor.scheduledDispatches:Ljava/util/Map;
5: aload 0
new org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor
dup
iload 2
lconst_1
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
6: new java.util.concurrent.LinkedBlockingQueue
dup
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:()V
7: new org.apache.cassandra.concurrent.NamedThreadFactory
dup
ldc "HintsDispatcher"
iconst_1
invokespecial org.apache.cassandra.concurrent.NamedThreadFactory.<init>:(Ljava/lang/String;I)V
8: ldc "internal"
invokespecial org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>:(IJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Lorg/apache/cassandra/concurrent/NamedThreadFactory;Ljava/lang/String;)V
9: putfield org.apache.cassandra.hints.HintsDispatchExecutor.executor:Ljava/util/concurrent/ExecutorService;
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 11 1 hintsDirectory Ljava/io/File;
0 11 2 maxThreads I
0 11 3 isPaused Ljava/util/concurrent/atomic/AtomicBoolean;
0 11 4 isAlive Ljava/util/function/Function<Ljava/net/InetAddress;Ljava/lang/Boolean;>;
Signature: (Ljava/io/File;ILjava/util/concurrent/atomic/AtomicBoolean;Ljava/util/function/Function<Ljava/net/InetAddress;Ljava/lang/Boolean;>;)V
MethodParameters:
Name Flags
hintsDirectory
maxThreads
isPaused
isAlive
void shutdownBlocking();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.scheduledDispatches:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
1: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.executor:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdownNow:()Ljava/util/List;
pop
2: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.executor:Ljava/util/concurrent/ExecutorService;
lconst_1
getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.ExecutorService.awaitTermination:(JLjava/util/concurrent/TimeUnit;)Z
pop
3: goto 6
4: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 5: new java.lang.AssertionError
dup
aload 1
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
5 6 1 e Ljava/lang/InterruptedException;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
boolean isScheduled(org.apache.cassandra.hints.HintsStore);
descriptor: (Lorg/apache/cassandra/hints/HintsStore;)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.scheduledDispatches:Ljava/util/Map;
aload 1
getfield org.apache.cassandra.hints.HintsStore.hostId:Ljava/util/UUID;
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 1 1 store Lorg/apache/cassandra/hints/HintsStore;
MethodParameters:
Name Flags
store
java.util.concurrent.Future dispatch(org.apache.cassandra.hints.HintsStore);
descriptor: (Lorg/apache/cassandra/hints/HintsStore;)Ljava/util/concurrent/Future;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
getfield org.apache.cassandra.hints.HintsStore.hostId:Ljava/util/UUID;
invokevirtual org.apache.cassandra.hints.HintsDispatchExecutor.dispatch:(Lorg/apache/cassandra/hints/HintsStore;Ljava/util/UUID;)Ljava/util/concurrent/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 1 1 store Lorg/apache/cassandra/hints/HintsStore;
MethodParameters:
Name Flags
store
java.util.concurrent.Future dispatch(org.apache.cassandra.hints.HintsStore, java.util.UUID);
descriptor: (Lorg/apache/cassandra/hints/HintsStore;Ljava/util/UUID;)Ljava/util/concurrent/Future;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.scheduledDispatches:Ljava/util/Map;
aload 2
aload 0
aload 1
aload 2
invokedynamic apply(Lorg/apache/cassandra/hints/HintsDispatchExecutor;Lorg/apache/cassandra/hints/HintsStore;Ljava/util/UUID;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/apache/cassandra/hints/HintsDispatchExecutor.lambda$0(Lorg/apache/cassandra/hints/HintsStore;Ljava/util/UUID;Ljava/util/UUID;)Ljava/util/concurrent/Future; (7)
(Ljava/util/UUID;)Ljava/util/concurrent/Future;
invokeinterface java.util.Map.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast java.util.concurrent.Future
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 1 1 store Lorg/apache/cassandra/hints/HintsStore;
0 1 2 hostId Ljava/util/UUID;
MethodParameters:
Name Flags
store
hostId
java.util.concurrent.Future transfer(org.apache.cassandra.hints.HintsCatalog, java.util.function.Supplier<java.util.UUID>);
descriptor: (Lorg/apache/cassandra/hints/HintsCatalog;Ljava/util/function/Supplier;)Ljava/util/concurrent/Future;
flags: (0x0000)
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.executor:Ljava/util/concurrent/ExecutorService;
new org.apache.cassandra.hints.HintsDispatchExecutor$TransferHintsTask
dup
aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.hints.HintsDispatchExecutor$TransferHintsTask.<init>:(Lorg/apache/cassandra/hints/HintsDispatchExecutor;Lorg/apache/cassandra/hints/HintsCatalog;Ljava/util/function/Supplier;)V
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 1 1 catalog Lorg/apache/cassandra/hints/HintsCatalog;
0 1 2 hostIdSupplier Ljava/util/function/Supplier<Ljava/util/UUID;>;
Signature: (Lorg/apache/cassandra/hints/HintsCatalog;Ljava/util/function/Supplier<Ljava/util/UUID;>;)Ljava/util/concurrent/Future;
MethodParameters:
Name Flags
catalog
hostIdSupplier
void completeDispatchBlockingly(org.apache.cassandra.hints.HintsStore);
descriptor: (Lorg/apache/cassandra/hints/HintsStore;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.scheduledDispatches:Ljava/util/Map;
aload 1
getfield org.apache.cassandra.hints.HintsStore.hostId:Ljava/util/UUID;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Future
astore 2
start local 2 1: aload 2
ifnull 6
2: aload 2
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
pop
3: goto 6
4: StackMap locals: org.apache.cassandra.hints.HintsDispatchExecutor org.apache.cassandra.hints.HintsStore java.util.concurrent.Future
StackMap stack: java.lang.Exception
astore 3
start local 3 5: new java.lang.RuntimeException
dup
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 7 1 store Lorg/apache/cassandra/hints/HintsStore;
1 7 2 future Ljava/util/concurrent/Future;
5 6 3 e Ljava/lang/Exception;
Exception table:
from to target type
1 3 4 Class java.util.concurrent.ExecutionException
1 3 4 Class java.lang.InterruptedException
MethodParameters:
Name Flags
store
void interruptDispatch(java.util.UUID);
descriptor: (Ljava/util/UUID;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.scheduledDispatches:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Future
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
iconst_1
invokeinterface java.util.concurrent.Future.cancel:(Z)Z
pop
3: StackMap locals: java.util.concurrent.Future
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 4 1 hostId Ljava/util/UUID;
1 4 2 future Ljava/util/concurrent/Future;
MethodParameters:
Name Flags
hostId
private java.util.concurrent.Future lambda$0(org.apache.cassandra.hints.HintsStore, java.util.UUID, java.util.UUID);
descriptor: (Lorg/apache/cassandra/hints/HintsStore;Ljava/util/UUID;Ljava/util/UUID;)Ljava/util/concurrent/Future;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 3 0: aload 0
getfield org.apache.cassandra.hints.HintsDispatchExecutor.executor:Ljava/util/concurrent/ExecutorService;
new org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask
dup
aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask.<init>:(Lorg/apache/cassandra/hints/HintsDispatchExecutor;Lorg/apache/cassandra/hints/HintsStore;Ljava/util/UUID;)V
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
areturn
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/hints/HintsDispatchExecutor;
0 1 3 uuid Ljava/util/UUID;
}
SourceFile: "HintsDispatchExecutor.java"
NestMembers:
org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask org.apache.cassandra.hints.HintsDispatchExecutor$TransferHintsTask
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private final DispatchHintsTask = org.apache.cassandra.hints.HintsDispatchExecutor$DispatchHintsTask of org.apache.cassandra.hints.HintsDispatchExecutor
private final TransferHintsTask = org.apache.cassandra.hints.HintsDispatchExecutor$TransferHintsTask of org.apache.cassandra.hints.HintsDispatchExecutor