tom | 1d416c5 | 2014-09-29 20:55:24 -0700 | [diff] [blame] | 1 | package org.onlab.onos.store.cluster.messaging; |
| 2 | |
| 3 | import org.onlab.onos.cluster.NodeId; |
| 4 | import org.onlab.packet.IpPrefix; |
| 5 | |
| 6 | /** |
| 7 | * Hello message that nodes use to greet each other. |
| 8 | */ |
tom | 28e1fa2 | 2014-09-30 10:38:21 -0700 | [diff] [blame] | 9 | public class HelloMessage extends ClusterMembershipMessage { |
tom | 1d416c5 | 2014-09-29 20:55:24 -0700 | [diff] [blame] | 10 | |
| 11 | // For serialization |
| 12 | private HelloMessage() { |
tom | 1d416c5 | 2014-09-29 20:55:24 -0700 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Creates a new hello message for the specified end-point data. |
| 17 | * |
| 18 | * @param nodeId sending node identification |
| 19 | * @param ipAddress sending node IP address |
| 20 | * @param tcpPort sending node TCP port |
| 21 | */ |
| 22 | public HelloMessage(NodeId nodeId, IpPrefix ipAddress, int tcpPort) { |
tom | 28e1fa2 | 2014-09-30 10:38:21 -0700 | [diff] [blame] | 23 | super(MessageSubject.HELLO, nodeId, ipAddress, tcpPort); |
tom | 1d416c5 | 2014-09-29 20:55:24 -0700 | [diff] [blame] | 24 | } |
tom | 8158314 | 2014-09-30 01:40:29 -0700 | [diff] [blame] | 25 | |
tom | 1d416c5 | 2014-09-29 20:55:24 -0700 | [diff] [blame] | 26 | } |