Top Description Inners Fields Constructors Methods
ch.qos.logback.classic.turbo

public Class ReconfigureOnChangeFilter

extends TurboFilter
Class Inheritance
Static Imports
ch.qos.logback.core.CoreConstants.MILLIS_IN_ONE_SECOND

Reconfigure a LoggerContext when the configuration file changes.
Author
Ceki Gulcu

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class

Field Summary

Modifier and TypeField and Description
pack-priv ConfigurationWatchList
public static final long
DEFAULT_REFRESH_PERIOD

Scan for changes in configuration file once every minute.

private long
private volatile long
pack-priv URL
private volatile long
private static final long
private static final long
private static final int
protected volatile long
pack-priv long
Inherited from ch.qos.logback.classic.turbo.TurboFilter:
start

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
changeDetected(long now)

public FilterReply
decide(Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t)

Implements abstract ch.qos.logback.classic.turbo.TurboFilter.decide.

Make a decision based on the multiple parameters passed as arguments.
pack-priv void
pack-priv void
public long
public void
setRefreshPeriod(long refreshPeriod)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
private void
pack-priv void
updateNextCheck(long now)

Inherited from ch.qos.logback.classic.turbo.TurboFilter:
getNameisStartedsetNamestop

Field Detail

configurationWatchListback to summary
pack-priv ConfigurationWatchList configurationWatchList
DEFAULT_REFRESH_PERIODback to summary
public static final long DEFAULT_REFRESH_PERIOD

Scan for changes in configuration file once every minute.

invocationCounterback to summary
private long invocationCounter
lastMaskCheckback to summary
private volatile long lastMaskCheck
mainConfigurationURLback to summary
pack-priv URL mainConfigurationURL
maskback to summary
private volatile long mask
MASK_DECREASE_THRESHOLDback to summary
private static final long MASK_DECREASE_THRESHOLD
MASK_INCREASE_THRESHOLDback to summary
private static final long MASK_INCREASE_THRESHOLD
MAX_MASKback to summary
private static final int MAX_MASK
nextCheckback to summary
protected volatile long nextCheck
refreshPeriodback to summary
pack-priv long refreshPeriod

Constructor Detail

ReconfigureOnChangeFilterback to summary
public ReconfigureOnChangeFilter()

Method Detail

changeDetectedback to summary
protected boolean changeDetected(long now)
decideback to summary
public FilterReply decide(Marker marker, Logger logger, Level level, String format, Object[] params, Throwable t)

Implements abstract ch.qos.logback.classic.turbo.TurboFilter.decide.

Doc from ch.qos.logback.classic.turbo.TurboFilter.decide.

Make a decision based on the multiple parameters passed as arguments. The returned value should be one of FilterReply#DENY, FilterReply#NEUTRAL, or FilterReply#ACCEPT.

Annotations
@Override
detachReconfigurationToNewThreadback to summary
pack-priv void detachReconfigurationToNewThread()
disableSubsequentReconfigurationback to summary
pack-priv void disableSubsequentReconfiguration()
getRefreshPeriodback to summary
public long getRefreshPeriod()
setRefreshPeriodback to summary
public void setRefreshPeriod(long refreshPeriod)
startback to summary
public void start()

Overrides ch.qos.logback.classic.turbo.TurboFilter.start.

Implements ch.qos.logback.core.spi.LifeCycle.start.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
updateMaskIfNecessaryback to summary
private void updateMaskIfNecessary(long now)
updateNextCheckback to summary
pack-priv void updateNextCheck(long now)
ch.qos.logback.classic.turbo back to summary

pack-priv Class ReconfigureOnChangeFilter.ReconfiguringThread

extends Object
implements Runnable
Class Inheritance
  • java.lang.Object
  • ch.qos.logback.classic.turbo.ReconfigureOnChangeFilter.ReconfiguringThread
All Implemented Interfaces
java.lang.Runnable

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
fallbackConfiguration(LoggerContext lc, Model failSafeTop, URL mainURL)

private void
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ReconfiguringThreadback to summary
pack-priv ReconfiguringThread()

Method Detail

fallbackConfigurationback to summary
private void fallbackConfiguration(LoggerContext lc, Model failSafeTop, URL mainURL)
performXMLConfigurationback to summary
private void performXMLConfiguration(LoggerContext lc)
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.