|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.util.clprompter.ClCacheUtilities
Field Summary | |
---|---|
static String |
Copyright
|
static String |
INFO_FILENAME
the filename used to store last modified dates for the commands. |
Fields inherited from interface com.ibm.etools.iseries.core.cache.ICacheConstants |
---|
copyright, MAX_SIZE_DEFAULT, PREF_ALWAYS, PREF_CACHE_LISTS, PREF_CL, PREF_CL_HOST, PREF_CL_IGNORE, PREF_CL_RELEASE, PREF_DISABLE_CACHE, PREF_LEVELCHECK, PREF_LOCATION, PREF_MAXSIZE, PREF_MAXSIZE_OPTION, PREF_NEVER, PREF_OFFLINE_UNIVERSAL, PREF_ONLINE_OPTIONS |
Constructor Summary | |
---|---|
ClCacheUtilities()
|
Method Summary | |
---|---|
static String |
getCacheDir(ISeriesConnection connection)
Method getCacheDir. |
static String |
getCacheFileContents(String fullFileName)
Method getCacheFileContents. |
static byte[] |
getCacheFileContentsBytes(String fullFileName)
|
static String |
getCommandLibraryUsingCache(String command,
String library,
ISeriesConnection connection,
com.ibm.etools.iseries.core.util.clprompter.ClPanel panel)
|
static boolean |
isCacheFull(int numBytes)
indicates whether or not the cache is full |
static boolean |
isCachingDisabled(ISeriesConnection connection)
Indicates whether or not caching is disabled. |
static boolean |
isObjectModified(ISeriesConnection connection,
String library,
String object,
String objectType)
indicates whether or not an object has been modified since the last cache operation |
static boolean |
setCacheFileContents(String fullFileName,
byte[] contents)
|
static boolean |
setCacheFileContents(String fullFileName,
String contents)
Method setCacheFileContents. |
static void |
setCommandTimeStamp(ISeriesConnection connection,
String library,
String object,
String objectType)
saves the last modified property for the specified command |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
public static final String INFO_FILENAME
Constructor Detail |
public ClCacheUtilities()
Method Detail |
public static String getCacheDir(ISeriesConnection connection)
connection
- the iSeries connection to cache info for
public static String getCacheFileContents(String fullFileName)
fullFileName
- the fully specified filename of the cache file
public static byte[] getCacheFileContentsBytes(String fullFileName)
public static boolean setCacheFileContents(String fullFileName, String contents)
fullFileName
- the cache file namecontents
- the info to store in the cache file
public static boolean setCacheFileContents(String fullFileName, byte[] contents)
public static String getCommandLibraryUsingCache(String command, String library, ISeriesConnection connection, com.ibm.etools.iseries.core.util.clprompter.ClPanel panel) throws com.ibm.etools.systems.core.messages.SystemMessageException, ClCommandException
com.ibm.etools.systems.core.messages.SystemMessageException
ClCommandException
public static boolean isCachingDisabled(ISeriesConnection connection)
connection
- the connection to check
public static void setCommandTimeStamp(ISeriesConnection connection, String library, String object, String objectType)
connection
- the connection used to retrieve the command informationlibrary
- the library the command resides inobject
- the object to save the last modified date forobjectType
- the object type to save the last modified date forpublic static boolean isObjectModified(ISeriesConnection connection, String library, String object, String objectType)
connection
- the connection for the commandlibrary
- the library that the command is inobject
- the object to checkobjectType
- the objectType of the object to check.
public static boolean isCacheFull(int numBytes)
numBytes
- the number of bytes to add to the cache size to determine if the cache would be full after adding those bytes
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |