public class LinkDTO extends Object implements Link, Serializable
Link.| Constructor and Description |
|---|
LinkDTO(ConnectionPoint linkSrc,
ConnectionPoint linkDst,
LinkInfo linkInfo)
Creates a DTO representing a link between two
connection points. |
LinkDTO(DataPathId srcDpid,
BigPortNumber srcPort,
ConnectionPoint.Type srcType,
DataPathId dstDpid,
BigPortNumber dstPort,
ConnectionPoint.Type dstType,
LinkInfo linkInfo)
Creates a DTO representing a link between two
connection points. |
| Modifier and Type | Method and Description |
|---|---|
ConnectionPoint |
dst()
Returns the destination
connection point of the
referred link. |
boolean |
equals(Object obj) |
int |
hashCode() |
LinkInfo |
info()
Returns the optional
link information associated with
the link. |
ConnectionPoint |
src()
Returns the source
connection point of the
referred link. |
String |
toKeyString() |
String |
toString() |
void |
updateLinkInfo(LinkInfo linkInfo)
Updates the
link information of the link. |
static LinkDTO |
valueOf(String sLink) |
public LinkDTO(ConnectionPoint linkSrc, ConnectionPoint linkDst, LinkInfo linkInfo)
connection points.
Optional information may be associated,
which describes the link status and the time of discovery.linkSrc - the source connection pointlinkDst - the destination connection pointlinkInfo - the associated information (optional)NullPointerException - if linkSrc or linkDst is nullpublic LinkDTO(DataPathId srcDpid, BigPortNumber srcPort, ConnectionPoint.Type srcType, DataPathId dstDpid, BigPortNumber dstPort, ConnectionPoint.Type dstType, LinkInfo linkInfo)
connection points. The arguments define
the connection points as a <switch,port> tuple.
Optional information may be associated,
which describes the link status and the time of discovery.srcDpid - the source datapathsrcPort - the source portsrcType - the source connection point typedstDpid - the destination datapathdstPort - the destination portdstType - the destination connection point typelinkInfo - the associated information (optional)NullPointerException - if any parameter (except linkInfo) is nullpublic ConnectionPoint src()
Linkconnection point of the
referred link.public ConnectionPoint dst()
Linkconnection point of the
referred link.public LinkInfo info()
Linklink information associated with
the link. It describes the link status and the time of discovery of the
linkpublic void updateLinkInfo(LinkInfo linkInfo)
Linklink information of the link. It describes
the link status and the time of discovery of the linkupdateLinkInfo in interface LinklinkInfo - the information to be associated with the referred linkpublic String toKeyString()
Copyright © 2014. All Rights Reserved.