public class org.apache.cassandra.service.PendingRangeCalculatorService
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.service.PendingRangeCalculatorService
super_class: java.lang.Object
{
public static final org.apache.cassandra.service.PendingRangeCalculatorService instance;
descriptor: Lorg/apache/cassandra/service/PendingRangeCalculatorService;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor executor;
descriptor: Lorg/apache/cassandra/concurrent/JMXEnabledThreadPoolExecutor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.concurrent.atomic.AtomicInteger updateJobs;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.apache.cassandra.service.PendingRangeCalculatorService
dup
invokespecial org.apache.cassandra.service.PendingRangeCalculatorService.<init>:()V
putstatic org.apache.cassandra.service.PendingRangeCalculatorService.instance:Lorg/apache/cassandra/service/PendingRangeCalculatorService;
1: ldc Lorg/apache/cassandra/service/PendingRangeCalculatorService;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.service.PendingRangeCalculatorService.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor
dup
iconst_1
ldc 2147483647
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
2: new java.util.concurrent.LinkedBlockingQueue
dup
iconst_1
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:(I)V
new org.apache.cassandra.concurrent.NamedThreadFactory
dup
ldc "PendingRangeCalculator"
invokespecial org.apache.cassandra.concurrent.NamedThreadFactory.<init>:(Ljava/lang/String;)V
ldc "internal"
3: invokespecial org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.<init>:(IJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Lorg/apache/cassandra/concurrent/NamedThreadFactory;Ljava/lang/String;)V
putfield org.apache.cassandra.service.PendingRangeCalculatorService.executor:Lorg/apache/cassandra/concurrent/JMXEnabledThreadPoolExecutor;
4: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.apache.cassandra.service.PendingRangeCalculatorService.updateJobs:Ljava/util/concurrent/atomic/AtomicInteger;
5: aload 0
getfield org.apache.cassandra.service.PendingRangeCalculatorService.executor:Lorg/apache/cassandra/concurrent/JMXEnabledThreadPoolExecutor;
new org.apache.cassandra.service.PendingRangeCalculatorService$1
dup
aload 0
invokespecial org.apache.cassandra.service.PendingRangeCalculatorService$1.<init>:(Lorg/apache/cassandra/service/PendingRangeCalculatorService;)V
invokevirtual org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.setRejectedExecutionHandler:(Ljava/util/concurrent/RejectedExecutionHandler;)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/PendingRangeCalculatorService;
private void finishUpdate();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.PendingRangeCalculatorService.updateJobs:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/PendingRangeCalculatorService;
public void update();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.PendingRangeCalculatorService.updateJobs:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
1: aload 0
getfield org.apache.cassandra.service.PendingRangeCalculatorService.executor:Lorg/apache/cassandra/concurrent/JMXEnabledThreadPoolExecutor;
new org.apache.cassandra.service.PendingRangeCalculatorService$PendingRangeTask
dup
invokespecial org.apache.cassandra.service.PendingRangeCalculatorService$PendingRangeTask.<init>:()V
invokevirtual org.apache.cassandra.concurrent.JMXEnabledThreadPoolExecutor.submit:(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/service/PendingRangeCalculatorService;
public void blockUntilFinished();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: goto 5
1: StackMap locals:
StackMap stack:
ldc 100
invokestatic java.lang.Thread.sleep:(J)V
2: goto 5
3: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 4: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.PendingRangeCalculatorService.updateJobs:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ifgt 1
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/PendingRangeCalculatorService;
4 5 1 e Ljava/lang/InterruptedException;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
public static void calculatePendingRanges(org.apache.cassandra.locator.AbstractReplicationStrategy, java.lang.String);
descriptor: (Lorg/apache/cassandra/locator/AbstractReplicationStrategy;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.getTokenMetadata:()Lorg/apache/cassandra/locator/TokenMetadata;
aload 0
aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata.calculatePendingRanges:(Lorg/apache/cassandra/locator/AbstractReplicationStrategy;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 strategy Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
0 2 1 keyspaceName Ljava/lang/String;
MethodParameters:
Name Flags
strategy
keyspaceName
public void shutdownExecutor(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 3 0: lload 1
aload 3
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.service.PendingRangeCalculatorService.executor:Lorg/apache/cassandra/concurrent/JMXEnabledThreadPoolExecutor;
aastore
invokestatic org.apache.cassandra.utils.ExecutorUtils.shutdownNowAndWait:(JLjava/util/concurrent/TimeUnit;[Ljava/lang/Object;)V
1: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/PendingRangeCalculatorService;
0 2 1 timeout J
0 2 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
timeout
unit
}
SourceFile: "PendingRangeCalculatorService.java"
NestMembers:
org.apache.cassandra.service.PendingRangeCalculatorService$1 org.apache.cassandra.service.PendingRangeCalculatorService$PendingRangeTask
InnerClasses:
org.apache.cassandra.service.PendingRangeCalculatorService$1
private PendingRangeTask = org.apache.cassandra.service.PendingRangeCalculatorService$PendingRangeTask of org.apache.cassandra.service.PendingRangeCalculatorService