Modifier and Type | Class and Description |
---|---|
static class |
OFPhysicalPort.OFPortConfig |
static class |
OFPhysicalPort.OFPortFeatures |
static class |
OFPhysicalPort.OFPortState |
Modifier and Type | Field and Description |
---|---|
protected int |
advertisedFeatures |
protected int |
config |
protected int |
currentFeatures |
protected byte[] |
hardwareAddress |
static int |
MINIMUM_LENGTH |
protected String |
name |
static int |
OFP_ETH_ALEN |
protected int |
peerFeatures |
protected short |
portNumber |
protected int |
state |
protected int |
supportedFeatures |
Constructor and Description |
---|
OFPhysicalPort() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getAdvertisedFeatures() |
int |
getConfig() |
int |
getCurrentFeatures() |
byte[] |
getHardwareAddress() |
String |
getName() |
int |
getPeerFeatures() |
short |
getPortNumber() |
int |
getState() |
int |
getSupportedFeatures() |
int |
hashCode() |
void |
readFrom(org.jboss.netty.buffer.ChannelBuffer data)
Read this message off the wire from the specified ByteBuffer
|
void |
setAdvertisedFeatures(int advertisedFeatures) |
void |
setConfig(int config) |
void |
setCurrentFeatures(int currentFeatures) |
void |
setHardwareAddress(byte[] hardwareAddress) |
void |
setName(String name) |
void |
setPeerFeatures(int peerFeatures) |
void |
setPortNumber(short portNumber) |
void |
setState(int state) |
void |
setSupportedFeatures(int supportedFeatures) |
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Write this message's binary format to the specified ByteBuffer
|
public static int MINIMUM_LENGTH
public static int OFP_ETH_ALEN
protected short portNumber
protected byte[] hardwareAddress
protected String name
protected int config
protected int state
protected int currentFeatures
protected int advertisedFeatures
protected int supportedFeatures
protected int peerFeatures
public short getPortNumber()
public void setPortNumber(short portNumber)
portNumber
- the portNumber to setpublic byte[] getHardwareAddress()
public void setHardwareAddress(byte[] hardwareAddress)
hardwareAddress
- the hardwareAddress to setpublic String getName()
public void setName(String name)
name
- the name to setpublic int getConfig()
public void setConfig(int config)
config
- the config to setpublic int getState()
public void setState(int state)
state
- the state to setpublic int getCurrentFeatures()
public void setCurrentFeatures(int currentFeatures)
currentFeatures
- the currentFeatures to setpublic int getAdvertisedFeatures()
public void setAdvertisedFeatures(int advertisedFeatures)
advertisedFeatures
- the advertisedFeatures to setpublic int getSupportedFeatures()
public void setSupportedFeatures(int supportedFeatures)
supportedFeatures
- the supportedFeatures to setpublic int getPeerFeatures()
public void setPeerFeatures(int peerFeatures)
peerFeatures
- the peerFeatures to setpublic void readFrom(org.jboss.netty.buffer.ChannelBuffer data)
data
- public void writeTo(org.jboss.netty.buffer.ChannelBuffer data)
data
- Copyright © 2015. All rights reserved.