public final class NodeInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static NodeInfo |
from(String id,
String ip,
int port)
Creates a new instance.
|
String |
getId()
Returns node id.
|
String |
getIp()
Returns node ip.
|
int |
getTcpPort()
Returns node port.
|
int |
hashCode() |
static NodeInfo |
of(org.onosproject.cluster.ControllerNode node)
Returns the NodeInfo for a controller node.
|
String |
toString() |
public static NodeInfo from(String id, String ip, int port)
id - node idip - node ip addressport - tcp portpublic static NodeInfo of(org.onosproject.cluster.ControllerNode node)
node - controller nodepublic String getId()
public String getIp()
public int getTcpPort()
Copyright © 2015. All rights reserved.