|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alltimeflashdreamer.filelister.PropertyFileParameters
Title: PropertyFileParameters
Description: This class stores the values of the property file, for easy handling by the FileListerConfig and the PoolHandler/ConnectionPool classes.
Organization: All Time Flash Dreamer
Field Summary | |
(package private) int |
iConnectionIncrement
"jdbc.pooledconnectionincrement" parameter value |
(package private) int |
iInitialConnections
"jdbc.initialconnectionpoolsize" parameter value |
(package private) String |
sVirtualRootDirectory
"directory.virtualroot" parameter value |
Constructor Summary | |
PropertyFileParameters(FileListerXMLHandler xmlHandler)
Overloaded constructor which avoids the parsing of the file. |
|
PropertyFileParameters(String sPropertyFileDir)
Constructor parses the given config XML file and verifies the entries. |
Method Summary | |
int |
getConnectionIncrement(boolean bWithReloadCheck)
Returns the amount of connections that shall be established by the connection pool if the initial pool is not big enough (on heavy load). |
String |
getConnectionString()
Returns the name of the connection string to be used by the JDBC driver used by FileLister. |
String |
getDriverClassName()
Returns the class name of the JDBC driver to be used by FileLister. |
int |
getIndexAging(boolean bWithReloadCheck)
Returns the amount of seconds that the engine shall wait until a directory search is (physically) performed again. |
int |
getInitialConnections(boolean bWithReloadCheck)
Returns the amount of connections that shall be established by the connection pool on initialization. |
String |
getJDBCTableName()
Returns the name of the table within the database where the index shall be written into / read from. |
String |
getLinkPrefix()
Returns the prefix that shall be set before the path of each entry, so that the entry can be viewed/downloaded from the web GUI (e.g. |
int |
getMaxFileListerObjects(boolean bWithReloadCheck)
Returns how many FileListerEntry objects shall be kept at most in the memory. |
LinkedList |
getNoGoAreas(boolean bWithReloadCheck)
Returns a list of the tokenized entries of the no-go-areas, each defining a path on the file system which must not be indexed. |
String |
getPassword()
Returns the password of the database (used to build a connection). |
String |
getRegExpHelpLink()
Returns the link that shall be used for explanation of the regexp functionality in the "definesearch" site. |
SQLQueryBuilder |
getSQLQueryBuilder()
Returns the concrete implementation class of SQLQueryBuilder, adapted for the database server to be used by the FileLister application. |
String |
getUserName()
Returns the user name of the database (used to build a connection). |
String |
getVirtualRootDirectory(boolean bWithReloadCheck)
Returns the virtual root setting of the property file; this value may equal the "", if not set. |
String |
getZipCreationDirectory(boolean bWithReloadCheck)
Returns the path of the directory where the zip files shall be generated in (used only if it's allowed to zip). |
int |
getZipPackageStrength(boolean bWithReloadCheck)
Returns the zip package strength, the value which indicates how hard the generated zip files shall be minimized (in size). |
boolean |
isAllowedToZip()
Returns whether it's allowed to download web GUI entries in a zip file created by FileLister or not. |
boolean |
isShowingAbsolutePaths()
Returns whether the file listing output shall contain absolute or virtual paths within the link URL's. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
String sVirtualRootDirectory
int iInitialConnections
int iConnectionIncrement
Constructor Detail |
public PropertyFileParameters(String sPropertyFileDir) throws FileListerException, IOException
sPropertyFileDir
- the directory where the property file is stored
FileListerException
- each possible exception that may occur during
the parsing-of-the-property-file process
IOException
- if the property file can't be accessed somehowpublic PropertyFileParameters(FileListerXMLHandler xmlHandler) throws FileListerException
xmlHandler
- the previously instantiated config reader
FileListerException
- if there is an inacceptable config settingMethod Detail |
public String getVirtualRootDirectory(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
public boolean isShowingAbsolutePaths()
public int getIndexAging(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
public int getMaxFileListerObjects(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
public LinkedList getNoGoAreas(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
public String getDriverClassName()
public String getConnectionString()
public String getUserName()
public String getPassword()
public int getInitialConnections(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
public int getConnectionIncrement(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
public String getJDBCTableName()
public SQLQueryBuilder getSQLQueryBuilder()
public String getLinkPrefix()
public String getRegExpHelpLink()
public boolean isAllowedToZip()
public String getZipCreationDirectory(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
public int getZipPackageStrength(boolean bWithReloadCheck)
bWithReloadCheck
- whether to check for a xml file reload or not
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |