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
2014-10-07 14:16:15 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da1a6b06d2e2869d83f05307e8ca1ac1d7c32434
da1a6b06
1 parent
1daad7c6
Initialize NettyMessagingService explicitly as it is not a OSGi service yet
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
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/ClusterCommunicationManager.java
View file @
da1a6b0
...
...
@@ -30,6 +30,7 @@ import org.onlab.netty.Endpoint;
import
org.onlab.netty.Message
;
import
org.onlab.netty.MessageHandler
;
import
org.onlab.netty.MessagingService
;
import
org.onlab.netty.NettyMessagingService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -48,7 +49,6 @@ public class ClusterCommunicationManager
public
static
final
long
HEART_BEAT_INTERVAL_MILLIS
=
1000L
;
// TODO: This probably should not be a OSGi service.
//@Reference(cardinality = ReferenceCardinality.MANDATORY_UNARY)
private
MessagingService
messagingService
;
private
static
final
KryoSerializer
SERIALIZER
=
new
KryoSerializer
()
{
...
...
@@ -65,11 +65,7 @@ public class ClusterCommunicationManager
@Activate
public
void
activate
()
{
// TODO: initialize messagingService
// TODO: setPayloadSerializer, which is capable of
// (1) serialize ClusterMessage - ClusterMessage.payload
// (2) serialize ClusterMessage.payload using user specified serializer
// messagingService.setPayloadSerializer(...);
messagingService
=
new
NettyMessagingService
(
localNode
.
tcpPort
());
log
.
info
(
"Started"
);
}
...
...
Please
register
or
login
to post a comment