public final class org.apache.cassandra.schema.ReplicationParams
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.schema.ReplicationParams
super_class: java.lang.Object
{
public static final java.lang.String CLASS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "class"
public final java.lang.Class<? extends org.apache.cassandra.locator.AbstractReplicationStrategy> klass;
descriptor: Ljava/lang/Class;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Ljava/lang/Class<+Lorg/apache/cassandra/locator/AbstractReplicationStrategy;>;
public final com.google.common.collect.ImmutableMap<java.lang.String, java.lang.String> options;
descriptor: Lcom/google/common/collect/ImmutableMap;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Lcom/google/common/collect/ImmutableMap<Ljava/lang/String;Ljava/lang/String;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/schema/ReplicationParams;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.schema.ReplicationParams.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.Class<? extends org.apache.cassandra.locator.AbstractReplicationStrategy>, java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/lang/Class;Ljava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
2: aload 0
aload 2
invokestatic com.google.common.collect.ImmutableMap.copyOf:(Ljava/util/Map;)Lcom/google/common/collect/ImmutableMap;
putfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/schema/ReplicationParams;
0 4 1 klass Ljava/lang/Class<+Lorg/apache/cassandra/locator/AbstractReplicationStrategy;>;
0 4 2 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/lang/Class<+Lorg/apache/cassandra/locator/AbstractReplicationStrategy;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
klass
options
static org.apache.cassandra.schema.ReplicationParams local();
descriptor: ()Lorg/apache/cassandra/schema/ReplicationParams;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.apache.cassandra.schema.ReplicationParams
dup
ldc Lorg/apache/cassandra/locator/LocalStrategy;
invokestatic com.google.common.collect.ImmutableMap.of:()Lcom/google/common/collect/ImmutableMap;
invokespecial org.apache.cassandra.schema.ReplicationParams.<init>:(Ljava/lang/Class;Ljava/util/Map;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
static org.apache.cassandra.schema.ReplicationParams simple(int);
descriptor: (I)Lorg/apache/cassandra/schema/ReplicationParams;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new org.apache.cassandra.schema.ReplicationParams
dup
ldc Lorg/apache/cassandra/locator/SimpleStrategy;
ldc "replication_factor"
iload 0
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokestatic com.google.common.collect.ImmutableMap.of:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableMap;
invokespecial org.apache.cassandra.schema.ReplicationParams.<init>:(Ljava/lang/Class;Ljava/util/Map;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 replicationFactor I
MethodParameters:
Name Flags
replicationFactor
static org.apache.cassandra.schema.ReplicationParams nts(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)Lorg/apache/cassandra/schema/ReplicationParams;
flags: (0x0088) ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=5, args_size=1
start local 0 0: getstatic org.apache.cassandra.schema.ReplicationParams.$assertionsDisabled:Z
ifne 1
aload 0
arraylength
iconst_2
irem
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 2: iconst_0
istore 2
start local 2 3: goto 8
4: StackMap locals: java.util.Map int
StackMap stack:
aload 0
iload 2
aaload
checkcast java.lang.String
astore 3
start local 3 5: aload 0
iload 2
iconst_1
iadd
aaload
checkcast java.lang.Integer
astore 4
start local 4 6: aload 1
aload 3
aload 4
invokevirtual java.lang.Integer.toString:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 end local 3 7: iinc 2 2
StackMap locals:
StackMap stack:
8: iload 2
aload 0
arraylength
if_icmplt 4
end local 2 9: new org.apache.cassandra.schema.ReplicationParams
dup
ldc Lorg/apache/cassandra/locator/NetworkTopologyStrategy;
aload 1
invokespecial org.apache.cassandra.schema.ReplicationParams.<init>:(Ljava/lang/Class;Ljava/util/Map;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 args [Ljava/lang/Object;
2 10 1 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
3 9 2 i I
5 7 3 dc Ljava/lang/String;
6 7 4 rf Ljava/lang/Integer;
MethodParameters:
Name Flags
args
public void validate(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, 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;
astore 2
start local 2 1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getEndpointSnitch:()Lorg/apache/cassandra/locator/IEndpointSnitch;
astore 3
start local 3 2: aload 1
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
aload 2
aload 3
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
invokestatic org.apache.cassandra.locator.AbstractReplicationStrategy.validateReplicationStrategy:(Ljava/lang/String;Ljava/lang/Class;Lorg/apache/cassandra/locator/TokenMetadata;Lorg/apache/cassandra/locator/IEndpointSnitch;Ljava/util/Map;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/schema/ReplicationParams;
0 4 1 name Ljava/lang/String;
1 4 2 tmd Lorg/apache/cassandra/locator/TokenMetadata;
2 4 3 eps Lorg/apache/cassandra/locator/IEndpointSnitch;
MethodParameters:
Name Flags
name
public static org.apache.cassandra.schema.ReplicationParams fromMap(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Lorg/apache/cassandra/schema/ReplicationParams;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new java.util.HashMap
dup
aload 0
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 1
start local 1 1: aload 1
ldc "class"
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 2
invokestatic org.apache.cassandra.locator.AbstractReplicationStrategy.getClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 3: new org.apache.cassandra.schema.ReplicationParams
dup
aload 3
aload 1
invokespecial org.apache.cassandra.schema.ReplicationParams.<init>:(Ljava/lang/Class;Ljava/util/Map;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 4 1 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 4 2 className Ljava/lang/String;
3 4 3 klass Ljava/lang/Class<+Lorg/apache/cassandra/locator/AbstractReplicationStrategy;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Lorg/apache/cassandra/schema/ReplicationParams;
MethodParameters:
Name Flags
map
public java.util.Map<java.lang.String, java.lang.String> asMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.HashMap
dup
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 1
start local 1 1: aload 1
ldc "class"
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/schema/ReplicationParams;
1 3 1 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.apache.cassandra.schema.ReplicationParams
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.schema.ReplicationParams
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
aload 2
getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
aload 2
getfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.equals:(Ljava/lang/Object;)Z
ifeq 6
iconst_1
ireturn
StackMap locals: org.apache.cassandra.schema.ReplicationParams
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/schema/ReplicationParams;
0 7 1 o Ljava/lang/Object;
5 7 2 r Lorg/apache/cassandra/schema/ReplicationParams;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
aastore
invokestatic com.google.common.base.Objects.hashCode:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/schema/ReplicationParams;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokestatic com.google.common.base.MoreObjects.toStringHelper:(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
astore 1
start local 1 1: aload 1
ldc "class"
aload 0
getfield org.apache.cassandra.schema.ReplicationParams.klass:Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.add:(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
pop
2: aload 0
getfield org.apache.cassandra.schema.ReplicationParams.options:Lcom/google/common/collect/ImmutableMap;
invokevirtual com.google.common.collect.ImmutableMap.entrySet:()Lcom/google/common/collect/ImmutableSet;
invokevirtual com.google.common.collect.ImmutableSet.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.cassandra.schema.ReplicationParams com.google.common.base.MoreObjects$ToStringHelper top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 4: aload 1
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.add:(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 1
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/schema/ReplicationParams;
1 7 1 helper Lcom/google/common/base/MoreObjects$ToStringHelper;
4 5 2 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
}
SourceFile: "ReplicationParams.java"
InnerClasses:
public final ToStringHelper = com.google.common.base.MoreObjects$ToStringHelper of com.google.common.base.MoreObjects
public abstract Entry = java.util.Map$Entry of java.util.Map