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-06 16:53:56 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3f4c2b4e918ebf620c37a1e8c90b581efedad7aa
3f4c2b4e
1 parent
92626c04
Add TODO memos
Change-Id: I087b3c6ce3b9ad1fc5cab292a58af685f8b76609
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/ClusterCommunicationAdminService.java
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/ClusterMessage.java
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/impl/ClusterCommunicationManager.java
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/impl/ClusterMessageSubjects.java
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/ClusterCommunicationAdminService.java
View file @
3f4c2b4
...
...
@@ -3,6 +3,8 @@ package org.onlab.onos.store.cluster.messaging;
import
org.onlab.onos.cluster.ControllerNode
;
import
org.onlab.onos.store.cluster.impl.ClusterNodesDelegate
;
// TODO: This service interface can be removed, once we properly start
// using ClusterService
/**
* Service for administering communications manager.
*/
...
...
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/ClusterMessage.java
View file @
3f4c2b4
...
...
@@ -2,6 +2,8 @@ package org.onlab.onos.store.cluster.messaging;
import
org.onlab.onos.cluster.NodeId
;
// TODO: ClusterMessage should be aware about how to serialize the payload
// TODO: Should payload type be made generic?
/**
* Base message for cluster-wide communications.
*/
...
...
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/impl/ClusterCommunicationManager.java
View file @
3f4c2b4
...
...
@@ -39,6 +39,7 @@ public class ClusterCommunicationManager
private
ControllerNode
localNode
;
private
ClusterNodesDelegate
nodesDelegate
;
// FIXME: `members` should go away and should be using ClusterService
private
Map
<
NodeId
,
ControllerNode
>
members
=
new
HashMap
<>();
private
final
Timer
timer
=
new
Timer
(
"onos-controller-heatbeats"
);
public
static
final
long
HEART_BEAT_INTERVAL_MILLIS
=
1000L
;
...
...
core/store/dist/src/main/java/org/onlab/onos/store/cluster/messaging/impl/ClusterMessageSubjects.java
View file @
3f4c2b4
...
...
@@ -3,6 +3,8 @@ package org.onlab.onos.store.cluster.messaging.impl;
import
org.onlab.onos.store.cluster.messaging.MessageSubject
;
public
final
class
ClusterMessageSubjects
{
// avoid instantiation
private
ClusterMessageSubjects
()
{}
public
static
final
MessageSubject
CLUSTER_MEMBERSHIP_EVENT
=
new
MessageSubject
(
"CLUSTER_MEMBERSHIP_EVENT"
);
}
...
...
Please
register
or
login
to post a comment