Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-10-22 20:37:13 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4cf23cede7ae2f53e950a3233e4307dae3b6550f
4cf23ced
1 parent
eb3f30b7
KryoSerializer usage fix
Change-Id: I48e578b33f4c13272a4aa780ee6718e38c2cbea8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
core/store/dist/src/main/java/org/onlab/onos/store/statistic/impl/DistributedStatisticStore.java
core/store/dist/src/main/java/org/onlab/onos/store/statistic/impl/DistributedStatisticStore.java
View file @
4cf23ce
...
...
@@ -4,6 +4,7 @@ import static org.onlab.onos.store.statistic.impl.StatisticStoreMessageSubjects.
import
static
org
.
slf4j
.
LoggerFactory
.
getLogger
;
import
com.google.common.collect.ImmutableSet
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
import
org.apache.felix.scr.annotations.Deactivate
;
...
...
@@ -26,9 +27,9 @@ import org.onlab.onos.store.flow.ReplicaInfo;
import
org.onlab.onos.store.flow.ReplicaInfoService
;
import
org.onlab.onos.store.serializers.KryoNamespaces
;
import
org.onlab.onos.store.serializers.KryoSerializer
;
import
org.onlab.util.KryoNamespace
;
import
org.slf4j.Logger
;
import
java.io.IOException
;
import
java.util.HashSet
;
import
java.util.Map
;
...
...
@@ -70,7 +71,9 @@ public class DistributedStatisticStore implements StatisticStore {
protected
static
final
KryoSerializer
SERIALIZER
=
new
KryoSerializer
()
{
@Override
protected
void
setupKryoPool
()
{
serializerPool
=
KryoNamespaces
.
API
.
newBuilder
()
serializerPool
=
KryoNamespace
.
newBuilder
()
.
register
(
KryoNamespaces
.
API
)
// register this store specific classes here
.
build
()
.
populate
(
1
);
}
...
...
Please
register
or
login
to post a comment