NetCharts Server

netcharts.server.api
Class DataCacheConnector

java.lang.Object
  |
  +--netcharts.server.api.DataCacheConnector

public class DataCacheConnector
extends java.lang.Object

This class provides true local (single-JVM) and embedded server access to the data cache (note that remote data cache access is provided within NSWebToolkit). This shields toolkit classes from directly invoking the DataCache, which can cause problems in embedded mode when it is not in the client application classpath.

Since:
4.6.1
Author:
Michael Press

Constructor Summary
DataCacheConnector()
           
 
Method Summary
 java.lang.Object[][] getEmbeddedDataCacheEntry(java.lang.String cacheKey, boolean refreshCacheEntry)
          Gets a cache entry from the embedded server cache via JDNI/EJB
 java.lang.Object[][] getLocalDataCacheEntry(java.lang.String cacheKey, boolean refreshCacheEntry)
          Gets a cache entry from the local cache
 void purgeDataCache()
          Clears the local cache
 void putEmbeddedDataCacheEntry(java.lang.String cacheKey, java.lang.Object[][] data, int lifeSpan)
          Puts data into the embedded server data cache via JNDI/EJB
 void putLocalDataCacheEntry(java.lang.String cacheKey, java.lang.Object[][] data, int lifeSpan)
          Puts data into the local data cache.
 void removeEmbeddedDataCacheEntry(java.lang.String cacheKey)
          Removes data from the embedded server cache via JNDI/EJB
 void removeLocalDataCacheEntry(java.lang.String cacheKey)
          Removes data from the local cache
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataCacheConnector

public DataCacheConnector()
Method Detail

putLocalDataCacheEntry

public void putLocalDataCacheEntry(java.lang.String cacheKey,
                                   java.lang.Object[][] data,
                                   int lifeSpan)
Puts data into the local data cache.

putEmbeddedDataCacheEntry

public void putEmbeddedDataCacheEntry(java.lang.String cacheKey,
                                      java.lang.Object[][] data,
                                      int lifeSpan)
                               throws java.lang.Exception
Puts data into the embedded server data cache via JNDI/EJB

removeLocalDataCacheEntry

public void removeLocalDataCacheEntry(java.lang.String cacheKey)
Removes data from the local cache

purgeDataCache

public void purgeDataCache()
Clears the local cache

removeEmbeddedDataCacheEntry

public void removeEmbeddedDataCacheEntry(java.lang.String cacheKey)
Removes data from the embedded server cache via JNDI/EJB

getLocalDataCacheEntry

public java.lang.Object[][] getLocalDataCacheEntry(java.lang.String cacheKey,
                                                   boolean refreshCacheEntry)
Gets a cache entry from the local cache

getEmbeddedDataCacheEntry

public java.lang.Object[][] getEmbeddedDataCacheEntry(java.lang.String cacheKey,
                                                      boolean refreshCacheEntry)
Gets a cache entry from the embedded server cache via JDNI/EJB

NetCharts Server


Visual Mining, Inc.
15825 Shady Grove Rd.
Suite 20
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2007
All Rights Reserved.

NetCharts Server TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 14, 2007