Package org.apache.spark.util.logging
Interface RollingPolicy
public interface RollingPolicy
Defines the policy based on which
RollingFileAppender
will
generate rolling files.-
Method Summary
Modifier and TypeMethodDescriptionvoid
bytesWritten
(long bytes) Notify that bytes have been writtenGet the desired name of the rollover filevoid
Notify that rollover has occurredboolean
shouldRollover
(long bytesToBeWritten) Whether rollover should be initiated at this moment
-
Method Details
-
bytesWritten
void bytesWritten(long bytes) Notify that bytes have been written -
generateRolledOverFileSuffix
String generateRolledOverFileSuffix()Get the desired name of the rollover file -
rolledOver
void rolledOver()Notify that rollover has occurred -
shouldRollover
boolean shouldRollover(long bytesToBeWritten) Whether rollover should be initiated at this moment
-