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
Jonathan Hart
2016-06-17 15:15:17 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9dc5f098314ae2ed85b04b755b7bdb48f2a061cb
9dc5f098
1 parent
9ba19dce
Register UpdateRequest in Kryo
Change-Id: I4f51e8f9e9cce55a912bc464d1593f9ad233ead9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/EventuallyConsistentMapImpl.java
core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/EventuallyConsistentMapImpl.java
View file @
9dc5f09
...
...
@@ -15,33 +15,12 @@
*/
package
org
.
onosproject
.
store
.
primitives
.
impl
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.
checkNotNull
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.
checkState
;
import
static
java
.
util
.
concurrent
.
Executors
.
newSingleThreadScheduledExecutor
;
import
static
org
.
onlab
.
util
.
BoundedThreadPool
.
newFixedThreadPool
;
import
static
org
.
onlab
.
util
.
Tools
.
groupedThreads
;
import
static
org
.
onosproject
.
store
.
service
.
EventuallyConsistentMapEvent
.
Type
.
PUT
;
import
static
org
.
onosproject
.
store
.
service
.
EventuallyConsistentMapEvent
.
Type
.
REMOVE
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.Set
;
import
java.util.Timer
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.ScheduledExecutorService
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.function.BiFunction
;
import
java.util.stream.Collectors
;
import
com.google.common.collect.Collections2
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Sets
;
import
org.apache.commons.lang3.tuple.Pair
;
import
org.onlab.util.AbstractAccumulator
;
import
org.onlab.util.KryoNamespace
;
...
...
@@ -63,12 +42,32 @@ import org.onosproject.store.service.WallClockTimestamp;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
com.google.common.collect.Collections2
;
import
com.google.common.collect.ImmutableList
;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Sets
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.HashSet
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Optional
;
import
java.util.Set
;
import
java.util.Timer
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.ScheduledExecutorService
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.concurrent.atomic.AtomicReference
;
import
java.util.function.BiFunction
;
import
java.util.stream.Collectors
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.
checkNotNull
;
import
static
com
.
google
.
common
.
base
.
Preconditions
.
checkState
;
import
static
java
.
util
.
concurrent
.
Executors
.
newSingleThreadScheduledExecutor
;
import
static
org
.
onlab
.
util
.
BoundedThreadPool
.
newFixedThreadPool
;
import
static
org
.
onlab
.
util
.
Tools
.
groupedThreads
;
import
static
org
.
onosproject
.
store
.
service
.
EventuallyConsistentMapEvent
.
Type
.
PUT
;
import
static
org
.
onosproject
.
store
.
service
.
EventuallyConsistentMapEvent
.
Type
.
REMOVE
;
/**
* Distributed Map implementation which uses optimistic replication and gossip
...
...
@@ -281,6 +280,7 @@ public class EventuallyConsistentMapImpl<K, V>
.
register
(
UpdateEntry
.
class
)
.
register
(
MapValue
.
class
)
.
register
(
MapValue
.
Digest
.
class
)
.
register
(
UpdateRequest
.
class
)
.
build
(
name
()
+
"-ecmap"
));
}
...
...
Please
register
or
login
to post a comment