Package org.apache.wicket.pageStore

Examples of org.apache.wicket.pageStore.AsynchronousDataStore


    StoreSettings storeSettings = getStoreSettings();

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

    IPageStore pageStore = newPageStore(dataStore);
    return new PageStoreManager(application.getName(), pageStore, pageManagerContext);
View Full Code Here


    IStoreSettings storeSettings = new StoreSettings(null);
    java.io.File fileStoreFolder = storeSettings.getFileStoreFolder();

    dataStore = new DiskDataStore("app1", fileStoreFolder, MAX_SIZE_PER_SESSION);
    int asynchronousQueueCapacity = storeSettings.getAsynchronousQueueCapacity();
    dataStore = new AsynchronousDataStore(dataStore, asynchronousQueueCapacity);

    doTestDataStore();

    dataStore.destroy();
  }
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

    IStoreSettings storeSettings = getStoreSettings();
    if (storeSettings.isAsynchronous())
    {
      int capacity = storeSettings.getAsynchronousQueueCapacity();
      dataStore = new AsynchronousDataStore(dataStore, capacity);
    }

    IPageStore pageStore = newPageStore(dataStore);
    return new PageStoreManager(application.getName(), pageStore, pageManagerContext);
View Full Code Here

    IStoreSettings storeSettings = new StoreSettings(null);
    java.io.File fileStoreFolder = storeSettings.getFileStoreFolder();

    dataStore = new DiskDataStore("app1", fileStoreFolder, MAX_SIZE_PER_SESSION);
    int asynchronousQueueCapacity = storeSettings.getAsynchronousQueueCapacity();
    dataStore = new AsynchronousDataStore(dataStore, asynchronousQueueCapacity);

    doTestDataStore();

    dataStore.destroy();
  }
View Full Code Here

    java.io.File fileStoreFolder = storeSettings.getFileStoreFolder();

    dataStore = new DiskDataStore("app1", fileStoreFolder, MAX_SIZE_PER_SESSION,
      FILE_CHANNEL_POOL_CAPACITY);
    int asynchronousQueueCapacity = storeSettings.getAsynchronousQueueCapacity();
    dataStore = new AsynchronousDataStore(dataStore, asynchronousQueueCapacity);

    doTestDataStore();

    dataStore.destroy();
  }
View Full Code Here

  public void test1()
  {
    generateFiles();

    dataStore = new DiskDataStore("app1", MAX_SIZE_PER_SESSION, FILE_CHANNEL_POOL_CAPACITY);
    dataStore = new AsynchronousDataStore(dataStore);

    doTestDataStore();

    dataStore.destroy();
  }
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

  public void test1()
  {
    generateFiles();

    dataStore = new DiskDataStore("app1", MAX_SIZE_PER_SESSION, FILE_CHANNEL_POOL_CAPACITY);
    dataStore = new AsynchronousDataStore(dataStore);

    doTestDataStore();

    dataStore.destroy();
  }
View Full Code Here

          public IPageManager get(IPageManagerContext pageManagerContext)
          {

            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,
              pageManagerContext);
          }
View Full Code Here

TOP

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

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.