public abstract class ch.qos.logback.core.recovery.ResilientOutputStreamBase extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: ch.qos.logback.core.recovery.ResilientOutputStreamBase
super_class: java.io.OutputStream
{
static final int STATUS_COUNT_LIMIT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8
private int noContextWarning;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int statusCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private ch.qos.logback.core.Context context;
descriptor: Lch/qos/logback/core/Context;
flags: (0x0002) ACC_PRIVATE
private ch.qos.logback.core.recovery.RecoveryCoordinator recoveryCoordinator;
descriptor: Lch/qos/logback/core/recovery/RecoveryCoordinator;
flags: (0x0002) ACC_PRIVATE
protected java.io.OutputStream os;
descriptor: Ljava/io/OutputStream;
flags: (0x0004) ACC_PROTECTED
protected boolean presumedClean;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
iconst_0
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.noContextWarning:I
2: aload 0
iconst_0
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.statusCount:I
3: aload 0
iconst_1
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.presumedClean:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
private boolean isPresumedInError();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.recoveryCoordinator:Lch/qos/logback/core/recovery/RecoveryCoordinator;
ifnull 1
aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.presumedClean: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 Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.isPresumedInError:()Z
ifeq 4
1: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.recoveryCoordinator:Lch/qos/logback/core/recovery/RecoveryCoordinator;
invokevirtual ch.qos.logback.core.recovery.RecoveryCoordinator.isTooSoon:()Z
ifne 3
2: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.attemptRecovery:()V
3: StackMap locals:
StackMap stack:
return
4: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.os:Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
5: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.postSuccessfulWrite:()V
6: goto 9
StackMap locals:
StackMap stack: java.io.IOException
7: astore 4
start local 4 8: aload 0
aload 4
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.postIOFailure:(Ljava/io/IOException;)V
end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
0 10 1 b [B
0 10 2 off I
0 10 3 len I
8 9 4 e Ljava/io/IOException;
Exception table:
from to target type
4 6 7 Class java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.isPresumedInError:()Z
ifeq 4
1: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.recoveryCoordinator:Lch/qos/logback/core/recovery/RecoveryCoordinator;
invokevirtual ch.qos.logback.core.recovery.RecoveryCoordinator.isTooSoon:()Z
ifne 3
2: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.attemptRecovery:()V
3: StackMap locals:
StackMap stack:
return
4: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.os:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
5: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.postSuccessfulWrite:()V
6: goto 9
StackMap locals:
StackMap stack: java.io.IOException
7: astore 2
start local 2 8: aload 0
aload 2
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.postIOFailure:(Ljava/io/IOException;)V
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
0 10 1 b I
8 9 2 e Ljava/io/IOException;
Exception table:
from to target type
4 6 7 Class java.io.IOException
MethodParameters:
Name Flags
b
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.os:Ljava/io/OutputStream;
ifnull 6
1: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.os:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
2: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.postSuccessfulWrite:()V
3: goto 6
StackMap locals:
StackMap stack: java.io.IOException
4: astore 1
start local 1 5: aload 0
aload 1
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.postIOFailure:(Ljava/io/IOException;)V
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
5 6 1 e Ljava/io/IOException;
Exception table:
from to target type
1 3 4 Class java.io.IOException
abstract java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0400) ACC_ABSTRACT
abstract java.io.OutputStream openNewOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
private void postSuccessfulWrite();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.recoveryCoordinator:Lch/qos/logback/core/recovery/RecoveryCoordinator;
ifnull 4
1: aload 0
aconst_null
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.recoveryCoordinator:Lch/qos/logback/core/recovery/RecoveryCoordinator;
2: aload 0
iconst_0
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.statusCount:I
3: aload 0
new ch.qos.logback.core.status.InfoStatus
dup
new java.lang.StringBuilder
dup
ldc "Recovered from IO failure on "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.getDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
invokespecial ch.qos.logback.core.status.InfoStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.addStatus:(Lch/qos/logback/core/status/Status;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
public void postIOFailure(java.io.IOException);
descriptor: (Ljava/io/IOException;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new ch.qos.logback.core.status.ErrorStatus
dup
new java.lang.StringBuilder
dup
ldc "IO failure while writing to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.getDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
aload 1
invokespecial ch.qos.logback.core.status.ErrorStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Throwable;)V
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.addStatusIfCountNotOverLimit:(Lch/qos/logback/core/status/Status;)V
1: aload 0
iconst_0
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.presumedClean:Z
2: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.recoveryCoordinator:Lch/qos/logback/core/recovery/RecoveryCoordinator;
ifnonnull 4
3: aload 0
new ch.qos.logback.core.recovery.RecoveryCoordinator
dup
invokespecial ch.qos.logback.core.recovery.RecoveryCoordinator.<init>:()V
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.recoveryCoordinator:Lch/qos/logback/core/recovery/RecoveryCoordinator;
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
0 5 1 e Ljava/io/IOException;
MethodParameters:
Name Flags
e
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.os:Ljava/io/OutputStream;
ifnull 2
1: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.os:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
Exceptions:
throws java.io.IOException
void attemptRecovery();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
aload 0
new ch.qos.logback.core.status.InfoStatus
dup
new java.lang.StringBuilder
dup
ldc "Attempting to recover from IO failure on "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.getDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
invokespecial ch.qos.logback.core.status.InfoStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.addStatusIfCountNotOverLimit:(Lch/qos/logback/core/status/Status;)V
4: aload 0
aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.openNewOutputStream:()Ljava/io/OutputStream;
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.os:Ljava/io/OutputStream;
5: aload 0
iconst_1
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.presumedClean:Z
6: goto 9
StackMap locals:
StackMap stack: java.io.IOException
7: astore 1
start local 1 8: aload 0
new ch.qos.logback.core.status.ErrorStatus
dup
new java.lang.StringBuilder
dup
ldc "Failed to open "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.getDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
aload 1
invokespecial ch.qos.logback.core.status.ErrorStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Throwable;)V
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.addStatusIfCountNotOverLimit:(Lch/qos/logback/core/status/Status;)V
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
8 9 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
4 6 7 Class java.io.IOException
void addStatusIfCountNotOverLimit(ch.qos.logback.core.status.Status);
descriptor: (Lch/qos/logback/core/status/Status;)V
flags: (0x0000)
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.statusCount:I
iconst_1
iadd
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.statusCount:I
1: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.statusCount:I
bipush 8
if_icmpge 3
2: aload 0
aload 1
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.addStatus:(Lch/qos/logback/core/status/Status;)V
3: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.statusCount:I
bipush 8
if_icmpne 6
4: aload 0
aload 1
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.addStatus:(Lch/qos/logback/core/status/Status;)V
5: aload 0
new ch.qos.logback.core.status.InfoStatus
dup
new java.lang.StringBuilder
dup
ldc "Will supress future messages regarding "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.getDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
invokespecial ch.qos.logback.core.status.InfoStatus.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
invokevirtual ch.qos.logback.core.recovery.ResilientOutputStreamBase.addStatus:(Lch/qos/logback/core/status/Status;)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
0 7 1 s Lch/qos/logback/core/status/Status;
MethodParameters:
Name Flags
s
public void addStatus(ch.qos.logback.core.status.Status);
descriptor: (Lch/qos/logback/core/status/Status;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.context:Lch/qos/logback/core/Context;
ifnonnull 4
1: aload 0
dup
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.noContextWarning:I
dup_x1
iconst_1
iadd
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.noContextWarning:I
ifne 3
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "LOGBACK: No context given for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
return
4: StackMap locals:
StackMap stack:
aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.context:Lch/qos/logback/core/Context;
invokeinterface ch.qos.logback.core.Context.getStatusManager:()Lch/qos/logback/core/status/StatusManager;
astore 2
start local 2 5: aload 2
ifnull 7
6: aload 2
aload 1
invokeinterface ch.qos.logback.core.status.StatusManager.add:(Lch/qos/logback/core/status/Status;)V
7: StackMap locals: ch.qos.logback.core.status.StatusManager
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
0 8 1 status Lch/qos/logback/core/status/Status;
5 8 2 sm Lch/qos/logback/core/status/StatusManager;
MethodParameters:
Name Flags
status
public ch.qos.logback.core.Context getContext();
descriptor: ()Lch/qos/logback/core/Context;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.context:Lch/qos/logback/core/Context;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
public void setContext(ch.qos.logback.core.Context);
descriptor: (Lch/qos/logback/core/Context;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield ch.qos.logback.core.recovery.ResilientOutputStreamBase.context:Lch/qos/logback/core/Context;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lch/qos/logback/core/recovery/ResilientOutputStreamBase;
0 2 1 context Lch/qos/logback/core/Context;
MethodParameters:
Name Flags
context
}
SourceFile: "ResilientOutputStreamBase.java"