public class com.codahale.metrics.graphite.Graphite 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.Graphite
super_class: java.lang.Object
{
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
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/codahale/metrics/graphite/Graphite;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic com.codahale.metrics.graphite.Graphite.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
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
invokestatic javax.net.SocketFactory.getDefault:()Ljavax/net/SocketFactory;
invokespecial com.codahale.metrics.graphite.Graphite.<init>:(Ljava/lang/String;ILjavax/net/SocketFactory;)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/Graphite;
0 2 1 hostname Ljava/lang/String;
0 2 2 port I
MethodParameters:
Name Flags
hostname
port
public void <init>(java.lang.String, int, javax.net.SocketFactory);
descriptor: (Ljava/lang/String;ILjavax/net/SocketFactory;)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
aload 3
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial com.codahale.metrics.graphite.Graphite.<init>:(Ljava/lang/String;ILjavax/net/SocketFactory;Ljava/nio/charset/Charset;)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/Graphite;
0 2 1 hostname Ljava/lang/String;
0 2 2 port I
0 2 3 socketFactory Ljavax/net/SocketFactory;
MethodParameters:
Name Flags
hostname
port
socketFactory
public void <init>(java.lang.String, int, javax.net.SocketFactory, java.nio.charset.Charset);
descriptor: (Ljava/lang/String;ILjavax/net/SocketFactory;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
aload 1
putfield com.codahale.metrics.graphite.Graphite.hostname:Ljava/lang/String;
2: aload 0
iload 2
putfield com.codahale.metrics.graphite.Graphite.port:I
3: aload 0
aconst_null
putfield com.codahale.metrics.graphite.Graphite.address:Ljava/net/InetSocketAddress;
4: aload 0
aload 3
putfield com.codahale.metrics.graphite.Graphite.socketFactory:Ljavax/net/SocketFactory;
5: aload 0
aload 4
putfield com.codahale.metrics.graphite.Graphite.charset:Ljava/nio/charset/Charset;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/codahale/metrics/graphite/Graphite;
0 7 1 hostname Ljava/lang/String;
0 7 2 port I
0 7 3 socketFactory Ljavax/net/SocketFactory;
0 7 4 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
hostname
port
socketFactory
charset
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
invokestatic javax.net.SocketFactory.getDefault:()Ljavax/net/SocketFactory;
invokespecial com.codahale.metrics.graphite.Graphite.<init>:(Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/graphite/Graphite;
0 2 1 address Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
address
public void <init>(java.net.InetSocketAddress, javax.net.SocketFactory);
descriptor: (Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;)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
aload 2
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokespecial com.codahale.metrics.graphite.Graphite.<init>:(Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;Ljava/nio/charset/Charset;)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/Graphite;
0 2 1 address Ljava/net/InetSocketAddress;
0 2 2 socketFactory Ljavax/net/SocketFactory;
MethodParameters:
Name Flags
address
socketFactory
public void <init>(java.net.InetSocketAddress, javax.net.SocketFactory, java.nio.charset.Charset);
descriptor: (Ljava/net/InetSocketAddress;Ljavax/net/SocketFactory;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
aconst_null
putfield com.codahale.metrics.graphite.Graphite.hostname:Ljava/lang/String;
2: aload 0
iconst_m1
putfield com.codahale.metrics.graphite.Graphite.port:I
3: aload 0
aload 1
putfield com.codahale.metrics.graphite.Graphite.address:Ljava/net/InetSocketAddress;
4: aload 0
aload 2
putfield com.codahale.metrics.graphite.Graphite.socketFactory:Ljavax/net/SocketFactory;
5: aload 0
aload 3
putfield com.codahale.metrics.graphite.Graphite.charset:Ljava/nio/charset/Charset;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/codahale/metrics/graphite/Graphite;
0 7 1 address Ljava/net/InetSocketAddress;
0 7 2 socketFactory Ljavax/net/SocketFactory;
0 7 3 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
address
socketFactory
charset
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.Graphite.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.Graphite.address:Ljava/net/InetSocketAddress;
astore 1
start local 1 3: aload 1
ifnull 4
aload 0
getfield com.codahale.metrics.graphite.Graphite.hostname:Ljava/lang/String;
ifnull 5
4: StackMap locals: java.net.InetSocketAddress
StackMap stack:
new java.net.InetSocketAddress
dup
aload 0
getfield com.codahale.metrics.graphite.Graphite.hostname:Ljava/lang/String;
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
aload 0
getfield com.codahale.metrics.graphite.Graphite.port:I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
astore 1
5: StackMap locals:
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.Graphite.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.Graphite.socket:Ljava/net/Socket;
8: aload 0
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
aload 0
getfield com.codahale.metrics.graphite.Graphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
aload 0
getfield com.codahale.metrics.graphite.Graphite.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.Graphite.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/Graphite;
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.Graphite.socket:Ljava/net/Socket;
ifnull 1
aload 0
getfield com.codahale.metrics.graphite.Graphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.isConnected:()Z
ifeq 1
aload 0
getfield com.codahale.metrics.graphite.Graphite.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/Graphite;
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=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
aload 0
aload 1
invokevirtual com.codahale.metrics.graphite.Graphite.sanitize:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
1: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
bipush 32
invokevirtual java.io.Writer.write:(I)V
2: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
aload 0
aload 2
invokevirtual com.codahale.metrics.graphite.Graphite.sanitize:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
3: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
bipush 32
invokevirtual java.io.Writer.write:(I)V
4: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
lload 3
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
5: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
bipush 10
invokevirtual java.io.Writer.write:(I)V
6: aload 0
iconst_0
putfield com.codahale.metrics.graphite.Graphite.failures:I
7: goto 11
StackMap locals:
StackMap stack: java.io.IOException
8: astore 5
start local 5 9: aload 0
dup
getfield com.codahale.metrics.graphite.Graphite.failures:I
iconst_1
iadd
putfield com.codahale.metrics.graphite.Graphite.failures:I
10: aload 5
athrow
end local 5 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 Lcom/codahale/metrics/graphite/Graphite;
0 12 1 name Ljava/lang/String;
0 12 2 value Ljava/lang/String;
0 12 3 timestamp J
9 11 5 e Ljava/io/IOException;
Exception table:
from to target type
0 7 8 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
value
timestamp
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.Graphite.failures:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/graphite/Graphite;
public void flush();
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.Graphite.writer:Ljava/io/Writer;
ifnull 2
1: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
invokevirtual java.io.Writer.flush:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/codahale/metrics/graphite/Graphite;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
ifnull 9
1: aload 0
getfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
invokevirtual java.io.Writer.close:()V
2: goto 9
StackMap locals:
StackMap stack: java.io.IOException
3: astore 1
start local 1 4: getstatic com.codahale.metrics.graphite.Graphite.LOGGER:Lorg/slf4j/Logger;
ldc "Error closing writer"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 5: aload 0
aconst_null
putfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
goto 10
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
7: aload 0
aconst_null
putfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
8: aload 2
athrow
9: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.codahale.metrics.graphite.Graphite.writer:Ljava/io/Writer;
10: StackMap locals:
StackMap stack:
aload 0
getfield com.codahale.metrics.graphite.Graphite.socket:Ljava/net/Socket;
ifnull 19
11: aload 0
getfield com.codahale.metrics.graphite.Graphite.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
12: goto 19
StackMap locals:
StackMap stack: java.io.IOException
13: astore 1
start local 1 14: getstatic com.codahale.metrics.graphite.Graphite.LOGGER:Lorg/slf4j/Logger;
ldc "Error closing socket"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 15: aload 0
aconst_null
putfield com.codahale.metrics.graphite.Graphite.socket:Ljava/net/Socket;
goto 20
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
17: aload 0
aconst_null
putfield com.codahale.metrics.graphite.Graphite.socket:Ljava/net/Socket;
18: aload 2
athrow
19: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield com.codahale.metrics.graphite.Graphite.socket:Ljava/net/Socket;
20: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lcom/codahale/metrics/graphite/Graphite;
4 5 1 ex Ljava/io/IOException;
14 15 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
0 5 6 any
10 12 13 Class java.io.IOException
10 15 16 any
Exceptions:
throws java.io.IOException
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/Graphite;
0 1 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
}
SourceFile: "Graphite.java"