wt.series
Class SeriesCache

java.lang.Object
  extended bywt.series.SeriesCache

public class SeriesCache
extends Object


Nested Class Summary
static class SeriesCache.ContextMessenger
           
private static class SeriesCache.Placeholder
           
private  class SeriesCache.SeriesCacheContent
           
private static class SeriesCache.Singleton
           
 
Field Summary
private static String CACHE_INITIALIZED
           
private static int CACHE_SIZE
           
private static String CLASSNAME
           
private static boolean DEBUG
           
private static String DELIM
           
(package private)  DirtyMap localCache
           
private static DebugWriter LOG
           
(package private)  SeriesCache.ContextMessenger messenger
           
private static String SERIES_KEY
           
private  SeriesCache.SeriesCacheContent seriesCacheContent
           
 
Constructor Summary
private SeriesCache()
           
 
Method Summary
private  void addListeners()
           
 List getAllMaturityLevels(String series)
           
(package private) static SeriesCache getInstance()
           
 int getMaturityIndex(String maturity)
           
 int getSeriesIndex(String series)
           
 String getSeriesKey(String value)
           
 List getValues(String series, String maturity)
           
 String getXML()
           
private  void initializeCache()
           
private  void parseNodeList(NodeList nodeList, String key)
           
private  void print(String s, Map m)
           
private  void putSeriesCacheContent(String key, List values)
           
private  void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

private static final String CLASSNAME

DEBUG

private static final boolean DEBUG

LOG

private static final DebugWriter LOG

CACHE_SIZE

private static final int CACHE_SIZE

CACHE_INITIALIZED

private static final String CACHE_INITIALIZED
See Also:
Constant Field Values

SERIES_KEY

private static final String SERIES_KEY
See Also:
Constant Field Values

DELIM

private static final String DELIM
See Also:
Constant Field Values

seriesCacheContent

private SeriesCache.SeriesCacheContent seriesCacheContent

messenger

SeriesCache.ContextMessenger messenger

localCache

DirtyMap localCache
Constructor Detail

SeriesCache

private SeriesCache()
             throws WTException
Method Detail

getInstance

static SeriesCache getInstance()

addListeners

private void addListeners()

getXML

public String getXML()
              throws WTException
Throws:
WTException

initializeCache

private void initializeCache()
                      throws WTException
Throws:
WTException

putSeriesCacheContent

private void putSeriesCacheContent(String key,
                                   List values)

validate

private void validate()
               throws WTException
Throws:
WTException

parseNodeList

private void parseNodeList(NodeList nodeList,
                           String key)

getValues

public List getValues(String series,
                      String maturity)
               throws WTException
Throws:
WTException

getSeriesKey

public String getSeriesKey(String value)
                    throws WTException
Throws:
WTException

getSeriesIndex

public int getSeriesIndex(String series)
                   throws WTException
Throws:
WTException

getMaturityIndex

public int getMaturityIndex(String maturity)
                     throws WTException
Throws:
WTException

getAllMaturityLevels

public List getAllMaturityLevels(String series)
                          throws WTException
Throws:
WTException

print

private void print(String s,
                   Map m)