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
Madan Jampani
2015-08-11 07:19:35 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
15687d120a413d15a024b1956a870cdac7484286
15687d12
1 parent
f44e42cf
Use thread-safe multimaps
Change-Id: I4e2d1d39fff29caa90159673dd3bd7ff82682c3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java
core/store/dist/src/main/java/org/onosproject/store/consistent/impl/DatabaseManager.java
View file @
15687d1
...
...
@@ -23,6 +23,7 @@ import com.google.common.collect.ImmutableSet;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Multimap
;
import
com.google.common.collect.Multimaps
;
import
com.google.common.collect.Sets
;
import
com.google.common.util.concurrent.Futures
;
...
...
@@ -125,8 +126,10 @@ public class DatabaseManager implements StorageService, StorageAdminService {
private
ExecutorService
queuePollExecutor
;
private
ApplicationListener
appListener
=
new
InternalApplicationListener
();
private
final
Multimap
<
String
,
DefaultAsyncConsistentMap
>
maps
=
ArrayListMultimap
.
create
();
private
final
Multimap
<
ApplicationId
,
DefaultAsyncConsistentMap
>
mapsByApplication
=
ArrayListMultimap
.
create
();
private
final
Multimap
<
String
,
DefaultAsyncConsistentMap
>
maps
=
Multimaps
.
synchronizedMultimap
(
ArrayListMultimap
.
create
());
private
final
Multimap
<
ApplicationId
,
DefaultAsyncConsistentMap
>
mapsByApplication
=
Multimaps
.
synchronizedMultimap
(
ArrayListMultimap
.
create
());
private
final
Map
<
String
,
DefaultDistributedQueue
>
queues
=
Maps
.
newConcurrentMap
();
@Reference
(
cardinality
=
ReferenceCardinality
.
MANDATORY_UNARY
)
...
...
Please
register
or
login
to post a comment