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 |
---|---|
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
|
java.util.Date |
getConnectedSince()
Retrieves the date the switch connected to this controller
|
Connection |
getConnection() |
long |
getId()
Get the datapathId of the switch
|
int |
getNextTransactionId()
Returns the next available transaction id
|
java.util.Map<java.lang.Short,java.lang.Long> |
getPortBroadcastHits()
Get the portBroadcastCacheHits
|
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
|
byte |
getVersion()
Get the version of the switch
|
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
|
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 |
setId(long id)
Set the datapath id of the switch
|
void |
setVersion(byte version)
Set the version of the switch
|
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()
long getId()
void setId(long id)
id
- datapath id (long)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 updateBroadcastCache(java.lang.Long entry, java.lang.Short port)
entry
- Longport
- Shortjava.util.Map<java.lang.Short,java.lang.Long> getPortBroadcastHits()
byte getVersion()
void setVersion(byte version)
version
- version number (byte)