public class ch.qos.logback.core.recovery.ResilentSocketOutputStream extends ch.qos.logback.core.recovery.ResilientOutputStreamBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: ch.qos.logback.core.recovery.ResilentSocketOutputStream
super_class: ch.qos.logback.core.recovery.ResilientOutputStreamBase
{
private final java.lang.String host;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int port;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int connectionTimeoutMs;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int sendBufferSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javax.net.SocketFactory socketFactory;
descriptor: Ljavax/net/SocketFactory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String, int, int, int, javax.net.SocketFactory);
descriptor: (Ljava/lang/String;IIILjavax/net/SocketFactory;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, 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 ch.qos.logback.core.recovery.ResilientOutputStreamBase.<init>:()V
1: aload 0
aload 1
putfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.host:Ljava/lang/String;
2: aload 0
iload 2
putfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.port:I
3: aload 0
iload 3
putfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.connectionTimeoutMs:I
4: aload 0
iload 4
putfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.sendBufferSize:I
5: aload 0
aload 5
putfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.socketFactory:Ljavax/net/SocketFactory;
6: aload 0
aload 0
invokevirtual ch.qos.logback.core.recovery.ResilentSocketOutputStream.openNewOutputStream:()Ljava/io/OutputStream;
putfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.os:Ljava/io/OutputStream;
7: goto 10
StackMap locals: ch.qos.logback.core.recovery.ResilentSocketOutputStream java.lang.String int int int javax.net.SocketFactory
StackMap stack: java.io.IOException
8: astore 6
start local 6 9: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unable to create a TCP connection to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 6
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 10: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.presumedClean:Z
11: 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 12 0 this Lch/qos/logback/core/recovery/ResilentSocketOutputStream;
0 12 1 host Ljava/lang/String;
0 12 2 port I
0 12 3 connectionTimeoutMs I
0 12 4 sendBufferSize I
0 12 5 socketFactory Ljavax/net/SocketFactory;
9 10 6 e Ljava/io/IOException;
Exception table:
from to target type
6 7 8 Class java.io.IOException
MethodParameters:
Name Flags
host
port
connectionTimeoutMs
sendBufferSize
socketFactory
java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "tcp ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.host:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.port:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/recovery/ResilentSocketOutputStream;
java.io.OutputStream openNewOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.socketFactory:Ljavax/net/SocketFactory;
invokevirtual javax.net.SocketFactory.createSocket:()Ljava/net/Socket;
astore 1
start local 1 1: aload 1
iconst_1
invokevirtual java.net.Socket.setKeepAlive:(Z)V
2: aload 1
new java.net.InetSocketAddress
dup
aload 0
getfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.host:Ljava/lang/String;
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
aload 0
getfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.port:I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
aload 0
getfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.connectionTimeoutMs:I
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
3: new java.io.BufferedOutputStream
dup
aload 1
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
aload 0
getfield ch.qos.logback.core.recovery.ResilentSocketOutputStream.sendBufferSize:I
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/core/recovery/ResilentSocketOutputStream;
1 4 1 socket Ljava/net/Socket;
Exceptions:
throws java.io.IOException
}
SourceFile: "ResilentSocketOutputStream.java"