|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OFType>
org.openflow.protocol.OFType
public enum OFType
List of OpenFlow types and mappings to wire protocol value and derived classes
| Field Summary | |
|---|---|
protected java.lang.Class<? extends OFMessage> |
clazz
|
protected java.lang.reflect.Constructor<? extends OFMessage> |
constructor
|
protected Instantiable<OFMessage> |
instantiable
|
protected static org.slf4j.Logger |
log
|
protected byte |
type
|
| Method Summary | |
|---|---|
static void |
addMapping(byte i,
OFType t)
Adds a mapping from type value to OFType enum |
java.lang.reflect.Constructor<? extends OFMessage> |
getConstructor()
Returns the no-argument Constructor of the implementation class for this OFType |
Instantiable<OFMessage> |
getInstantiable()
|
byte |
getTypeValue()
|
OFMessage |
newInstance()
Returns a new instance of the OFMessage represented by this OFType |
static void |
removeMapping(byte i)
Remove a mapping from type value to OFType enum |
void |
setInstantiable(Instantiable<OFMessage> instantiable)
|
java.lang.Class<? extends OFMessage> |
toClass()
|
static OFType |
valueOf(java.lang.Byte i)
Given a wire protocol OpenFlow type number, return the OFType associated with it |
static OFType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OFType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OFType HELLO
public static final OFType ERROR
public static final OFType ECHO_REQUEST
public static final OFType ECHO_REPLY
public static final OFType VENDOR
public static final OFType FEATURES_REQUEST
public static final OFType FEATURES_REPLY
public static final OFType GET_CONFIG_REQUEST
public static final OFType GET_CONFIG_REPLY
public static final OFType SET_CONFIG
public static final OFType PACKET_IN
public static final OFType FLOW_REMOVED
public static final OFType PORT_STATUS
public static final OFType PACKET_OUT
public static final OFType FLOW_MOD
public static final OFType GROUP_MOD
public static final OFType PORT_MOD
public static final OFType TABLE_MOD
public static final OFType STATS_REQUEST
public static final OFType STATS_REPLY
public static final OFType BARRIER_REQUEST
public static final OFType BARRIER_REPLY
public static final OFType QUEUE_GET_CONFIG_REQUEST
public static final OFType QUEUE_GET_CONFIG_REPLY
public static final OFType ROLE_REQUEST
public static final OFType ROLE_REPLY
public static final OFType METER_MOD
| Field Detail |
|---|
protected static org.slf4j.Logger log
protected java.lang.Class<? extends OFMessage> clazz
protected java.lang.reflect.Constructor<? extends OFMessage> constructor
protected Instantiable<OFMessage> instantiable
protected byte type
| Method Detail |
|---|
public static OFType[] values()
for (OFType c : OFType.values()) System.out.println(c);
public static OFType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public static void addMapping(byte i,
OFType t)
i - OpenFlow wire protocol typet - typepublic static void removeMapping(byte i)
i - OpenFlow wire protocol typepublic static OFType valueOf(java.lang.Byte i)
i - wire protocol number
public byte getTypeValue()
public java.lang.Class<? extends OFMessage> toClass()
public java.lang.reflect.Constructor<? extends OFMessage> getConstructor()
public OFMessage newInstance()
public Instantiable<OFMessage> getInstantiable()
public void setInstantiable(Instantiable<OFMessage> instantiable)
instantiable - the instantiable to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||