|
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.AbstractCacheHandler com.ibm.etools.iseries.subsystems.qsys.cache.QSYSObjectCacheHandler
public class QSYSObjectCacheHandler
Cache driver for QSYS objects. Cached files are stored as a UTF8 files. Format: Root --> Hostname -----> Objects (The Subsystem) --> Each Handlers root --------> listings.cache | relative.cache | LIB1.cache | Lib1(Folder) | Special Filters | Overrides | filters.cache --------------------------------------------------------------> Folders for each object which then contain listingDetails.cache, relativeFilters.cache -------------------------------------------------> Advanced Properties for that object
Nested Class Summary | |
---|---|
class |
QSYSObjectCacheHandler.QSYSFileFilter
|
Field Summary | |
---|---|
static String |
copyright
|
Method Summary | |
---|---|
void |
cacheDatabaseFileDetails(IQSYSDatabaseFile file)
Cache the Database File details |
void |
cacheFilterStringResults(String filterString,
Object[] results,
boolean additionalDetails)
Cache the specified filter string. |
String |
cacheLocationForResource(IQSYSResource resource)
Returns the cache location for the given resource |
void |
cacheMemberDetails(IQSYSMember member,
boolean advanced)
Cache the member details |
void |
deleteFile(File file)
Deletes the passed file by recursively deleting all children first |
void |
deleteMessageDescription(IQSYSMessageDescription desc)
Removes the passed Message Description from the cache |
IQSYSLibrary |
getCurlibOverride()
|
boolean |
getDatabaseFileDetails(IQSYSDatabaseFile file)
Retrieves the cached database file details and sets them for the passed database file |
String |
getDatabaseFileDetailsLocation(IQSYSDatabaseFile file)
Returns the location where the cached Database File Details are located for the passed datbase file |
static QSYSObjectCacheHandler |
getInstance(QSYSObjectSubSystem subsystem)
Singleton access method. |
IQSYSLibrary[] |
getLibraryListOverride()
|
boolean |
getMemberDetails(IQSYSMember member,
boolean advanced)
Retrieves the cached member details and sets them for the passed member |
String |
getMemberDetailsLocation(IQSYSMember member)
Returns the location where the cached Member Details are located for the passed member |
Boolean |
loadAuthorityCheck(String library,
String object,
String objectType,
String authorityList,
String userId)
Check the authority from the cache. |
IQSYSDatabaseField[] |
loadDatabaseFields(IQSYSFileRecordFormat record,
String fieldFilter)
|
IQSYSDatabaseFileRecordFormat |
loadDatabaseFileRecord(IQSYSDatabaseFile file,
String record)
|
IISeriesHostRecordDevice[] |
loadDeviceRecords(IQSYSFile file)
|
ISeriesFileOverrideInformation |
loadFileOverride(String file)
Load file override from the cache |
IISeriesHostKeyField[] |
loadKeyFields(IQSYSDatabaseFile dtaFile,
String recordName)
Load the IISeriesHostKeyField's from the given database file with the given recordName |
IQSYSMessageDescription[] |
loadMessageDescriptions(IQSYSMessageFile msgFile,
String msgID)
Return the cached array of message descriptions for a given message file and msgID(* for all) |
List<ISeriesHostProcedureBasic> |
loadProcedures(String pgmLibraryName,
String pgmName,
String moduleName,
boolean exportedProcsOnly)
Load the procedures with the given library name, program name (null if not applicable), and module name |
com.ibm.etools.iseries.services.qsys.internal.QSYSProgramInformation |
loadProgramInformation(IQSYSObject program,
boolean exportedProcsOnly)
Return the cached QSYSProgramInformation for a specified program |
void |
removeFromCache(IQSYSResource resource)
Removes the passed resource from the cache and all children of that resource |
Object[] |
resolveFilterString(String filterString,
boolean additionalDetails)
Resolve the filter from the cache. |
void |
resourceRenamed(IQSYSResource resource,
String newName)
Updated the cache with the new name for the passed resource |
void |
saveAuthorityCheck(String library,
String object,
String objectType,
String authorityList,
String userProfile,
boolean result)
Save the results of an authority check. |
void |
saveDatabaseFields(IQSYSFileRecordFormat record,
String fieldFilter,
IQSYSDatabaseField[] fields)
|
void |
saveDatabaseFileRecord(IQSYSDatabaseFile file,
String record,
IQSYSDatabaseFileRecordFormat fileRecord)
|
void |
saveDeviceRecords(IQSYSFile file,
IISeriesHostRecordDevice[] records)
|
void |
saveFileOverride(String file,
ISeriesFileOverrideInformation override)
Save file override information. |
void |
saveKeyFields(IQSYSDatabaseFile dtaFile,
String recordName,
IISeriesHostKeyField[] fields)
Cache the given IISeriesHostKeyField's from the given database file and record name |
void |
saveMessageDescriptions(IQSYSMessageFile msgFile,
String msgID,
IQSYSMessageDescription[] msgs)
Write to cache the given Message Descriptions |
void |
saveProcedures(String pgmLibraryName,
String pgmName,
String moduleName,
List<Object> procedures,
boolean exportedProcsOnly)
Cache the given procedures for the provided location |
void |
saveProgramInformation(IQSYSObject program,
com.ibm.etools.iseries.services.qsys.internal.QSYSProgramInformation info,
boolean exportedProcsOnly)
Cache QSYSProgramInformation for the given program |
void |
setLibraryListOverride(IQSYSLibrary[] tempLIBL,
IQSYSLibrary assocLib)
|
static void |
updateCacheLocation(String newLocation)
Updates the cache location of every handler |
Methods inherited from class com.ibm.etools.iseries.subsystems.qsys.cache.AbstractCacheHandler |
---|
addToOutputXNumberOfLines, backupAndDeleteCacheFile, checkCacheSize, getCacheRootDirectory, getListingDetailsFileName, getReader, getWriter, isCachingDisabled, setCacheLocation, skipNumberOfLines, writeFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
Method Detail |
---|
public static QSYSObjectCacheHandler getInstance(QSYSObjectSubSystem subsystem)
public static void updateCacheLocation(String newLocation)
newLocation
- The new location the cache should cache files to nowpublic void cacheFilterStringResults(String filterString, Object[] results, boolean additionalDetails)
filterString
- results
- public Object[] resolveFilterString(String filterString, boolean additionalDetails)
filterString
-
public IQSYSLibrary getCurlibOverride()
public IQSYSLibrary[] getLibraryListOverride()
public void setLibraryListOverride(IQSYSLibrary[] tempLIBL, IQSYSLibrary assocLib)
public void saveMessageDescriptions(IQSYSMessageFile msgFile, String msgID, IQSYSMessageDescription[] msgs)
file
- The Message File the msgs are frommsgID
- the filter stringmsgs
- The Message Descriptions to be cachedpublic IQSYSMessageDescription[] loadMessageDescriptions(IQSYSMessageFile msgFile, String msgID)
public com.ibm.etools.iseries.services.qsys.internal.QSYSProgramInformation loadProgramInformation(IQSYSObject program, boolean exportedProcsOnly)
public void saveProgramInformation(IQSYSObject program, com.ibm.etools.iseries.services.qsys.internal.QSYSProgramInformation info, boolean exportedProcsOnly)
public List<ISeriesHostProcedureBasic> loadProcedures(String pgmLibraryName, String pgmName, String moduleName, boolean exportedProcsOnly)
public void saveProcedures(String pgmLibraryName, String pgmName, String moduleName, List<Object> procedures, boolean exportedProcsOnly)
public void saveAuthorityCheck(String library, String object, String objectType, String authorityList, String userProfile, boolean result)
public Boolean loadAuthorityCheck(String library, String object, String objectType, String authorityList, String userId)
saveAuthorityCheck(String, String, String, String, String, boolean)
for details on cache file format.
public void saveFileOverride(String file, ISeriesFileOverrideInformation override)
public ISeriesFileOverrideInformation loadFileOverride(String file)
public IISeriesHostKeyField[] loadKeyFields(IQSYSDatabaseFile dtaFile, String recordName)
public void saveKeyFields(IQSYSDatabaseFile dtaFile, String recordName, IISeriesHostKeyField[] fields)
public IQSYSDatabaseField[] loadDatabaseFields(IQSYSFileRecordFormat record, String fieldFilter)
public void saveDatabaseFields(IQSYSFileRecordFormat record, String fieldFilter, IQSYSDatabaseField[] fields)
public IISeriesHostRecordDevice[] loadDeviceRecords(IQSYSFile file)
public void saveDeviceRecords(IQSYSFile file, IISeriesHostRecordDevice[] records)
public void saveDatabaseFileRecord(IQSYSDatabaseFile file, String record, IQSYSDatabaseFileRecordFormat fileRecord)
public IQSYSDatabaseFileRecordFormat loadDatabaseFileRecord(IQSYSDatabaseFile file, String record)
public void removeFromCache(IQSYSResource resource)
resource
- The Resource to be removed from cachepublic void resourceRenamed(IQSYSResource resource, String newName)
resource
- The resource that has been renamedpublic String cacheLocationForResource(IQSYSResource resource)
resource
- The resource we are determining the cache location forpublic void deleteFile(File file)
public void deleteMessageDescription(IQSYSMessageDescription desc)
public boolean getMemberDetails(IQSYSMember member, boolean advanced) throws SystemMessageException
SystemMessageException
public void cacheMemberDetails(IQSYSMember member, boolean advanced)
public String getMemberDetailsLocation(IQSYSMember member)
public String getDatabaseFileDetailsLocation(IQSYSDatabaseFile file)
public boolean getDatabaseFileDetails(IQSYSDatabaseFile file) throws SystemMessageException
SystemMessageException
public void cacheDatabaseFileDetails(IQSYSDatabaseFile file)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |