|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jgeocoder.tiger.JGeocoderConfig
public class JGeocoderConfig
TODO javadocs me
Field Summary | |
---|---|
static JGeocoderConfig |
DEFAULT
|
Constructor Summary | |
---|---|
JGeocoderConfig()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
int |
getBerkeleyDbCachePercent()
By default, JE sets its cache size proportionally to the JVM memory. |
long |
getBerkeleyDbCacheSize()
see http://www.oracle.com/technology/documentation/berkeley-db/je/java/com/sleepycat/je/EnvironmentMutableConfig.html#setCachePercent(int) |
String |
getJgeocoderDataHome()
|
DataSource |
getTigerDataSource()
get the DataSource to the tiger/line address database |
int |
hashCode()
|
void |
setBerkeleyDbCachePercent(int berkeleyDbCachePercent)
|
void |
setBerkeleyDbCacheSize(long berkeleyDbCacheSize)
Configures the memory available to the database system, in bytes. |
void |
setJgeocoderDataHome(String jgeocoderDataHome)
|
void |
setTigerDataSource(DataSource tigerDataSource)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final JGeocoderConfig DEFAULT
Constructor Detail |
---|
public JGeocoderConfig()
Method Detail |
---|
public DataSource getTigerDataSource()
DataSource
to the tiger/line address database
public void setTigerDataSource(DataSource tigerDataSource)
public int getBerkeleyDbCachePercent()
By default, JE sets its cache size proportionally to the JVM memory. This formula is used:
je.maxMemoryPercent * JVM maximum memory
where JVM maximum memory is specified by the JVM -Xmx flag. setCachePercent() specifies the percentage used and is equivalent to setting the je.maxMemoryPercent property in the je.properties file.
Calling setCacheSize() with a non-zero value overrides the percentage based calculation and sets the cache size explicitly.
Note that the log buffer cache may be cleared if the cache size is changed after the environment has been opened.
If setSharedCache(true) is called, setCacheSize and setCachePercent specify the total size of the shared cache, and changing these parameters will change the size of the shared cache.
berkeleyDbCachePercent
- berkeleyDb default will be used if set to negativepublic void setBerkeleyDbCachePercent(int berkeleyDbCachePercent)
public long getBerkeleyDbCacheSize()
public void setBerkeleyDbCacheSize(long berkeleyDbCacheSize)
Equivalent to setting the je.maxMemory property in the je.properties file. The system will evict database objects when it comes within a prescribed margin of the limit.
By default, JE sets the cache size to:
je.maxMemoryPercent * JVM maximum memory
where JVM maximum memory is specified by the JVM -Xmx flag. However, calling setCacheSize() with a non-zero value overrides the percentage based calculation and sets the cache size explicitly.
Note that the cache does not include transient objects created by the JE library, such as cursors, locks and transactions.
Note that the log buffer cache may be cleared if the cache size is changed after the environment has been opened.
If setSharedCache(true) is called, setCacheSize and setCachePercent specify the total size of the shared cache, and changing these parameters will change the size of the shared cache.
berkeleyDbCacheSize
- berkeleyDb default will be used if set to negativepublic String getJgeocoderDataHome()
public void setJgeocoderDataHome(String jgeocoderDataHome)
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |