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 |
datapathDescription()
Returns a textual description of the datapath.
|
String |
deviceTypeName()
Returns the type name of the device.
|
DataPathId |
dpid()
Returns the datapath identifier.
|
String |
hardwareDescription()
Returns a description of the hardware.
|
long |
lastMessageAt()
Returns the time of the last message received from the datapath
(on any connection).
|
String |
manufacturerDescription()
Returns a description of the manufacturer.
|
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.
|
String |
serialNumber()
Returns the serial number.
|
String |
softwareDescription()
Returns a description of the software.
|
public DataPathId dpid()
DataPathInfo
dpid
in interface DataPathInfo
public ProtocolVersion negotiated()
DataPathInfo
negotiated
in interface DataPathInfo
public long readyAt()
DataPathInfo
readyAt
in interface DataPathInfo
public long lastMessageAt()
DataPathInfo
lastMessageAt
in interface DataPathInfo
public List<Port> ports()
DataPathInfo
ports
in interface DataPathInfo
public long numBuffers()
DataPathInfo
numBuffers
in interface DataPathInfo
public int numTables()
DataPathInfo
numTables
in interface DataPathInfo
public Set<Capability> capabilities()
DataPathInfo
capabilities
in interface DataPathInfo
public IpAddress remoteAddress()
DataPathInfo
remoteAddress
in interface DataPathInfo
public PortNumber remotePort()
DataPathInfo
remotePort
in interface DataPathInfo
public String datapathDescription()
DataPathInfo
datapathDescription
in interface DataPathInfo
public String manufacturerDescription()
DataPathInfo
manufacturerDescription
in interface DataPathInfo
public String hardwareDescription()
DataPathInfo
hardwareDescription
in interface DataPathInfo
public String softwareDescription()
DataPathInfo
softwareDescription
in interface DataPathInfo
public String serialNumber()
DataPathInfo
serialNumber
in interface DataPathInfo
public String deviceTypeName()
DataPathInfo
deviceTypeName
in interface DataPathInfo
Copyright © 2015. All Rights Reserved.