Search in sources :

Example 6 with OptimizedMarshaller

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;
}
Also used : OptimizedMarshaller(org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller)

Example 7 with OptimizedMarshaller

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;
}
Also used : DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) IgniteConfiguration(org.apache.ignite.configuration.IgniteConfiguration) OptimizedMarshaller(org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller)

Aggregations

OptimizedMarshaller (org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller)7 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)3 NotSerializableException (java.io.NotSerializableException)2 IgniteCheckedException (org.apache.ignite.IgniteCheckedException)2 IOException (java.io.IOException)1 NotActiveException (java.io.NotActiveException)1 ObjectStreamException (java.io.ObjectStreamException)1 CacheConfiguration (org.apache.ignite.configuration.CacheConfiguration)1 DataRegionConfiguration (org.apache.ignite.configuration.DataRegionConfiguration)1 DataStorageConfiguration (org.apache.ignite.configuration.DataStorageConfiguration)1 TcpDiscoverySpi (org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi)1