org.openflow.protocol.statistics
Enum OFStatisticsType

java.lang.Object
  extended by java.lang.Enum<OFStatisticsType>
      extended by org.openflow.protocol.statistics.OFStatisticsType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OFStatisticsType>

public enum OFStatisticsType
extends java.lang.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

DESC

public static final OFStatisticsType DESC

FLOW

public static final OFStatisticsType FLOW

AGGREGATE

public static final OFStatisticsType AGGREGATE

TABLE

public static final OFStatisticsType TABLE

PORT

public static final OFStatisticsType PORT

QUEUE

public static final OFStatisticsType QUEUE

GROUP

public static final OFStatisticsType GROUP

GROUP_DESC

public static final OFStatisticsType GROUP_DESC

GROUP_FEATURES

public static final OFStatisticsType GROUP_FEATURES

METER

public static final OFStatisticsType METER

METER_CONFIG

public static final OFStatisticsType METER_CONFIG

METER_FEATURES

public static final OFStatisticsType METER_FEATURES

TABLE_FEATURES

public static final OFStatisticsType TABLE_FEATURES

PORT_DESC

public static final OFStatisticsType PORT_DESC

VENDOR

public static final OFStatisticsType VENDOR
Field Detail

requestClass

protected java.lang.Class<? extends OFStatistics> requestClass

requestConstructor

protected java.lang.reflect.Constructor<? extends OFStatistics> requestConstructor

requestInstantiable

protected Instantiable<OFStatistics> requestInstantiable

replyClass

protected java.lang.Class<? extends OFStatistics> replyClass

replyConstructor

protected java.lang.reflect.Constructor<? extends OFStatistics> replyConstructor

replyInstantiable

protected Instantiable<OFStatistics> replyInstantiable

type

protected short type
Method Detail

values

public static OFStatisticsType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (OFStatisticsType c : OFStatisticsType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OFStatisticsType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

addMapping

public static void addMapping(short i,
                              OFType t,
                              OFStatisticsType st)
Adds a mapping from type value to OFStatisticsType enum

Parameters:
i - OpenFlow wire protocol type
t - type of containing OFMessage, only accepts STATS_REQUEST or STATS_REPLY
st - type

removeMapping

public static void removeMapping(short i,
                                 OFType t)
Remove a mapping from type value to OFStatisticsType enum

Parameters:
i - OpenFlow wire protocol type
t - type of containing OFMessage, only accepts STATS_REQUEST or STATS_REPLY

valueOf

public static OFStatisticsType valueOf(short i,
                                       OFType t)
Given a wire protocol OpenFlow type number, return the OFStatisticsType associated with it

Parameters:
i - wire protocol number
t - type of containing OFMessage, only accepts STATS_REQUEST or STATS_REPLY
Returns:
OFStatisticsType enum type

getTypeValue

public short getTypeValue()
Returns:
Returns the wire protocol value corresponding to this OFStatisticsType

toClass

public java.lang.Class<? extends OFStatistics> toClass(OFType t)
Parameters:
t - type of containing OFMessage, only accepts STATS_REQUEST or STATS_REPLY
Returns:
return the OFMessage subclass corresponding to this OFStatisticsType

getConstructor

public 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

Parameters:
t -
Returns:

getRequestInstantiable

public Instantiable<OFStatistics> getRequestInstantiable()
Returns:
the requestInstantiable

setRequestInstantiable

public void setRequestInstantiable(Instantiable<OFStatistics> requestInstantiable)
Parameters:
requestInstantiable - the requestInstantiable to set

getReplyInstantiable

public Instantiable<OFStatistics> getReplyInstantiable()
Returns:
the replyInstantiable

setReplyInstantiable

public void setReplyInstantiable(Instantiable<OFStatistics> replyInstantiable)
Parameters:
replyInstantiable - the replyInstantiable to set

newInstance

public OFStatistics newInstance(OFType t)
Returns a new instance of the implementation class for this OFStatisticsType, either request or reply based on the supplied OFType

Parameters:
t -
Returns: