Package org.wicketstuff.datastores.cassandra.demo

Source Code of org.wicketstuff.datastores.cassandra.demo.CassandraDataStoreApplication

package org.wicketstuff.datastores.cassandra.demo;

import org.apache.wicket.pageStore.IDataStore;
import org.wicketstuff.datastores.cassandra.CassandraDataStore;
import org.wicketstuff.datastores.cassandra.CassandraSettings;
import org.wicketstuff.datastores.cassandra.ICassandraSettings;
import org.wicketstuff.datastores.common.app.BaseDataStoreApplication;

public class CassandraDataStoreApplication extends BaseDataStoreApplication {
 
  @Override
  protected IDataStore createDataStore() {
    ICassandraSettings settings = new CassandraSettings();
    settings.getContactPoints().add("localhost");
    return new CassandraDataStore(settings);
  }
}
TOP

Related Classes of org.wicketstuff.datastores.cassandra.demo.CassandraDataStoreApplication

TOP
Copyright © 2018 www.massapi.com. 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.