org.jasig.portal
Class ProblemsTable

java.lang.Object
  extended by org.jasig.portal.ProblemsTable

public class ProblemsTable
extends Object

A cache of recently reported PortalExceptions.

Version:
$Revision: 19776 $
Author:
Howard Gilbert, andrew.petro@yale.edu

Field Summary
static String MAX_RECENT_ERRORS_PER_SPECIFIC_PROPERTY
          The name of the PropertiesManager property the value of which should be the number of recent PortalExceptions you would like stored for each specific subcategory of ErrorID.
static String OVERALL_RECENT_ERRORS_PROPERTY
          The name of the propertiesManager property the value of which should be the number of recent PortalExceptions you would like stored in the overall FIFO cache, regardless of ErrorID.
static LinkedList<org.jasig.portal.CountID> recentIds
          List of recently modified CountID instances.
static Map<String,Map<String,org.jasig.portal.CountID>> registeredIds
          TreeMap from ErrorID Categories to TreeMaps.
 
Constructor Summary
ProblemsTable()
           
 
Method Summary
static List<PortalException> getRecentPortalExceptions()
          Get an unmodifiable shallow copy of the list of recent PortalExceptions.
static void register(ErrorID id)
          Add ErrorID to TreeMaps
static void store(PortalException pe)
          Store a PortalException in the tables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registeredIds

public static Map<String,Map<String,org.jasig.portal.CountID>> registeredIds
TreeMap from ErrorID Categories to TreeMaps. The enclosed TreeMaps map from Specifics (ErrorID subcategories) to CountID objects. The CountID objects cache the PortalExceptions that were in the Specific.


recentIds

public static LinkedList<org.jasig.portal.CountID> recentIds
List of recently modified CountID instances.


MAX_RECENT_ERRORS_PER_SPECIFIC_PROPERTY

public static final String MAX_RECENT_ERRORS_PER_SPECIFIC_PROPERTY
The name of the PropertiesManager property the value of which should be the number of recent PortalExceptions you would like stored for each specific subcategory of ErrorID.

See Also:
Constant Field Values

OVERALL_RECENT_ERRORS_PROPERTY

public static final String OVERALL_RECENT_ERRORS_PROPERTY
The name of the propertiesManager property the value of which should be the number of recent PortalExceptions you would like stored in the overall FIFO cache, regardless of ErrorID.

See Also:
Constant Field Values
Constructor Detail

ProblemsTable

public ProblemsTable()
Method Detail

register

public static void register(ErrorID id)
Add ErrorID to TreeMaps

Parameters:
id - ErrorID (ignored if duplicate)

store

public static void store(PortalException pe)
Store a PortalException in the tables.

Parameters:
pe - PortalException to be tabulated

getRecentPortalExceptions

public static List<PortalException> getRecentPortalExceptions()
Get an unmodifiable shallow copy of the list of recent PortalExceptions.

Returns:
an unmodifiable shallow copy of the list of recent PortalExceptions.


Copyright © 2010 Jasig. All Rights Reserved.