|
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.rse.util.clprompter.ClCacheUtilities
public class ClCacheUtilities
Field Summary | |
---|---|
static String |
Copyright
|
Fields inherited from interface com.ibm.etools.iseries.subsystems.qsys.cache.ICacheConstants |
---|
CACHE_FILE_CL_COMMAND_EXTENSION, CACHE_FILE_CL_COMMAND_PROPERTIES, CACHE_FILE_CL_HELP_EXTENSION, CACHE_FILE_CL_HELP_TABLE_EXTENSION, CACHE_FILE_CORRUPTED_EXTENSION, CACHE_KEY_DELIMINATOR, 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_MAX_INMEMORY_CACHE_FILES, PREF_MAXSIZE, PREF_MAXSIZE_OPTION, PREF_NEVER, PREF_OFFLINE_UNIVERSAL, PREF_ONLINE_OPTIONS |
Constructor Summary | |
---|---|
ClCacheUtilities()
|
Method Summary | |
---|---|
static String |
getCacheDir(IBMiConnection connection)
Method getCacheDir. |
static String |
getCacheFileContents(String fullFileName)
Method getCacheFileContents. |
static byte[] |
getCacheFileContentsBytes(String fullFileName)
|
static String |
getCommandLibraryUsingCache(String command,
String library,
IBMiConnection connection,
com.ibm.etools.iseries.rse.util.clprompter.ClPanel panel)
|
static boolean |
isCacheFull(int numBytes)
indicates whether or not the cache is full |
static boolean |
isCachingDisabled(IBMiConnection connection)
Indicates whether or not caching is disabled. |
static boolean |
isObjectModified(IBMiConnection 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(IBMiConnection 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
Constructor Detail |
---|
public ClCacheUtilities()
Method Detail |
---|
public static String getCacheDir(IBMiConnection 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, IBMiConnection connection, com.ibm.etools.iseries.rse.util.clprompter.ClPanel panel) throws SystemMessageException, ClCommandException
SystemMessageException
ClCommandException
public static boolean isCachingDisabled(IBMiConnection connection)
connection
- the connection to check
public static void setCommandTimeStamp(IBMiConnection 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(IBMiConnection connection, String library, String object, String objectType) throws SystemMessageException
connection
- the connection for the commandlibrary
- the library that the command is inobject
- the object to checkobjectType
- the objectType of the object to check.
SystemMessageException
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
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |