public interface IOFSwitch
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | IOFSwitch.SwitchType | 
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | PROP_FASTWILDCARDS | 
| static java.lang.String | PROP_REQUIRES_L3_MATCH | 
| static java.lang.String | PROP_SUPPORTS_NETMASK_TBL | 
| static java.lang.String | PROP_SUPPORTS_OFPP_FLOOD | 
| static java.lang.String | PROP_SUPPORTS_OFPP_TABLE | 
| static java.lang.String | SWITCH_DESCRIPTION_DATA | 
| static java.lang.String | SWITCH_DESCRIPTION_FUTURE | 
| static java.lang.String | SWITCH_IS_CORE_SWITCH | 
| static java.lang.String | SWITCH_SUPPORTS_NX_ROLE | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | clearAllFlowMods()Clear all flowmods on this switch | 
| void | deletePort(short portNumber)Delete a port for the switch. | 
| void | deletePort(java.lang.String portName)Delete a port for the switch. | 
| void | deliverFeaturesReply(int xid,
                    org.openflow.protocol.OFFeaturesReply reply)Deliver a feature reply from switch to IOFSwitch object. | 
| void | deliverSwitchStatistics(int xid,
                       java.util.List<org.openflow.protocol.statistics.OFStatistics> m)deliver an switch statistics from switch to IOFSwitch object. | 
| int | getActions()Returns switch features from features Reply | 
| java.lang.Object | getAttribute(java.lang.String name)Set properties for switch specific behavior | 
| java.util.Map<java.lang.Object,java.lang.Object> | getAttributes()Retrieves attributes of this switch | 
| int | getBuffers()Returns switch features from features Reply | 
| int | getCapabilities()Returns switch features from features Reply | 
| java.util.Date | getConnectedSince()Retrieves the date the switch connected to this controller | 
| Connection | getConnection() | 
| org.openflow.protocol.statistics.OFDescriptionStatistics | getDescription()Get the OFDescriptionStatistics object. | 
| java.util.Collection<java.lang.Short> | getEnabledPortNumbers()Get list of the port numbers of all enabled ports. | 
| java.util.Collection<org.openflow.protocol.OFPhysicalPort> | getEnabledPorts()Get list of all enabled ports. | 
| org.openflow.protocol.OFFeaturesReply | getFeaturesReply()query FEATURE_REPLY to the switch. | 
| long | getId()Get the datapathId of the switch | 
| int | getNextTransactionId()Returns the next available transaction id | 
| org.openflow.protocol.OFPhysicalPort | getPort(short portNumber)Retrieve the port object by the port number. | 
| org.openflow.protocol.OFPhysicalPort | getPort(java.lang.String portName)Retrieve the port object by the port name. | 
| java.util.Map<java.lang.Short,java.lang.Long> | getPortBroadcastHits()Get the portBroadcastCacheHits | 
| java.util.Collection<org.openflow.protocol.OFPhysicalPort> | getPorts()Get list of all ports. | 
| IOFHandler.Role | getRole()Get the current role of the controller for the switch | 
| java.lang.String | getStringId()Get a string version of the ID for this switch | 
| java.util.List<org.openflow.protocol.statistics.OFStatistics> | getSwitchStatistics(org.openflow.protocol.OFStatisticsRequest req)query statistics to the switch. | 
| byte | getTables()Returns switch features from features Reply | 
| boolean | hasAttribute(java.lang.String name)Checks if a specific switch property exists for this switch | 
| boolean | isActive()Check if the controller is an active controller for the switch. | 
| boolean | isConnected()Check if the switch is still connected;
 Only call while holding processMessageLock | 
| boolean | portEnabled(org.openflow.protocol.OFPhysicalPort port) | 
| boolean | portEnabled(short portName) | 
| boolean | portEnabled(java.lang.String portName) | 
| java.lang.Object | removeAttribute(java.lang.String name)Set properties for switch specific behavior | 
| void | setAttribute(java.lang.String name,
            java.lang.Object value)Set properties for switch specific behavior | 
