|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.subsystems.qsys.cache.CacheManager
public class CacheManager
The cache manager class manages caching state for each connection.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
protected |
CacheManager(String connectionName)
The CacheManager is a singleton per host (keyed by hostname). |
Method Summary | |
---|---|
static void |
cacheNotAvailable()
Helper method for throwing exception when required information is not available in the cache. |
String |
getConnectionName()
Returns the hostname this cache instance is being used for. |
boolean |
isCachingDisabled()
Check if caching has been disabled. |
boolean |
isCheckCacheFirst()
Check if the communciations layer should check the local cache first for the requested information before retreiving it from the remote host. |
boolean |
isRestoreFromMemento()
|
void |
setCachingDisabled(boolean state)
Disable caching for this cache manager. |
void |
setCheckCacheFirst(boolean checkCacheFirst)
Set whether or not the communications layer should check the local cache first for the requested informatoin before retreiving it from the remote host. |
void |
setRestoreFromMemento(boolean restore)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
Constructor Detail |
---|
protected CacheManager(String connectionName)
Method Detail |
---|
public String getConnectionName()
IQSYSCacheManager
getConnectionName
in interface IQSYSCacheManager
public boolean isRestoreFromMemento()
public void setRestoreFromMemento(boolean restore)
public boolean isCachingDisabled()
IQSYSCacheManager
isCachingDisabled
in interface IQSYSCacheManager
public boolean isCheckCacheFirst()
IQSYSCacheManager
isCheckCacheFirst
in interface IQSYSCacheManager
public void setCachingDisabled(boolean state)
IQSYSCacheManager
setCachingDisabled
in interface IQSYSCacheManager
public void setCheckCacheFirst(boolean checkCacheFirst)
IQSYSCacheManager
setCheckCacheFirst
in interface IQSYSCacheManager
public static void cacheNotAvailable() throws SystemMessageException
SystemMessageException
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |