public class DataPathInfoAdapter extends Object implements DataPathInfo
DataPathInfo API, provided specifically for
unit tests to use, to insulate themselves from changes in the API.| Constructor and Description |
|---|
DataPathInfoAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Set<Capability> |
capabilities()
Returns the capabilities supported by the switch.
|
String |
dpDesc()
Returns the datapath description
|
DataPathId |
dpid()
Returns the datapath identifier.
|
long |
lastMessageAt()
Returns the time of the last message received from the datapath
(on any connection).
|
ProtocolVersion |
negotiated()
Returns the version of the OpenFlow protocol that the datapath
has negotiated with the controller, via the exchange of Hello
messages (on the "main" connection).
|
long |
numBuffers()
Returns the maximum number of packets the switch can buffer at once.
|
int |
numTables()
Returns the number of tables supported by the switch.
|
List<Port> |
ports()
Returns the current known state of all the OpenFlow ports on
the datapath.
|
long |
readyAt()
Returns the time at which the datapath completed the handshake
with the controller (on the "main" connection).
|
IpAddress |
remoteAddress()
Returns the IP address of the switch (on the "main" connection).
|
PortNumber |
remotePort()
Returns the TCP port for the switch's "main" connection.
|
void |
setDpDesc(String desc)
Set the datapath description
|
public DataPathId dpid()
DataPathInfodpid in interface DataPathInfopublic ProtocolVersion negotiated()
DataPathInfonegotiated in interface DataPathInfopublic long readyAt()
DataPathInforeadyAt in interface DataPathInfopublic long lastMessageAt()
DataPathInfolastMessageAt in interface DataPathInfopublic List<Port> ports()
DataPathInfoports in interface DataPathInfopublic long numBuffers()
DataPathInfonumBuffers in interface DataPathInfopublic int numTables()
DataPathInfonumTables in interface DataPathInfopublic Set<Capability> capabilities()
DataPathInfocapabilities in interface DataPathInfopublic IpAddress remoteAddress()
DataPathInforemoteAddress in interface DataPathInfopublic PortNumber remotePort()
DataPathInforemotePort in interface DataPathInfopublic String dpDesc()
DataPathInfodpDesc in interface DataPathInfopublic void setDpDesc(String desc)
DataPathInfosetDpDesc in interface DataPathInfodesc - the descriptionCopyright © 2014. All Rights Reserved.