| void | setConnection(Connection conn) | 
| void | setFeaturesReply(org.openflow.protocol.OFFeaturesReply featuresReply)Set the OFFeaturesReply message returned by the switch during initial
 handshake. | 
| void | setPort(org.openflow.protocol.OFPhysicalPort port)Add or modify a switch port. | 
| void | setSwitchProperties(org.openflow.protocol.statistics.OFDescriptionStatistics description)Set the SwitchProperties based on it's description | 
| boolean | updateBroadcastCache(java.lang.Long entry,
                    java.lang.Short port)Update broadcast cache | 
static final java.lang.String SWITCH_DESCRIPTION_FUTURE
static final java.lang.String SWITCH_DESCRIPTION_DATA
static final java.lang.String SWITCH_SUPPORTS_NX_ROLE
static final java.lang.String SWITCH_IS_CORE_SWITCH
static final java.lang.String PROP_FASTWILDCARDS
static final java.lang.String PROP_REQUIRES_L3_MATCH
static final java.lang.String PROP_SUPPORTS_OFPP_TABLE
static final java.lang.String PROP_SUPPORTS_OFPP_FLOOD
static final java.lang.String PROP_SUPPORTS_NETMASK_TBL
void setConnection(Connection conn)
Connection getConnection()
int getBuffers()
int getActions()
int getCapabilities()
byte getTables()
void setFeaturesReply(org.openflow.protocol.OFFeaturesReply featuresReply)
featuresReply - void setSwitchProperties(org.openflow.protocol.statistics.OFDescriptionStatistics description)
description - java.util.Collection<org.openflow.protocol.OFPhysicalPort> getEnabledPorts()
java.util.Collection<java.lang.Short> getEnabledPortNumbers()
org.openflow.protocol.OFPhysicalPort getPort(short portNumber)
portNumber - org.openflow.protocol.OFPhysicalPort getPort(java.lang.String portName)
portName - void setPort(org.openflow.protocol.OFPhysicalPort port)
port - void deletePort(short portNumber)
portNumber - void deletePort(java.lang.String portName)
portName - java.util.Collection<org.openflow.protocol.OFPhysicalPort> getPorts()
boolean portEnabled(short portName)
portName - boolean portEnabled(java.lang.String portName)
portNumber - boolean portEnabled(org.openflow.protocol.OFPhysicalPort port)
port - long getId()
org.openflow.protocol.statistics.OFDescriptionStatistics getDescription()
java.lang.String getStringId()
java.util.Map<java.lang.Object,java.lang.Object> getAttributes()
java.util.Date getConnectedSince()
int getNextTransactionId()
boolean isConnected()
IOFHandler.Role getRole()
boolean isActive()
boolean hasAttribute(java.lang.String name)
name - name of propertyjava.lang.Object getAttribute(java.lang.String name)
name - name of propertyvoid setAttribute(java.lang.String name,
                java.lang.Object value)
name - name of propertyvalue - value for namejava.lang.Object removeAttribute(java.lang.String name)
name - name of propertyboolean clearAllFlowMods()
boolean updateBroadcastCache(java.lang.Long entry,
                           java.lang.Short port)
data - java.util.Map<java.lang.Short,java.lang.Long> getPortBroadcastHits()
java.util.List<org.openflow.protocol.statistics.OFStatistics> getSwitchStatistics(org.openflow.protocol.OFStatisticsRequest req)
req - void deliverSwitchStatistics(int xid,
                           java.util.List<org.openflow.protocol.statistics.OFStatistics> m)
xid - m - OFStatistics objectsorg.openflow.protocol.OFFeaturesReply getFeaturesReply()
void deliverFeaturesReply(int xid,
                        org.openflow.protocol.OFFeaturesReply reply)
xid - reply -