Package org.apache.wicket.pageStore

Examples of org.apache.wicket.pageStore.IDataStore


  }

  @Override
  public IPageManager get(IPageManagerContext pageManagerContext)
  {
    IDataStore dataStore = newDataStore();

    StoreSettings storeSettings = getStoreSettings();

    if (dataStore.canBeAsynchronous())
    {
      int capacity = storeSettings.getAsynchronousQueueCapacity();
      dataStore = new AsynchronousDataStore(dataStore, capacity);
    }
View Full Code Here


    newPageManager.destroy();
  }

  private PersistentPageManager newPersistentPageManager(String appName)
  {
    IDataStore dataStore = new InMemoryPageStore();
    IPageStore pageStore = new DefaultPageStore(appName, dataStore, 4);
    IPageManagerContext pageManagerContext = new DummyPageManagerContext();
    return new PersistentPageManager(appName, pageStore, pageManagerContext);
  }
View Full Code Here

    this.application = application;
  }

  public IPageManager get(IPageManagerContext pageManagerContext)
  {
    IDataStore dataStore = new DiskDataStore(application.getName(), getMaxSizePerSession(),
      getFileChannelPoolCapacity());
    IPageStore pageStore = new DefaultPageStore(application.getName(), dataStore,
      getCacheSize());
    return new PersistentPageManager(application.getName(), pageStore, pageManagerContext);
View Full Code Here

    public IPageManager get(IPageManagerContext context)
    {
      int cacheSize = 40;
      int fileChannelPoolCapacity = 50;
      IDataStore dataStore = new DiskDataStore(getName(), 1000000, fileChannelPoolCapacity);
      IPageStore pageStore = new DefaultPageStore(getName(), dataStore, cacheSize);
      return new PersistentPageManager(getName(), pageStore, context);

    }
View Full Code Here

        {

          public IPageManager get(final IPageManagerContext context)
          {

            final IDataStore dataStore = new InMemoryPageStore();
            final AsynchronousDataStore asyncDS = new AsynchronousDataStore(dataStore);
            final DefaultPageStore pageStore = new DefaultPageStore(
              application.getName(), asyncDS, 40);
            return new PersistentPageManager(application.getName(), pageStore, context);
          }
View Full Code Here

    this.application = application;
  }

  public IPageManager get(IPageManagerContext pageManagerContext)
  {
    IDataStore dataStore = newDataStore();

    IStoreSettings storeSettings = getStoreSettings();
    if (storeSettings.isAsynchronous())
    {
      int capacity = storeSettings.getAsynchronousQueueCapacity();
View Full Code Here

        this.evictionStrategy = evictionStrategy;
    }

    @Override
    public IPageManager get(IPageManagerContext pageManagerContext) {
        IDataStore dataStore = new HttpSessionDataStore(pageManagerContext, evictionStrategy);

        int cacheSize = application.getStoreSettings().getInmemoryCacheSize();
        ISerializer pageSerializer = application.getFrameworkSettings().getSerializer();
        IPageStore pageStore = new DefaultPageStore(pageSerializer, dataStore, cacheSize);
        return new PageStoreManager(application.getName(), pageStore, pageManagerContext);
View Full Code Here

    this.application = application;
  }

  public IPageManager get(IPageManagerContext pageManagerContext)
  {
    IDataStore dataStore = new DiskDataStore(application.getName(), getMaxSizePerSession(),
      getFileChannelPoolCapacity());
    IPageStore pageStore = new DefaultPageStore(application.getName(), dataStore,
      getCacheSize());
    return new PersistentPageManager(application.getName(), pageStore, pageManagerContext);
View Full Code Here

    this.application = application;
  }

  public IPageManager get(IPageManagerContext pageManagerContext)
  {
    IDataStore dataStore = newDataStore();
    IPageStore pageStore = newPageStore(dataStore);
    return new PersistentPageManager(application.getName(), pageStore, pageManagerContext);

  }
View Full Code Here

    newPageManager.destroy();
  }

  private PageStoreManager newPersistentPageManager(String appName)
  {
    IDataStore dataStore = new InMemoryPageStore();
    IPageStore pageStore = new DefaultPageStore(new JavaSerializer(appName), dataStore, 4);
    IPageManagerContext pageManagerContext = new DummyPageManagerContext();
    return new PageStoreManager(appName, pageStore, pageManagerContext);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.pageStore.IDataStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.