org.apache.wicket.jmx
Class StoreSettings

java.lang.Object
  extended by org.apache.wicket.jmx.StoreSettings
All Implemented Interfaces:
StoreSettingsMBean

public class StoreSettings
extends java.lang.Object
implements StoreSettingsMBean

Exposes Application's StoreSettings for JMX.


Constructor Summary
StoreSettings(Application application)
          Construct.
 
Method Summary
 int getAsynchronousQueueCapacity()
           
 java.lang.String getFileStoreFolder()
           
 int getInmemoryCacheSize()
           
 long getMaxSizePerSession()
           
 boolean isAsynchronous()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreSettings

public StoreSettings(Application application)
Construct.

Parameters:
application -
Method Detail

getInmemoryCacheSize

public int getInmemoryCacheSize()
Specified by:
getInmemoryCacheSize in interface StoreSettingsMBean
Returns:
the number of page instances which will be stored in the http session for faster retrieval

getMaxSizePerSession

public long getMaxSizePerSession()
Specified by:
getMaxSizePerSession in interface StoreSettingsMBean
Returns:
maximum page size. After this size is exceeded, the DiskDataStore will start saving the pages at the beginning of file.

getFileStoreFolder

public java.lang.String getFileStoreFolder()
Specified by:
getFileStoreFolder in interface StoreSettingsMBean
Returns:
the location of the folder where DiskDataStore will store the files with page instances per session

getAsynchronousQueueCapacity

public int getAsynchronousQueueCapacity()
Specified by:
getAsynchronousQueueCapacity in interface StoreSettingsMBean
Returns:
the capacity of the queue used to store the pages which will be stored asynchronously

isAsynchronous

public boolean isAsynchronous()
Specified by:
isAsynchronous in interface StoreSettingsMBean
Returns:
true when the HTTP worker thread doesn't wait for the storing of the page's bytes in IDataStore


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.