public enum OFStatisticsType extends Enum<OFStatisticsType>
Enum Constant and Description |
---|
AGGREGATE |
DESC |
FLOW |
PORT |
QUEUE |
TABLE |
VENDOR |
Modifier and Type | Field and Description |
---|---|
protected Class<? extends OFStatistics> |
replyClass |
protected Constructor<? extends OFStatistics> |
replyConstructor |
protected Instantiable<OFStatistics> |
replyInstantiable |
protected Class<? extends OFStatistics> |
requestClass |
protected Constructor<? extends OFStatistics> |
requestConstructor |
protected Instantiable<OFStatistics> |
requestInstantiable |
protected short |
type |
Modifier and Type | Method and Description |
---|---|
static void |
addMapping(short i,
OFType t,
OFStatisticsType st)
Adds a mapping from type value to OFStatisticsType enum
|
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) |
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(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.
|
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 VENDOR
protected Class<? extends OFStatistics> requestClass
protected Constructor<? extends OFStatistics> requestConstructor
protected Instantiable<OFStatistics> requestInstantiable
protected Class<? extends OFStatistics> replyClass
protected Constructor<? extends OFStatistics> replyConstructor
protected Instantiable<OFStatistics> replyInstantiable
protected short type
public static OFStatisticsType[] values()
for (OFStatisticsType c : OFStatisticsType.values()) System.out.println(c);
public static OFStatisticsType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- 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_REPLYpublic short getTypeValue()
public Class<? extends OFStatistics> toClass(OFType t)
t
- type of containing OFMessage, only accepts STATS_REQUEST or
STATS_REPLYpublic 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
- Copyright © 2015. All rights reserved.