|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.octo.captcha.engine.bufferedengine.ContainerConfiguration
public class ContainerConfiguration
Class that contains informations to configure the BufferedEngineContainer.
Constructor Summary | |
---|---|
ContainerConfiguration(java.util.Map localeRatio,
int maxVolatileMemorySize,
int maxPersistentMemorySize,
int swapSize,
int feedSize)
Contructs a ContainerConfiguration with custom feed size and sawp size |
|
ContainerConfiguration(java.util.Map localeRatio,
int maxVolatileMemorySize,
int maxPersistentMemorySize,
int swapSize,
int feedSize,
boolean serveOnlyConfiguredLocales,
java.util.Locale defaultLocale)
Contructs a ContainerConfiguration with custom feed size and sawp size |
|
ContainerConfiguration(java.util.Map localeRatio,
int maxVolatileMemorySize,
int maxPersistentMemorySize,
int swapSize,
int feedSize,
int feedBatchSize,
boolean serveOnlyConfiguredLocales,
java.util.Locale defaultLocale)
Contructs a ContainerConfiguration with custom feed size and sawp size |
Method Summary | |
---|---|
java.util.Locale |
getDefaultLocale()
|
java.lang.Integer |
getFeedBatchSize()
|
java.lang.Integer |
getFeedSize()
|
HashedMap |
getLocaleRatio()
|
java.lang.Integer |
getMaxPersistentMemorySize()
|
java.lang.Integer |
getMaxVolatileMemorySize()
|
java.lang.Integer |
getSwapSize()
|
boolean |
isServeOnlyConfiguredLocales()
|
void |
setDefaultLocale(java.util.Locale defaultLocale)
|
void |
setFeedBatchSize(java.lang.Integer feedBatchSize)
|
void |
setFeedSize(java.lang.Integer feedSize)
|
void |
setLocaleRatio(java.util.Map localeRatio)
|
void |
setMaxPersistentMemorySize(java.lang.Integer maxPersistentMemorySize)
|
void |
setMaxVolatileMemorySize(java.lang.Integer maxVolatileMemorySize)
|
void |
setServeOnlyConfiguredLocales(boolean serveOnlyConfiguredLocales)
|
void |
setSwapSize(java.lang.Integer swapSize)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContainerConfiguration(java.util.Map localeRatio, int maxVolatileMemorySize, int maxPersistentMemorySize, int swapSize, int feedSize)
localeRatio
- locales and their ratio that should be feededmaxVolatileMemorySize
- in memory captcha buffer max sizemaxPersistentMemorySize
- persistent captcha buffer max sizeswapSize
- number of captchas that will be swapped from persistent to memory buffer each
timefeedSize
- number of captchas that will be generated and stored to persistent buffer each
timepublic ContainerConfiguration(java.util.Map localeRatio, int maxVolatileMemorySize, int maxPersistentMemorySize, int swapSize, int feedSize, boolean serveOnlyConfiguredLocales, java.util.Locale defaultLocale)
localeRatio
- locales and their ratio that should be feededmaxVolatileMemorySize
- in memory captcha buffer max sizemaxPersistentMemorySize
- persistent captcha buffer max sizeswapSize
- number of captchas that will be swapped from persistent to memory buffer each
timefeedSize
- number of captchas that will be generated and stored to persistent buffer each
timeserveOnlyConfiguredLocales
- if set to true, serve only locales that are in configuration (only by
language)defaultLocale
- the default locale used by this engineContainer.public ContainerConfiguration(java.util.Map localeRatio, int maxVolatileMemorySize, int maxPersistentMemorySize, int swapSize, int feedSize, int feedBatchSize, boolean serveOnlyConfiguredLocales, java.util.Locale defaultLocale)
localeRatio
- locales and their ratio that should be feededmaxVolatileMemorySize
- in memory captcha buffer max sizemaxPersistentMemorySize
- persistent captcha buffer max sizeswapSize
- number of captchas that will be swapped from persistent to memory buffer each
timefeedSize
- number of captchas that will be generated and stored to persistent buffer each
timefeedBatchSize
- max number of batch captchas to build when feeding, in order to preserve
memoryserveOnlyConfiguredLocales
- if set to true, serve only locales that are in configuration (only by
language)defaultLocale
- the default locale used by this engineContainer.Method Detail |
---|
public java.lang.Integer getFeedBatchSize()
public void setFeedBatchSize(java.lang.Integer feedBatchSize)
public boolean isServeOnlyConfiguredLocales()
public void setServeOnlyConfiguredLocales(boolean serveOnlyConfiguredLocales)
public java.util.Locale getDefaultLocale()
public void setDefaultLocale(java.util.Locale defaultLocale)
public java.lang.Integer getFeedSize()
public void setFeedSize(java.lang.Integer feedSize)
feedSize
- public HashedMap getLocaleRatio()
public void setLocaleRatio(java.util.Map localeRatio)
localeRatio
- Map of the ratio of locales, to produce captcha and to swap captchaspublic java.lang.Integer getMaxPersistentMemorySize()
public void setMaxPersistentMemorySize(java.lang.Integer maxPersistentMemorySize)
maxPersistentMemorySize
- Set maximum size for the disk bufferpublic java.lang.Integer getMaxVolatileMemorySize()
public void setMaxVolatileMemorySize(java.lang.Integer maxVolatileMemorySize)
maxVolatileMemorySize
- Set maximun size for the volatile bufferpublic java.lang.Integer getSwapSize()
public void setSwapSize(java.lang.Integer swapSize)
swapSize
- Set number of captchas to swap between the volatil buffer and the disk buffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |