public class com.codahale.metrics.graphite.PickledGraphite 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.PickledGraphite
super_class: java.lang.Object
{
private static final char MARK;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 40
private static final char STOP;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 46
private static final char LONG;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 76
private static final char STRING;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 83
private static final char APPEND;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 97
private static final char LIST;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 108
private static final char TUPLE;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 116
private static final char QUOTE;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 39
private static final char LF;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int DEFAULT_BATCH_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private int batchSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.List<com.codahale.metrics.graphite.PickledGraphite$MetricTuple> metrics;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lcom/codahale/metrics/graphite/PickledGraphite$MetricTuple;>;
private final java.lang.String hostname;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int port;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.InetSocketAddress address;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javax.net.SocketFactory socketFactory;
descriptor: Ljavax/net/SocketFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.charset.Charset charset;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.net.Socket socket;
descriptor: Ljava/net/Socket;
flags: (0x0002) ACC_PRIVATE
private java.io.Writer writer;
descriptor: Ljava/io/Writer;
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: ldc Lcom/codahale/metrics/graphite/PickledGraphite;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic com.codahale.metrics.graphite.PickledGraphite.LOGGER:Lorg/slf4j/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
bipush 100
invokespecial com.codahale.metrics.graphite.PickledGraphite.<init>:(Ljava/net/InetSocketAddress;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
0 2 1 address Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
address
public void <init>(java.net.InetSocketAddress, int);
descriptor: (Ljava/net/InetSocketAddress;I)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
invokestatic javax.net.SocketFactory.getDefault:()Ljavax/net/SocketFactory;
iload 2
invokespecial com.codahale.metrics.graphite.PickledGraphite.<init>:(Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;I)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
0 2 1 address Ljava/net/InetSocketAddress;
0 2 2 batchSize I
MethodParameters:
Name Flags
address
batchSize
public void <init>(java.net.InetSocketAddress, javax.net.SocketFactory, int);
descriptor: (Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;I)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
aload 1
aload 2
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
iload 3
invokespecial com.codahale.metrics.graphite.PickledGraphite.<init>:(Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;Ljava/nio/charset/Charset;I)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 Lcom/codahale/metrics/graphite/PickledGraphite;
0 2 1 address Ljava/net/InetSocketAddress;
0 2 2 socketFactory Ljavax/net/SocketFactory;
0 2 3 batchSize I
MethodParameters:
Name Flags
address
socketFactory
batchSize
public void <init>(java.net.InetSocketAddress, javax.net.SocketFactory, java.nio.charset.Charset, int);
descriptor: (Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;Ljava/nio/charset/Charset;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
2: aload 0
aload 1
putfield com.codahale.metrics.graphite.PickledGraphite.address:Ljava/net/InetSocketAddress;
3: aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.hostname:Ljava/lang/String;
4: aload 0
iconst_m1
putfield com.codahale.metrics.graphite.PickledGraphite.port:I
5: aload 0
aload 2
putfield com.codahale.metrics.graphite.PickledGraphite.socketFactory:Ljavax/net/SocketFactory;
6: aload 0
aload 3
putfield com.codahale.metrics.graphite.PickledGraphite.charset:Ljava/nio/charset/Charset;
7: aload 0
iload 4
putfield com.codahale.metrics.graphite.PickledGraphite.batchSize:I
8: return
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/PickledGraphite;
0 9 1 address Ljava/net/InetSocketAddress;
0 9 2 socketFactory Ljavax/net/SocketFactory;
0 9 3 charset Ljava/nio/charset/Charset;
0 9 4 batchSize I
MethodParameters:
Name Flags
address
socketFactory
charset
batchSize
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)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
iload 2
bipush 100
invokespecial com.codahale.metrics.graphite.PickledGraphite.<init>:(Ljava/lang/String;II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
0 2 1 hostname Ljava/lang/String;
0 2 2 port I
MethodParameters:
Name Flags
hostname
port
public void <init>(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)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
aload 1
iload 2
invokestatic javax.net.SocketFactory.getDefault:()Ljavax/net/SocketFactory;
iload 3
invokespecial com.codahale.metrics.graphite.PickledGraphite.<init>:(Ljava/lang/String;ILjavax/net/SocketFactory;I)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 Lcom/codahale/metrics/graphite/PickledGraphite;
0 2 1 hostname Ljava/lang/String;
0 2 2 port I
0 2 3 batchSize I
MethodParameters:
Name Flags
hostname
port
batchSize
public void <init>(java.lang.String, int, javax.net.SocketFactory, int);
descriptor: (Ljava/lang/String;ILjavax/net/SocketFactory;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
iload 2
aload 3
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
iload 4
invokespecial com.codahale.metrics.graphite.PickledGraphite.<init>:(Ljava/lang/String;ILjavax/net/SocketFactory;Ljava/nio/charset/Charset;I)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
0 2 1 hostname Ljava/lang/String;
0 2 2 port I
0 2 3 socketFactory Ljavax/net/SocketFactory;
0 2 4 batchSize I
MethodParameters:
Name Flags
hostname
port
socketFactory
batchSize
public void <init>(java.lang.String, int, javax.net.SocketFactory, java.nio.charset.Charset, int);
descriptor: (Ljava/lang/String;ILjavax/net/SocketFactory;Ljava/nio/charset/Charset;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
2: aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.address:Ljava/net/InetSocketAddress;
3: aload 0
aload 1
putfield com.codahale.metrics.graphite.PickledGraphite.hostname:Ljava/lang/String;
4: aload 0
iload 2
putfield com.codahale.metrics.graphite.PickledGraphite.port:I
5: aload 0
aload 3
putfield com.codahale.metrics.graphite.PickledGraphite.socketFactory:Ljavax/net/SocketFactory;
6: aload 0
aload 4
putfield com.codahale.metrics.graphite.PickledGraphite.charset:Ljava/nio/charset/Charset;
7: aload 0
iload 5
putfield com.codahale.metrics.graphite.PickledGraphite.batchSize:I
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/PickledGraphite;
0 9 1 hostname Ljava/lang/String;
0 9 2 port I
0 9 3 socketFactory Ljavax/net/SocketFactory;
0 9 4 charset Ljava/nio/charset/Charset;
0 9 5 batchSize I
MethodParameters:
Name Flags
hostname
port
socketFactory
charset
batchSize
public void connect();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.codahale.metrics.graphite.PickledGraphite.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
getfield com.codahale.metrics.graphite.PickledGraphite.address:Ljava/net/InetSocketAddress;
astore 1
start local 1 3: aload 1
ifnonnull 5
4: new java.net.InetSocketAddress
dup
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.hostname:Ljava/lang/String;
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.port:I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
astore 1
5: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
ifnonnull 7
6: new java.net.UnknownHostException
dup
aload 1
invokevirtual java.net.InetSocketAddress.getHostName:()Ljava/lang/String;
invokespecial java.net.UnknownHostException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.socketFactory:Ljavax/net/SocketFactory;
aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual javax.net.SocketFactory.createSocket:(Ljava/net/InetAddress;I)Ljava/net/Socket;
putfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
8: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.charset:Ljava/nio/charset/Charset;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
putfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
3 10 1 address Ljava/net/InetSocketAddress;
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.PickledGraphite.socket:Ljava/net/Socket;
ifnull 1
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.isConnected:()Z
ifeq 1
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.isClosed:()Z
ifne 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/PickledGraphite;
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=8, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
new com.codahale.metrics.graphite.PickledGraphite$MetricTuple
dup
aload 0
aload 1
invokevirtual com.codahale.metrics.graphite.PickledGraphite.sanitize:(Ljava/lang/String;)Ljava/lang/String;
lload 3
aload 0
aload 2
invokevirtual com.codahale.metrics.graphite.PickledGraphite.sanitize:(Ljava/lang/String;)Ljava/lang/String;
invokespecial com.codahale.metrics.graphite.PickledGraphite$MetricTuple.<init>:(Ljava/lang/String;JLjava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.batchSize:I
if_icmplt 3
2: aload 0
invokevirtual com.codahale.metrics.graphite.PickledGraphite.writeMetrics:()V
3: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
0 4 1 name Ljava/lang/String;
0 4 2 value Ljava/lang/String;
0 4 3 timestamp J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
value
timestamp
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.codahale.metrics.graphite.PickledGraphite.writeMetrics:()V
1: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
ifnull 3
2: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
invokevirtual java.io.Writer.flush:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.codahale.metrics.graphite.PickledGraphite.flush:()V
1: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
ifnull 13
2: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
invokevirtual java.io.Writer.close:()V
3: goto 13
StackMap locals:
StackMap stack: java.io.IOException
4: pop
5: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
ifnull 7
6: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
7: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
8: aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
goto 15
9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
10: aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
11: aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
12: aload 1
athrow
13: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
14: aload 0
aconst_null
putfield com.codahale.metrics.graphite.PickledGraphite.writer:Ljava/io/Writer;
15: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
Exception table:
from to target type
0 3 4 Class java.io.IOException
0 7 9 any
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.PickledGraphite.failures:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
private void writeMetrics();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 17
1: aload 0
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
invokevirtual com.codahale.metrics.graphite.PickledGraphite.pickleMetrics:(Ljava/util/List;)[B
astore 1
start local 1 2: iconst_4
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
aload 1
arraylength
invokevirtual java.nio.ByteBuffer.putInt:(I)Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
astore 2
start local 2 3: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
astore 3
start local 3 4: aload 3
aload 2
invokevirtual java.io.OutputStream.write:([B)V
5: aload 3
aload 1
invokevirtual java.io.OutputStream.write:([B)V
6: aload 3
invokevirtual java.io.OutputStream.flush:()V
7: getstatic com.codahale.metrics.graphite.PickledGraphite.LOGGER:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 16
8: getstatic com.codahale.metrics.graphite.PickledGraphite.LOGGER:Lorg/slf4j/Logger;
ldc "Wrote {} metrics"
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
invokeinterface java.util.List.size:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
end local 3 end local 2 end local 1 9: goto 16
StackMap locals:
StackMap stack: java.io.IOException
10: astore 1
start local 1 11: aload 0
dup
getfield com.codahale.metrics.graphite.PickledGraphite.failures:I
iconst_1
iadd
putfield com.codahale.metrics.graphite.PickledGraphite.failures:I
12: aload 1
athrow
end local 1 13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
14: aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
invokeinterface java.util.List.clear:()V
15: aload 4
athrow
16: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.metrics:Ljava/util/List;
invokeinterface java.util.List.clear:()V
17: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
2 9 1 payload [B
3 9 2 header [B
4 9 3 outputStream Ljava/io/OutputStream;
11 13 1 e Ljava/io/IOException;
Exception table:
from to target type
1 9 10 Class java.io.IOException
1 13 13 any
Exceptions:
throws java.io.IOException
byte[] pickleMetrics(java.util.List<com.codahale.metrics.graphite.PickledGraphite$MetricTuple>);
descriptor: (Ljava/util/List;)[B
flags: (0x0000)
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new java.io.ByteArrayOutputStream
dup
aload 1
invokeinterface java.util.List.size:()I
bipush 75
imul
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 2
start local 2 1: new java.io.OutputStreamWriter
dup
aload 2
aload 0
getfield com.codahale.metrics.graphite.PickledGraphite.charset:Ljava/nio/charset/Charset;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
astore 3
start local 3 2: aload 3
bipush 40
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
3: aload 3
bipush 108
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
4: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 25
StackMap locals: com.codahale.metrics.graphite.PickledGraphite java.util.List java.io.ByteArrayOutputStream java.io.Writer top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.codahale.metrics.graphite.PickledGraphite$MetricTuple
astore 4
start local 4 6: aload 3
bipush 40
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
7: aload 3
bipush 83
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
8: aload 3
bipush 39
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
9: aload 3
aload 4
getfield com.codahale.metrics.graphite.PickledGraphite$MetricTuple.name:Ljava/lang/String;
invokevirtual java.io.Writer.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
pop
10: aload 3
bipush 39
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
11: aload 3
bipush 10
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
12: aload 3
bipush 40
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
13: aload 3
bipush 76
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
14: aload 3
aload 4
getfield com.codahale.metrics.graphite.PickledGraphite$MetricTuple.timestamp:J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual java.io.Writer.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
pop
15: aload 3
bipush 76
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
16: aload 3
bipush 10
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
17: aload 3
bipush 83
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
18: aload 3
bipush 39
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
19: aload 3
aload 4
getfield com.codahale.metrics.graphite.PickledGraphite$MetricTuple.value:Ljava/lang/String;
invokevirtual java.io.Writer.append:(Ljava/lang/CharSequence;)Ljava/io/Writer;
pop
20: aload 3
bipush 39
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
21: aload 3
bipush 10
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
22: aload 3
bipush 116
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
23: aload 3
bipush 116
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
24: aload 3
bipush 97
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
end local 4 25: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
26: aload 3
bipush 46
invokevirtual java.io.Writer.append:(C)Ljava/io/Writer;
pop
27: aload 3
invokevirtual java.io.Writer.flush:()V
28: aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/codahale/metrics/graphite/PickledGraphite;
0 29 1 metrics Ljava/util/List<Lcom/codahale/metrics/graphite/PickledGraphite$MetricTuple;>;
1 29 2 out Ljava/io/ByteArrayOutputStream;
2 29 3 pickled Ljava/io/Writer;
6 25 4 tuple Lcom/codahale/metrics/graphite/PickledGraphite$MetricTuple;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Lcom/codahale/metrics/graphite/PickledGraphite$MetricTuple;>;)[B
MethodParameters:
Name Flags
metrics
protected java.lang.String sanitize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
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/PickledGraphite;
0 1 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
}
SourceFile: "PickledGraphite.java"
NestMembers:
com.codahale.metrics.graphite.PickledGraphite$MetricTuple
InnerClasses:
MetricTuple = com.codahale.metrics.graphite.PickledGraphite$MetricTuple of com.codahale.metrics.graphite.PickledGraphite