|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OFStatisticsType>
org.openflow.protocol.statistics.OFStatisticsType
public enum OFStatisticsType
Enum Constant Summary | |
---|---|
AGGREGATE
|
|
DESC
|
|
FLOW
|
|
GROUP
|
|
GROUP_DESC
|
|
GROUP_FEATURES
|
|
METER
|
|
METER_CONFIG
|
|
METER_FEATURES
|
|
PORT
|
|
PORT_DESC
|
|
QUEUE
|
|
TABLE
|
|
TABLE_FEATURES
|
|
VENDOR
|
Field Summary | |
---|---|
protected java.lang.Class<? extends OFStatistics> |
replyClass
|
protected java.lang.reflect.Constructor<? extends OFStatistics> |
replyConstructor
|
protected Instantiable<OFStatistics> |
replyInstantiable
|
protected java.lang.Class<? extends OFStatistics> |
requestClass
|
protected java.lang.reflect.Constructor<? extends OFStatistics> |
requestConstructor
|
protected Instantiable<OFStatistics> |
requestInstantiable
|
protected short |
type
|
Method Summary | |
---|---|
static void |
addMapping(short i,
OFType t,
OFStatisticsType st)
Adds a mapping from type value to OFStatisticsType enum |
java.lang.reflect.Constructor<? extends OFStatistics> |
getConstructor(OFType t)
Returns the no-argument Constructor of the implementation class for this OFStatisticsType, either request or reply based on the supplied OFType |
Instantiable<OFStatistics> |
getReplyInstantiable()
|
Instantiable<OFStatistics> |
getRequestInstantiable()
|
short |
getTypeValue()
|
OFStatistics |
newInstance(OFType t)
Returns a new instance of the implementation class for this OFStatisticsType, either request or reply based on the supplied OFType |
static void |
removeMapping(short i,
OFType t)
Remove a mapping from type value to OFStatisticsType enum |
void |
setReplyInstantiable(Instantiable<OFStatistics> replyInstantiable)
|
void |
setRequestInstantiable(Instantiable<OFStatistics> requestInstantiable)
|
java.lang.Class<? extends OFStatistics> |
toClass(OFType t)
|
static OFStatisticsType |
valueOf(short i,
OFType t)
Given a wire protocol OpenFlow type number, return the OFStatisticsType associated with it |
static OFStatisticsType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static OFStatisticsType[] |
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 OFStatisticsType DESC
public static final OFStatisticsType FLOW
public static final OFStatisticsType AGGREGATE
public static final OFStatisticsType TABLE
public static final OFStatisticsType PORT
public static final OFStatisticsType QUEUE
public static final OFStatisticsType GROUP
public static final OFStatisticsType GROUP_DESC
public static final OFStatisticsType GROUP_FEATURES
public static final OFStatisticsType METER
public static final OFStatisticsType METER_CONFIG
public static final OFStatisticsType METER_FEATURES
public static final OFStatisticsType TABLE_FEATURES
public static final OFStatisticsType PORT_DESC
public static final OFStatisticsType VENDOR
Field Detail |
---|
protected java.lang.Class<? extends OFStatistics> requestClass
protected java.lang.reflect.Constructor<? extends OFStatistics> requestConstructor
protected Instantiable<OFStatistics> requestInstantiable
protected java.lang.Class<? extends OFStatistics> replyClass
protected java.lang.reflect.Constructor<? extends OFStatistics> replyConstructor
protected Instantiable<OFStatistics> replyInstantiable
protected short type
Method Detail |
---|
public static OFStatisticsType[] values()
for (OFStatisticsType c : OFStatisticsType.values()) System.out.println(c);
public static OFStatisticsType 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 nullpublic static void addMapping(short i, OFType t, OFStatisticsType st)
i
- OpenFlow wire protocol typet
- type of containing OFMessage, only accepts STATS_REQUEST or
STATS_REPLYst
- typepublic static void removeMapping(short i, OFType t)
i
- OpenFlow wire protocol typet
- type of containing OFMessage, only accepts STATS_REQUEST or
STATS_REPLYpublic static OFStatisticsType valueOf(short i, OFType t)
i
- wire protocol numbert
- type of containing OFMessage, only accepts STATS_REQUEST or
STATS_REPLY
public short getTypeValue()
public java.lang.Class<? extends OFStatistics> toClass(OFType t)
t
- type of containing OFMessage, only accepts STATS_REQUEST or
STATS_REPLY
public java.lang.reflect.Constructor<? extends OFStatistics> getConstructor(OFType t)
t
-
public Instantiable<OFStatistics> getRequestInstantiable()
public void setRequestInstantiable(Instantiable<OFStatistics> requestInstantiable)
requestInstantiable
- the requestInstantiable to setpublic Instantiable<OFStatistics> getReplyInstantiable()
public void setReplyInstantiable(Instantiable<OFStatistics> replyInstantiable)
replyInstantiable
- the replyInstantiable to setpublic OFStatistics newInstance(OFType t)
t
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |