public class org.apache.cassandra.metrics.ClientMetrics
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.metrics.ClientMetrics
super_class: java.lang.Object
{
private static final org.apache.cassandra.metrics.MetricNameFactory factory;
descriptor: Lorg/apache/cassandra/metrics/MetricNameFactory;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final org.apache.cassandra.metrics.ClientMetrics instance;
descriptor: Lorg/apache/cassandra/metrics/ClientMetrics;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private volatile boolean initialized;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private java.util.Collection<org.apache.cassandra.transport.Server> servers;
descriptor: Ljava/util/Collection;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Collection<Lorg/apache/cassandra/transport/Server;>;
private java.util.concurrent.atomic.AtomicInteger pausedConnections;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0002) ACC_PRIVATE
private com.codahale.metrics.Gauge<java.lang.Integer> pausedConnectionsGauge;
descriptor: Lcom/codahale/metrics/Gauge;
flags: (0x0002) ACC_PRIVATE
Signature: Lcom/codahale/metrics/Gauge<Ljava/lang/Integer;>;
private com.codahale.metrics.Meter requestDiscarded;
descriptor: Lcom/codahale/metrics/Meter;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.apache.cassandra.metrics.DefaultNameFactory
dup
ldc "Client"
invokespecial org.apache.cassandra.metrics.DefaultNameFactory.<init>:(Ljava/lang/String;)V
putstatic org.apache.cassandra.metrics.ClientMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
1: new org.apache.cassandra.metrics.ClientMetrics
dup
invokespecial org.apache.cassandra.metrics.ClientMetrics.<init>:()V
putstatic org.apache.cassandra.metrics.ClientMetrics.instance:Lorg/apache/cassandra/metrics/ClientMetrics;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.cassandra.metrics.ClientMetrics.initialized:Z
2: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield org.apache.cassandra.metrics.ClientMetrics.servers:Ljava/util/Collection;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
public void pauseConnection();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.metrics.ClientMetrics.pausedConnections:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
public void unpauseConnection();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.metrics.ClientMetrics.pausedConnections:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
pop
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
public void markRequestDiscarded();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.metrics.ClientMetrics.requestDiscarded:Lcom/codahale/metrics/Meter;
invokevirtual com.codahale.metrics.Meter.mark:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
public synchronized void init(java.util.Collection<org.apache.cassandra.transport.Server>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.metrics.ClientMetrics.initialized:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.cassandra.metrics.ClientMetrics.servers:Ljava/util/Collection;
3: aload 0
ldc "connectedNativeClients"
aload 0
invokedynamic getValue(Lorg/apache/cassandra/metrics/ClientMetrics;)Lcom/codahale/metrics/Gauge;
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;
org/apache/cassandra/metrics/ClientMetrics.countConnectedClients()I (7)
()Ljava/lang/Integer;
invokevirtual org.apache.cassandra.metrics.ClientMetrics.registerGauge:(Ljava/lang/String;Lcom/codahale/metrics/Gauge;)Lcom/codahale/metrics/Gauge;
pop
4: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield org.apache.cassandra.metrics.ClientMetrics.pausedConnections:Ljava/util/concurrent/atomic/AtomicInteger;
5: aload 0
aload 0
ldc "PausedConnections"
aload 0
getfield org.apache.cassandra.metrics.ClientMetrics.pausedConnections:Ljava/util/concurrent/atomic/AtomicInteger;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic getValue(Ljava/util/concurrent/atomic/AtomicInteger;)Lcom/codahale/metrics/Gauge;
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;
java/util/concurrent/atomic/AtomicInteger.get()I (5)
()Ljava/lang/Integer;
invokevirtual org.apache.cassandra.metrics.ClientMetrics.registerGauge:(Ljava/lang/String;Lcom/codahale/metrics/Gauge;)Lcom/codahale/metrics/Gauge;
putfield org.apache.cassandra.metrics.ClientMetrics.pausedConnectionsGauge:Lcom/codahale/metrics/Gauge;
6: aload 0
aload 0
ldc "RequestDiscarded"
invokevirtual org.apache.cassandra.metrics.ClientMetrics.registerMeter:(Ljava/lang/String;)Lcom/codahale/metrics/Meter;
putfield org.apache.cassandra.metrics.ClientMetrics.requestDiscarded:Lcom/codahale/metrics/Meter;
7: aload 0
iconst_1
putfield org.apache.cassandra.metrics.ClientMetrics.initialized:Z
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
0 9 1 servers Ljava/util/Collection<Lorg/apache/cassandra/transport/Server;>;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/transport/Server;>;)V
MethodParameters:
Name Flags
servers
public void addCounter(java.lang.String, java.util.concurrent.Callable<java.lang.Integer>);
descriptor: (Ljava/lang/String;Ljava/util/concurrent/Callable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
getstatic org.apache.cassandra.metrics.ClientMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
aload 1
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
aload 2
invokedynamic getValue(Ljava/util/concurrent/Callable;)Lcom/codahale/metrics/Gauge;
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;
org/apache/cassandra/metrics/ClientMetrics.lambda$2(Ljava/util/concurrent/Callable;)Ljava/lang/Integer; (6)
()Ljava/lang/Integer;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.register:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;Lcom/codahale/metrics/Metric;)Lcom/codahale/metrics/Metric;
pop
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/ClientMetrics;
0 2 1 name Ljava/lang/String;
0 2 2 provider Ljava/util/concurrent/Callable<Ljava/lang/Integer;>;
Signature: (Ljava/lang/String;Ljava/util/concurrent/Callable<Ljava/lang/Integer;>;)V
MethodParameters:
Name Flags
name
provider final
private int countConnectedClients();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield org.apache.cassandra.metrics.ClientMetrics.servers:Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.metrics.ClientMetrics int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.transport.Server
astore 2
start local 2 3: iload 1
aload 2
invokevirtual org.apache.cassandra.transport.Server.getConnectedClients:()I
iadd
istore 1
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
1 6 1 count I
3 4 2 server Lorg/apache/cassandra/transport/Server;
private <T> com.codahale.metrics.Gauge<T> registerGauge(java.lang.String, com.codahale.metrics.Gauge<T>);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/Gauge;)Lcom/codahale/metrics/Gauge;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
getstatic org.apache.cassandra.metrics.ClientMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
aload 1
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
aload 2
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.register:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;Lcom/codahale/metrics/Metric;)Lcom/codahale/metrics/Metric;
checkcast com.codahale.metrics.Gauge
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
0 1 1 name Ljava/lang/String;
0 1 2 gauge Lcom/codahale/metrics/Gauge<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;Lcom/codahale/metrics/Gauge<TT;>;)Lcom/codahale/metrics/Gauge<TT;>;
MethodParameters:
Name Flags
name
gauge
public com.codahale.metrics.Meter registerMeter(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/codahale/metrics/Meter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.metrics.CassandraMetricsRegistry.Metrics:Lorg/apache/cassandra/metrics/CassandraMetricsRegistry;
getstatic org.apache.cassandra.metrics.ClientMetrics.factory:Lorg/apache/cassandra/metrics/MetricNameFactory;
aload 1
invokeinterface org.apache.cassandra.metrics.MetricNameFactory.createMetricName:(Ljava/lang/String;)Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;
invokevirtual org.apache.cassandra.metrics.CassandraMetricsRegistry.meter:(Lorg/apache/cassandra/metrics/CassandraMetricsRegistry$MetricName;)Lcom/codahale/metrics/Meter;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/metrics/ClientMetrics;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private static java.lang.Integer lambda$2(java.util.concurrent.Callable);
descriptor: (Ljava/util/concurrent/Callable;)Ljava/lang/Integer;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=1
0: aload 0
invokeinterface java.util.concurrent.Callable.call:()Ljava/lang/Object;
checkcast java.lang.Integer
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 3: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 LocalVariableTable:
Start End Slot Name Signature
3 4 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
}
SourceFile: "ClientMetrics.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public MetricName = org.apache.cassandra.metrics.CassandraMetricsRegistry$MetricName of org.apache.cassandra.metrics.CassandraMetricsRegistry