|
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
public class AbstractCacheHandler
Parent class for cache handlers.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
protected |
AbstractCacheHandler(String hostname,
String handlerName)
|
Method Summary | |
---|---|
protected void |
addToOutputXNumberOfLines(int numberOfLinesToAdd,
BufferedReader in,
List<String> output)
Add the number of lines into the output List provided |
protected void |
backupAndDeleteCacheFile(String filename)
Code to cleanup corrupted cache files. |
protected void |
checkCacheSize()
|
String |
getCacheRootDirectory()
Get the file system root location for the current cache handler. |
protected String |
getListingDetailsFileName()
Get the name of the file used for listing the basic properties of Elements |
protected BufferedReader |
getReader(String filename)
Utility method for getting and PrintWriter for and output file |
protected BufferedWriter |
getWriter(String filename)
Utility method for getting and PrintWriter for and output file |
protected boolean |
isCachingDisabled()
|
void |
setCacheLocation(String location)
|
protected void |
skipNumberOfLines(int numberOfLinesToSkip,
BufferedReader in)
Skip the passed number of lines |
protected void |
writeFile(String filename,
List<String> output)
|
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 AbstractCacheHandler(String hostname, String handlerName)
Method Detail |
---|
public void setCacheLocation(String location)
public String getCacheRootDirectory()
protected String getListingDetailsFileName()
protected BufferedWriter getWriter(String filename) throws UnsupportedEncodingException, FileNotFoundException
FileNotFoundException
UnsupportedEncodingException
protected BufferedReader getReader(String filename)
FileNotFoundException
UnsupportedEncodingException
protected void backupAndDeleteCacheFile(String filename)
protected void skipNumberOfLines(int numberOfLinesToSkip, BufferedReader in) throws IOException
IOException
protected void addToOutputXNumberOfLines(int numberOfLinesToAdd, BufferedReader in, List<String> output) throws IOException
IOException
protected void writeFile(String filename, List<String> output)
protected boolean isCachingDisabled()
protected void checkCacheSize()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |