Class OpenFlowClassifierConfig
- java.lang.Object
-
- org.onosproject.net.config.Config<org.onosproject.net.DeviceId>
-
- org.onosproject.openflow.controller.OpenFlowClassifierConfig
-
public class OpenFlowClassifierConfig extends org.onosproject.net.config.Config<org.onosproject.net.DeviceId>Configuration for classifiers.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringETHER_TYPEstatic java.lang.StringTARGET_QUEUE
-
Constructor Summary
Constructors Constructor Description OpenFlowClassifierConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClassifier(OpenFlowClassifier classf)Adds a classifier to the config.java.util.Set<OpenFlowClassifier>getClassifiers()Retrieves all classifiers configured on this port.booleanisValid()voidremoveClassifier(OpenFlowClassifier classf)Removes a classifier from the config.-
Methods inherited from class org.onosproject.net.config.Config
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject, toString
-
-
-
-
Field Detail
-
TARGET_QUEUE
public static final java.lang.String TARGET_QUEUE
- See Also:
- Constant Field Values
-
ETHER_TYPE
public static final java.lang.String ETHER_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
public boolean isValid()
- Overrides:
isValidin classorg.onosproject.net.config.Config<org.onosproject.net.DeviceId>
-
getClassifiers
public java.util.Set<OpenFlowClassifier> getClassifiers()
Retrieves all classifiers configured on this port.- Returns:
- set of classifiers
-
addClassifier
public void addClassifier(OpenFlowClassifier classf)
Adds a classifier to the config.- Parameters:
classf- classifier to add
-
removeClassifier
public void removeClassifier(OpenFlowClassifier classf)
Removes a classifier from the config.- Parameters:
classf- classifier to remove
-
-