public class com.codahale.metrics.graphite.GraphiteRabbitMQ implements com.codahale.metrics.graphite.GraphiteSender
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.graphite.GraphiteRabbitMQ
super_class: java.lang.Object
{
private static final java.lang.Integer DEFAULT_RABBIT_CONNECTION_TIMEOUT_MS;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Integer DEFAULT_RABBIT_SOCKET_TIMEOUT_MS;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Integer DEFAULT_RABBIT_REQUESTED_HEARTBEAT_SEC;
descriptor: Ljava/lang/Integer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private com.rabbitmq.client.ConnectionFactory connectionFactory;
descriptor: Lcom/rabbitmq/client/ConnectionFactory;
flags: (0x0002) ACC_PRIVATE
private com.rabbitmq.client.Connection connection;
descriptor: Lcom/rabbitmq/client/Connection;
flags: (0x0002) ACC_PRIVATE
private com.rabbitmq.client.Channel channel;
descriptor: Lcom/rabbitmq/client/Channel;
flags: (0x0002) ACC_PRIVATE
private java.lang.String exchange;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int failures;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: sipush 500
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic com.codahale.metrics.graphite.GraphiteRabbitMQ.DEFAULT_RABBIT_CONNECTION_TIMEOUT_MS:Ljava/lang/Integer;
1: sipush 5000
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic com.codahale.metrics.graphite.GraphiteRabbitMQ.DEFAULT_RABBIT_SOCKET_TIMEOUT_MS:Ljava/lang/Integer;
2: bipush 10
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
putstatic com.codahale.metrics.graphite.GraphiteRabbitMQ.DEFAULT_RABBIT_REQUESTED_HEARTBEAT_SEC:Ljava/lang/Integer;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(com.rabbitmq.client.ConnectionFactory, java.lang.String);
descriptor: (Lcom/rabbitmq/client/ConnectionFactory;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
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 com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
2: aload 0
aload 2
putfield com.codahale.metrics.graphite.GraphiteRabbitMQ.exchange:Ljava/lang/String;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
0 4 1 connectionFactory Lcom/rabbitmq/client/ConnectionFactory;
0 4 2 exchange Ljava/lang/String;
MethodParameters:
Name Flags
connectionFactory final
exchange final
public void <init>(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
1: aload 2
2: aload 3
3: aload 4
4: aload 5
5: getstatic com.codahale.metrics.graphite.GraphiteRabbitMQ.DEFAULT_RABBIT_CONNECTION_TIMEOUT_MS:Ljava/lang/Integer;
6: getstatic com.codahale.metrics.graphite.GraphiteRabbitMQ.DEFAULT_RABBIT_SOCKET_TIMEOUT_MS:Ljava/lang/Integer;
7: getstatic com.codahale.metrics.graphite.GraphiteRabbitMQ.DEFAULT_RABBIT_REQUESTED_HEARTBEAT_SEC:Ljava/lang/Integer;
invokespecial com.codahale.metrics.graphite.GraphiteRabbitMQ.<init>:(Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
8: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
0 9 1 rabbitHost Ljava/lang/String;
0 9 2 rabbitPort Ljava/lang/Integer;
0 9 3 rabbitUsername Ljava/lang/String;
0 9 4 rabbitPassword Ljava/lang/String;
0 9 5 exchange Ljava/lang/String;
MethodParameters:
Name Flags
rabbitHost final
rabbitPort final
rabbitUsername final
rabbitPassword final
exchange final
public void <init>(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer, java.lang.Integer);
descriptor: (Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 5
putfield com.codahale.metrics.graphite.GraphiteRabbitMQ.exchange:Ljava/lang/String;
2: aload 0
new com.rabbitmq.client.ConnectionFactory
dup
invokespecial com.rabbitmq.client.ConnectionFactory.<init>:()V
putfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
3: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
new com.codahale.metrics.graphite.GraphiteRabbitMQ$1
dup
aload 0
aload 7
invokespecial com.codahale.metrics.graphite.GraphiteRabbitMQ$1.<init>:(Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;Ljava/lang/Integer;)V
invokevirtual com.rabbitmq.client.ConnectionFactory.setSocketConfigurator:(Lcom/rabbitmq/client/SocketConfigurator;)V
4: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
aload 6
invokevirtual java.lang.Integer.intValue:()I
invokevirtual com.rabbitmq.client.ConnectionFactory.setConnectionTimeout:(I)V
5: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
aload 8
invokevirtual java.lang.Integer.intValue:()I
invokevirtual com.rabbitmq.client.ConnectionFactory.setRequestedHeartbeat:(I)V
6: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
aload 1
invokevirtual com.rabbitmq.client.ConnectionFactory.setHost:(Ljava/lang/String;)V
7: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
aload 2
invokevirtual java.lang.Integer.intValue:()I
invokevirtual com.rabbitmq.client.ConnectionFactory.setPort:(I)V
8: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
aload 3
invokevirtual com.rabbitmq.client.ConnectionFactory.setUsername:(Ljava/lang/String;)V
9: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
aload 4
invokevirtual com.rabbitmq.client.ConnectionFactory.setPassword:(Ljava/lang/String;)V
10: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
0 11 1 rabbitHost Ljava/lang/String;
0 11 2 rabbitPort Ljava/lang/Integer;
0 11 3 rabbitUsername Ljava/lang/String;
0 11 4 rabbitPassword Ljava/lang/String;
0 11 5 exchange Ljava/lang/String;
0 11 6 rabbitConnectionTimeoutMS Ljava/lang/Integer;
0 11 7 rabbitSocketTimeoutMS Ljava/lang/Integer;
0 11 8 rabbitRequestedHeartbeatInSeconds Ljava/lang/Integer;
MethodParameters:
Name Flags
rabbitHost final
rabbitPort final
rabbitUsername final
rabbitPassword final
exchange final
rabbitConnectionTimeoutMS final
rabbitSocketTimeoutMS final
rabbitRequestedHeartbeatInSeconds final
public void connect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.codahale.metrics.graphite.GraphiteRabbitMQ.isConnected:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Already connected"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connectionFactory:Lcom/rabbitmq/client/ConnectionFactory;
invokevirtual com.rabbitmq.client.ConnectionFactory.newConnection:()Lcom/rabbitmq/client/Connection;
putfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connection:Lcom/rabbitmq/client/Connection;
3: goto 6
StackMap locals:
StackMap stack: java.util.concurrent.TimeoutException
4: astore 1
start local 1 5: new java.lang.IllegalStateException
dup
aload 1
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connection:Lcom/rabbitmq/client/Connection;
invokeinterface com.rabbitmq.client.Connection.createChannel:()Lcom/rabbitmq/client/Channel;
putfield com.codahale.metrics.graphite.GraphiteRabbitMQ.channel:Lcom/rabbitmq/client/Channel;
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
5 6 1 e Ljava/util/concurrent/TimeoutException;
Exception table:
from to target type
2 3 4 Class java.util.concurrent.TimeoutException
Exceptions:
throws java.lang.IllegalStateException, java.io.IOException
public boolean isConnected();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connection:Lcom/rabbitmq/client/Connection;
ifnull 1
aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connection:Lcom/rabbitmq/client/Connection;
invokeinterface com.rabbitmq.client.Connection.isOpen:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
public void send(java.lang.String, java.lang.String, long);
descriptor: (Ljava/lang/String;Ljava/lang/String;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual com.codahale.metrics.graphite.GraphiteRabbitMQ.sanitize:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 1: aload 0
aload 2
invokevirtual com.codahale.metrics.graphite.GraphiteRabbitMQ.sanitize:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 2: new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
lload 3
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 3: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.channel:Lcom/rabbitmq/client/Channel;
aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.exchange:Ljava/lang/String;
aload 5
aconst_null
aload 7
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokeinterface com.rabbitmq.client.Channel.basicPublish:(Ljava/lang/String;Ljava/lang/String;Lcom/rabbitmq/client/AMQP$BasicProperties;[B)V
end local 7 end local 6 end local 5 4: goto 8
StackMap locals:
StackMap stack: java.io.IOException
5: astore 5
start local 5 6: aload 0
dup
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.failures:I
iconst_1
iadd
putfield com.codahale.metrics.graphite.GraphiteRabbitMQ.failures:I
7: aload 5
athrow
end local 5 8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
0 9 1 name Ljava/lang/String;
0 9 2 value Ljava/lang/String;
0 9 3 timestamp J
1 4 5 sanitizedName Ljava/lang/String;
2 4 6 sanitizedValue Ljava/lang/String;
3 4 7 message Ljava/lang/String;
6 8 5 e Ljava/io/IOException;
Exception table:
from to target type
0 4 5 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
value
timestamp
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connection:Lcom/rabbitmq/client/Connection;
ifnull 2
1: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.connection:Lcom/rabbitmq/client/Connection;
invokeinterface com.rabbitmq.client.Connection.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
Exceptions:
throws java.io.IOException
public int getFailures();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.graphite.GraphiteRabbitMQ.failures:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
public java.lang.String sanitize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic com.codahale.metrics.graphite.GraphiteSanitize.sanitize:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/graphite/GraphiteRabbitMQ;
0 1 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
}
SourceFile: "GraphiteRabbitMQ.java"
NestMembers:
com.codahale.metrics.graphite.GraphiteRabbitMQ$1
InnerClasses:
com.codahale.metrics.graphite.GraphiteRabbitMQ$1
public BasicProperties = com.rabbitmq.client.AMQP$BasicProperties of com.rabbitmq.client.AMQP