public class org.apache.cassandra.dht.tokenallocator.TokenAllocatorFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.dht.tokenallocator.TokenAllocatorFactory
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/dht/tokenallocator/TokenAllocatorFactory;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.dht.tokenallocator.TokenAllocatorFactory.logger:Lorg/slf4j/Logger;
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/apache/cassandra/dht/tokenallocator/TokenAllocatorFactory;
public static org.apache.cassandra.dht.tokenallocator.TokenAllocator<java.net.InetAddress> createTokenAllocator(java.util.NavigableMap<org.apache.cassandra.dht.Token, java.net.InetAddress>, org.apache.cassandra.dht.tokenallocator.ReplicationStrategy<java.net.InetAddress>, org.apache.cassandra.dht.IPartitioner);
descriptor: (Ljava/util/NavigableMap;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;Lorg/apache/cassandra/dht/IPartitioner;)Lorg/apache/cassandra/dht/tokenallocator/TokenAllocator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.apache.cassandra.dht.tokenallocator.ReplicationStrategy.replicas:()I
iconst_1
if_icmpne 3
1: getstatic org.apache.cassandra.dht.tokenallocator.TokenAllocatorFactory.logger:Lorg/slf4j/Logger;
ldc "Using NoReplicationTokenAllocator."
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
2: new org.apache.cassandra.dht.tokenallocator.NoReplicationTokenAllocator
dup
aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.dht.tokenallocator.NoReplicationTokenAllocator.<init>:(Ljava/util/NavigableMap;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;Lorg/apache/cassandra/dht/IPartitioner;)V
areturn
3: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.dht.tokenallocator.TokenAllocatorFactory.logger:Lorg/slf4j/Logger;
ldc "Using ReplicationAwareTokenAllocator."
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
4: new org.apache.cassandra.dht.tokenallocator.ReplicationAwareTokenAllocator
dup
aload 0
aload 1
aload 2
invokespecial org.apache.cassandra.dht.tokenallocator.ReplicationAwareTokenAllocator.<init>:(Ljava/util/NavigableMap;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy;Lorg/apache/cassandra/dht/IPartitioner;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 sortedTokens Ljava/util/NavigableMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
0 5 1 strategy Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy<Ljava/net/InetAddress;>;
0 5 2 partitioner Lorg/apache/cassandra/dht/IPartitioner;
Signature: (Ljava/util/NavigableMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;Lorg/apache/cassandra/dht/tokenallocator/ReplicationStrategy<Ljava/net/InetAddress;>;Lorg/apache/cassandra/dht/IPartitioner;)Lorg/apache/cassandra/dht/tokenallocator/TokenAllocator<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
sortedTokens
strategy
partitioner
}
SourceFile: "TokenAllocatorFactory.java"