public class org.apache.cassandra.metrics.LatencyMetrics
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.metrics.LatencyMetrics
super_class: java.lang.Object
{
public final com.codahale.metrics.Timer latency;
descriptor: Lcom/codahale/metrics/Timer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
public final com.codahale.metrics.Counter totalLatency;
descriptor: Lcom/codahale/metrics/Counter;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private java.util.List<org.apache.cassandra.metrics.LatencyMetrics> parents;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lorg/apache/cassandra/metrics/LatencyMetrics;>;
protected final org.apache.cassandra.metrics.MetricNameFactory factory;
descriptor: Lorg/apache/cassandra/metrics/MetricNameFactory;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.apache.cassandra.metrics.MetricNameFactory aliasFactory;
descriptor: Lorg/apache/cassandra/metrics/MetricNameFactory;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.lang.String namePrefix;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ldc ""
aload 2
invokespecial org.apache.cassandra.metrics.LatencyMetrics.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/metrics/LatencyMetrics;
0 2 1 type Ljava/lang/String;
0 2 2 scope Ljava/lang/String;
MethodParameters:
Name Flags
type
scope
public void <init>(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
new org.apache.cassandra.metrics.DefaultNameFactory
dup
aload 1
aload 3
invokespecial org.apache.cassandra.metrics.DefaultNameFactory.<init>:(Ljava/lang/String;Ljava/lang/String;)V
aload 2
invokespecial org.apache.cassandra.metrics.LatencyMetrics.<init>:(Lorg/apache/cassandra/metrics/MetricNameFactory;Ljava/lang/String;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/metrics/LatencyMetrics;
0 2 1 type Ljava/lang/String;
0 2 2 namePrefix Ljava/lang/String;
0 2 3 scope Ljava/lang/String;
MethodParameters:
Name Flags
type
namePrefix
scope
public void <init>(org.apache.cassandra.metrics.MetricNameFactory, java.lang.String);
descriptor: (Lorg/apache/cassandra/metrics/MetricNameFactory;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aload 2
invokespecial org.apache.cassandra.metrics.LatencyMetrics.<init>:(Lorg/apache/cassandra/metrics/MetricNameFactory;Lorg/apache/cassandra/metrics/MetricNameFactory;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/metrics/LatencyMetrics;
0 2 1 factory Lorg/apache/cassandra/metrics/MetricNameFactory;
0 2 2 namePrefix Ljava/lang/String;
MethodParameters:
Name Flags
factory
namePrefix
public void <init>(org.apache.cassandra.metrics.MetricNameFactory, org.apache.cassandra.metrics.MetricNameFactory, java.lang.String);
descriptor: (Lorg/apache/cassandra/metrics/MetricNameFactory;Lorg/apache/cassandra/metrics/MetricNameFactory;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic com.google.common.collect.Lists.newArrayList:()Ljava/util/ArrayList;
putfield org.apache.cassandra.metrics.LatencyMetrics.parents:Ljava/util/List;
2: aload 0
aload 1
putfield org.apache.cassandra.metrics.LatencyMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
3: aload 0
aload 2
putfield org.apache.cassandra.metrics.LatencyMetrics.aliasFactory:Lorg/apache/cassandra/metrics/MetricNameFactory;
4: aload 0
aload 3
putfield org.apache.cassandra.metrics.LatencyMetrics.namePrefix:Ljava/lang/String;
5: aload 2
ifnonnull 9
6: aload 0
getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 1
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Latency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.timer:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Lcom/codahale/metrics/Timer;
putfield org.apache.cassandra.metrics.LatencyMetrics.latency:Lcom/codahale/metrics/Timer;
7: aload 0
getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 1
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "TotalLatency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.counter:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Lcom/codahale/metrics/Counter;
putfield org.apache.cassandra.metrics.LatencyMetrics.totalLatency:Lcom/codahale/metrics/Counter;
8: goto 11
9: StackMap locals: org.apache.cassandra.metrics.LatencyMetrics org.apache.cassandra.metrics.MetricNameFactory org.apache.cassandra.metrics.MetricNameFactory java.lang.String
StackMap stack:
aload 0
getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 1
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Latency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
aload 2
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Latency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.timer:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Lcom/codahale/metrics/Timer;
putfield org.apache.cassandra.metrics.LatencyMetrics.latency:Lcom/codahale/metrics/Timer;
10: aload 0
getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 1
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "TotalLatency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
aload 2
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "TotalLatency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.counter:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Lcom/codahale/metrics/Counter;
putfield org.apache.cassandra.metrics.LatencyMetrics.totalLatency:Lcom/codahale/metrics/Counter;
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/metrics/LatencyMetrics;
0 12 1 factory Lorg/apache/cassandra/metrics/MetricNameFactory;
0 12 2 aliasFactory Lorg/apache/cassandra/metrics/MetricNameFactory;
0 12 3 namePrefix Ljava/lang/String;
MethodParameters:
Name Flags
factory
aliasFactory
namePrefix
public void <init>(org.apache.cassandra.metrics.MetricNameFactory, java.lang.String, org.apache.cassandra.metrics.LatencyMetrics[]);
descriptor: (Lorg/apache/cassandra/metrics/MetricNameFactory;Ljava/lang/String;[Lorg/apache/cassandra/metrics/LatencyMetrics;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aconst_null
aload 2
invokespecial org.apache.cassandra.metrics.LatencyMetrics.<init>:(Lorg/apache/cassandra/metrics/MetricNameFactory;Lorg/apache/cassandra/metrics/MetricNameFactory;Ljava/lang/String;)V
1: aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.parents:Ljava/util/List;
aload 3
invokestatic com.google.common.collect.ImmutableList.copyOf:([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/metrics/LatencyMetrics;
0 3 1 factory Lorg/apache/cassandra/metrics/MetricNameFactory;
0 3 2 namePrefix Ljava/lang/String;
0 3 3 parents [Lorg/apache/cassandra/metrics/LatencyMetrics;
MethodParameters:
Name Flags
factory
namePrefix
parents
public void addNano(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.latency:Lcom/codahale/metrics/Timer;
lload 1
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual com.codahale.metrics.Timer.update:(JLjava/util/concurrent/TimeUnit;)V
1: aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.totalLatency:Lcom/codahale/metrics/Counter;
lload 1
ldc 1000
ldiv
invokevirtual com.codahale.metrics.Counter.inc:(J)V
2: aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.parents:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.apache.cassandra.metrics.LatencyMetrics long top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.metrics.LatencyMetrics
astore 3
start local 3 4: aload 3
lload 1
invokevirtual org.apache.cassandra.metrics.LatencyMetrics.addNano:(J)V
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/metrics/LatencyMetrics;
0 7 1 nanos J
4 5 3 parent Lorg/apache/cassandra/metrics/LatencyMetrics;
MethodParameters:
Name Flags
nanos
public void release();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.aliasFactory:Lorg/apache/cassandra/metrics/MetricNameFactory;
ifnonnull 4
1: getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.namePrefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Latency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.remove:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Z
pop
2: getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.namePrefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "TotalLatency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.remove:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Z
pop
3: goto 6
4: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.namePrefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Latency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.aliasFactory:Lorg/apache/cassandra/metrics/MetricNameFactory;
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.namePrefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Latency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.remove:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Z
pop
5: getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.namePrefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "TotalLatency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.aliasFactory:Lorg/apache/cassandra/metrics/MetricNameFactory;
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.metrics.LatencyMetrics.namePrefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "TotalLatency"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.remove:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Z
pop
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/metrics/LatencyMetrics;
}
SourceFile: "LatencyMetrics.java"
InnerClasses:
public MetricName = org.apache.cassandra.metrics.CassandraMetricsRegistry$MetricName of org.apache.cassandra.metrics.CassandraMetricsRegistry