Search in sources :

Example 21 with DefaultSerializerFactory

use of voldemort.serialization.DefaultSerializerFactory in project voldemort by voldemort.

the class ThriftSerializerTest method testGetSerializer2.

public void testGetSerializer2() {
    try {
        SerializerDefinition def = new SerializerDefinition("thrift", "java=" + MockMessage.class.getName());
        new DefaultSerializerFactory().getSerializer(def);
    } catch (IllegalArgumentException e) {
        return;
    }
    fail("IllegalArgumentException should have been thrown for missing Thrift protocol");
}
Also used : DefaultSerializerFactory(voldemort.serialization.DefaultSerializerFactory) SerializerDefinition(voldemort.serialization.SerializerDefinition)

Aggregations

DefaultSerializerFactory (voldemort.serialization.DefaultSerializerFactory)21 SerializerDefinition (voldemort.serialization.SerializerDefinition)15 Serializer (voldemort.serialization.Serializer)10 SerializerFactory (voldemort.serialization.SerializerFactory)8 StoreDefinition (voldemort.store.StoreDefinition)8 ByteArray (voldemort.utils.ByteArray)8 Node (voldemort.cluster.Node)7 IOException (java.io.IOException)6 CompressionStrategy (voldemort.store.compress.CompressionStrategy)6 CompressionStrategyFactory (voldemort.store.compress.CompressionStrategyFactory)6 File (java.io.File)5 Versioned (voldemort.versioning.Versioned)5 BufferedWriter (java.io.BufferedWriter)4 HashMap (java.util.HashMap)4 Map (java.util.Map)4 RoutingStrategyFactory (voldemort.routing.RoutingStrategyFactory)4 StringSerializer (voldemort.serialization.StringSerializer)4 Pair (voldemort.utils.Pair)4 ArrayList (java.util.ArrayList)3 VoldemortException (voldemort.VoldemortException)3