|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferedEngineContainerManager
Interface that adds manageability options to the BufferedEngineContainer
Method Summary | |
---|---|
void |
clearPersistentBuffer()
Clear the persitent buffer |
void |
clearVolatileBuffer()
Clear the volatile buffer |
int |
getFeedSize()
Get number of captchas to feed the disk buffer |
int |
getMaxPersistentMemorySize()
Get maximum size for the disk buffer |
int |
getMaxVolatileMemorySize()
Get maximun size for the volatile buffer |
int |
getPersistentBufferSize()
|
HashedMap |
getPersistentBufferSizesByLocales()
|
int |
getPersistentFeedings()
|
int |
getPersistentMemoryHits()
|
int |
getPersistentToVolatileSwaps()
|
int |
getSwapSize()
Get number of captchas to swap between the volatil buffer and the disk buffer |
int |
getVolatileBufferSize()
|
HashedMap |
getVolatileBufferSizeByLocales()
|
int |
getVolatileMemoryHits()
|
void |
pause()
Pause the scheduler, both the swapping and the feeding process are paused |
void |
resume()
Resume the scheduler, both the swapping and the feeding process are resumed |
void |
setFeedSize(int feedSize)
|
void |
setLocaleRatio(java.lang.String localeName,
double ratio)
|
void |
setMaxPersistentMemorySize(int size)
|
void |
setMaxVolatileMemorySize(int size)
|
void |
setSwapSize(int size)
|
void |
shutdown()
Shutdown scheduling, the container will use its memory buffer until its empty and swtich to the engine. |
void |
startToFeedPersistantBuffer()
Tell the scheduler to start to feed the persistent buffer |
void |
startToSwapFromPersistentToVolatileMemory()
Tell the scheduler to start to swap captchas from persistent buffer to memory buffer |
void |
stopToFeedPersistentBuffer()
Tell the scheduler to stop to feed the persistent buffer |
void |
stopToSwapFromPersistentToVolatileMemory()
Tell the scheduler to stop to swap captchas from persistent buffer to memory buffer |
Method Detail |
---|
int getFeedSize()
void setFeedSize(int feedSize)
feedSize
- Set number of captchas to produce at each iteration.void setSwapSize(int size)
size
- Set number of captchas to swap between the volatil buffer and the disk bufferint getSwapSize()
void setMaxVolatileMemorySize(int size)
size
- Set maximun size for the volatile bufferint getMaxVolatileMemorySize()
void setMaxPersistentMemorySize(int size)
size
- Set maximum size for the disk bufferint getMaxPersistentMemorySize()
void setLocaleRatio(java.lang.String localeName, double ratio)
localeName
- Name of th locale to set or to createratio
- The ratio of the localeint getVolatileMemoryHits()
int getPersistentMemoryHits()
int getPersistentFeedings()
int getPersistentToVolatileSwaps()
int getVolatileBufferSize()
HashedMap getVolatileBufferSizeByLocales()
int getPersistentBufferSize()
HashedMap getPersistentBufferSizesByLocales()
void startToFeedPersistantBuffer()
void stopToFeedPersistentBuffer()
void startToSwapFromPersistentToVolatileMemory()
void stopToSwapFromPersistentToVolatileMemory()
void clearVolatileBuffer()
void clearPersistentBuffer()
void pause()
void resume()
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |