blob: 114150fe1d1aa5696d372514b717710b99637fb7 [file] [log] [blame]
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -07001package org.onlab.onos.store.serializers;
2
Yuta HIGUCHI8ce08732014-10-11 10:40:45 -07003import org.onlab.onos.store.impl.MastershipBasedTimestamp;
Yuta HIGUCHIeecee552014-10-16 14:09:01 -07004import org.onlab.onos.store.impl.Timestamped;
Madan Jampanib5e9b1d2014-10-13 14:18:39 -07005import org.onlab.onos.store.impl.WallClockTimestamp;
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -07006import org.onlab.util.KryoPool;
7
8public final class DistributedStoreSerializers {
9
10 /**
11 * KryoPool which can serialize ON.lab misc classes.
12 */
13 public static final KryoPool COMMON = KryoPool.newBuilder()
14 .register(KryoPoolUtil.API)
15 .register(Timestamped.class)
16 .register(MastershipBasedTimestamp.class, new MastershipBasedTimestampSerializer())
Madan Jampanib5e9b1d2014-10-13 14:18:39 -070017 .register(WallClockTimestamp.class)
Yuta HIGUCHI9ee60f62014-10-09 10:00:01 -070018 .build();
19
20 // avoid instantiation
21 private DistributedStoreSerializers() {}
22}