ch.qos.logback.core
Class BasicStatusManager

java.lang.Object
  extended by ch.qos.logback.core.BasicStatusManager
All Implemented Interfaces:
StatusManager

public class BasicStatusManager
extends Object
implements StatusManager


Field Summary
static int MAX_HEADER_COUNT
           
protected  List<Status> statusList
           
protected  List<StatusListener> statusListenerList
           
protected  Object statusListenerListLock
           
protected  Object statusListLock
           
static int TAIL_SIZE
           
protected  CyclicBuffer<Status> tailBuffer
           
 
Constructor Summary
BasicStatusManager()
           
 
Method Summary
 void add(Status newStatus)
          Add a new status object.
 void add(StatusListener listener)
          Add a status listener.
 void clear()
          Clear the list of status messages.
 List<Status> getCopyOfStatusList()
          Obtain a copy of the status list maintained by this StatusManager.
 List<StatusListener> getCopyOfStatusListenerList()
          Obtain a copy of the status listener list maintained by this StatusManager
 int getCount()
          Return the number of status entries.
 int getLevel()
          Return the highest level of all the statii.
 void remove(StatusListener listener)
          Remove a status listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_HEADER_COUNT

public static final int MAX_HEADER_COUNT
See Also:
Constant Field Values

TAIL_SIZE

public static final int TAIL_SIZE
See Also:
Constant Field Values

statusList

protected final List<Status> statusList

tailBuffer

protected final CyclicBuffer<Status> tailBuffer

statusListLock

protected final Object statusListLock

statusListenerList

protected final List<StatusListener> statusListenerList

statusListenerListLock

protected final Object statusListenerListLock
Constructor Detail

BasicStatusManager

public BasicStatusManager()
Method Detail

add

public void add(Status newStatus)
Add a new status object.

Specified by:
add in interface StatusManager
Parameters:
Status - the status message to add

getCopyOfStatusList

public List<Status> getCopyOfStatusList()
Description copied from interface: StatusManager
Obtain a copy of the status list maintained by this StatusManager.

Specified by:
getCopyOfStatusList in interface StatusManager
Returns:

clear

public void clear()
Description copied from interface: StatusManager
Clear the list of status messages.

Specified by:
clear in interface StatusManager

getLevel

public int getLevel()
Description copied from interface: StatusManager
Return the highest level of all the statii.

Specified by:
getLevel in interface StatusManager
Returns:

getCount

public int getCount()
Description copied from interface: StatusManager
Return the number of status entries.

Specified by:
getCount in interface StatusManager
Returns:

add

public void add(StatusListener listener)
Description copied from interface: StatusManager
Add a status listener.

Specified by:
add in interface StatusManager

remove

public void remove(StatusListener listener)
Description copied from interface: StatusManager
Remove a status listener.

Specified by:
remove in interface StatusManager

getCopyOfStatusListenerList

public List<StatusListener> getCopyOfStatusListenerList()
Description copied from interface: StatusManager
Obtain a copy of the status listener list maintained by this StatusManager

Specified by:
getCopyOfStatusListenerList in interface StatusManager
Returns:


Copyright © 2005-2010 QOS.ch. All Rights Reserved.