use of org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller in project ignite by apache.
the class OptimizedMarshallerPooledSelfTest method marshaller.
/**
* {@inheritDoc}
*/
@Override
protected Marshaller marshaller() {
OptimizedMarshaller m = new OptimizedMarshaller(false);
m.setPoolSize(8);
return m;
}
use of org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller in project ignite by apache.
the class OptimizedMarshallerIndexNameTest method getConfiguration.
/**
* {@inheritDoc}
*/
@SuppressWarnings("deprecation")
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName, IgniteTestResources rsrcs) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName, rsrcs);
DataStorageConfiguration memCfg = new DataStorageConfiguration().setDefaultDataRegionConfiguration(new DataRegionConfiguration().setMaxSize(300 * 1024 * 1024).setPersistenceEnabled(true)).setStoragePath(workSubdir() + "/db").setWalArchivePath(workSubdir() + "/db/wal/archive").setWalPath(workSubdir() + "/db/wal").setWalMode(WALMode.LOG_ONLY);
cfg.setDataStorageConfiguration(memCfg);
cfg.setMarshaller(new OptimizedMarshaller());
return cfg;
}
Aggregations