public final class Instance extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATE_TIME |
static String |
NETWORK_ID |
static String |
NETWORK_TYPE |
static String |
ORIGINAL_HOST_ID |
static String |
PORT_ID |
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.DeviceId |
deviceId()
Returns device ID of this host.
|
String |
getAnnotation(String annotationKey)
Returns annotation value with a given key.
|
org.onosproject.net.Host |
host()
Returns host object of this instance.
|
org.onlab.packet.Ip4Address |
ipAddress()
Returns IP address of this instance.
|
boolean |
isAdditionalInstance()
Returns if the instance is original instance or additional one.
|
org.onlab.packet.MacAddress |
mac()
Returns MAC address of this instance.
|
NetworkId |
netId()
Returns network ID of a given host.
|
ServiceNetwork.NetworkType |
netType()
Returns network type of a given host.
|
static Instance |
of(org.onosproject.net.Host host)
Returns new instance.
|
PortId |
portId()
Returns port ID of a given host.
|
org.onosproject.net.PortNumber |
portNumber()
Returns the port number where this host is.
|
String |
toString() |
public static final String NETWORK_ID
public static final String NETWORK_TYPE
public static final String PORT_ID
public static final String ORIGINAL_HOST_ID
public static final String CREATE_TIME
public org.onosproject.net.Host host()
public static Instance of(org.onosproject.net.Host host)
host - host object of this instancepublic NetworkId netId()
public ServiceNetwork.NetworkType netType()
public PortId portId()
public boolean isAdditionalInstance()
public org.onlab.packet.MacAddress mac()
public org.onlab.packet.Ip4Address ipAddress()
public org.onosproject.net.DeviceId deviceId()
public org.onosproject.net.PortNumber portNumber()
public String getAnnotation(String annotationKey)
annotationKey - annotation keyCopyright © 2018. All rights reserved.