net.floodlightcontroller.core
Class SwitchSyncRepresentation
java.lang.Object
net.floodlightcontroller.core.SwitchSyncRepresentation
public class SwitchSyncRepresentation
- extends java.lang.Object
Represents a switch in the BigSync store. It works out nicely that we
just need to store the FeaturesReply and the DescriptionStatistics in the
store.
- Author:
- gregor
Constructor Summary |
SwitchSyncRepresentation(IOFSwitch sw)
|
SwitchSyncRepresentation(long dpid,
int buffers,
byte tables,
int capabilities,
int actions,
java.util.List<SwitchSyncRepresentation.SyncedPort> ports,
java.lang.String manufacturerDescription,
java.lang.String hardwareDescription,
java.lang.String softwareDescription,
java.lang.String serialNumber,
java.lang.String datapathDescription)
|
SwitchSyncRepresentation(OFFeaturesReply fr,
OFDescriptionStatistics d,
java.util.List<OFPortDescription> pdl)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SwitchSyncRepresentation
public SwitchSyncRepresentation(long dpid,
int buffers,
byte tables,
int capabilities,
int actions,
java.util.List<SwitchSyncRepresentation.SyncedPort> ports,
java.lang.String manufacturerDescription,
java.lang.String hardwareDescription,
java.lang.String softwareDescription,
java.lang.String serialNumber,
java.lang.String datapathDescription)
- Parameters:
dpid
- buffers
- tables
- capabilities
- actions
- ports
- manufacturerDescription
- hardwareDescription
- softwareDescription
- serialNumber
- datapathDescription
-
SwitchSyncRepresentation
public SwitchSyncRepresentation(IOFSwitch sw)
SwitchSyncRepresentation
public SwitchSyncRepresentation(OFFeaturesReply fr,
OFDescriptionStatistics d,
java.util.List<OFPortDescription> pdl)
getFeaturesReply
public OFFeaturesReply getFeaturesReply()
getDescription
public OFDescriptionStatistics getDescription()
getPortDescriptions
public java.util.List<OFPortDescription> getPortDescriptions()
getDpid
public long getDpid()
getBuffers
public int getBuffers()
getTables
public byte getTables()
getCapabilities
public int getCapabilities()
getActions
public int getActions()
getPorts
public java.util.List<SwitchSyncRepresentation.SyncedPort> getPorts()
getManufacturerDescription
public java.lang.String getManufacturerDescription()
getHardwareDescription
public java.lang.String getHardwareDescription()
getSoftwareDescription
public java.lang.String getSoftwareDescription()
getSerialNumber
public java.lang.String getSerialNumber()
getDatapathDescription
public java.lang.String getDatapathDescription()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object