Interface OpenFlowService
-
- All Superinterfaces:
org.onosproject.event.ListenerService<OpenFlowEvent,OpenFlowListener>
public interface OpenFlowService extends org.onosproject.event.ListenerService<OpenFlowEvent,OpenFlowListener>
Abstraction of an OpenFlow classifiers management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(OpenFlowClassifier classifier)Adds the OpenFlow classifier to the information base.java.util.Set<OpenFlowClassifier>getClassifiers()Gets all OpenFlow classifiers in the system.java.util.Set<OpenFlowClassifier>getClassifiersByDeviceId(org.onosproject.net.DeviceId deviceId)Obtains OpenFlow classifiers in the system by device id.java.util.Set<OpenFlowClassifier>getClassifiersByDeviceIdAndQueue(org.onosproject.net.DeviceId deviceId, int idQueue)Obtains OpenFlow classifiers in the system by device id and number of queue.voidremove(OpenFlowClassifier classifier)Removes the OpenFlow classifier from the information base.
-
-
-
Method Detail
-
add
void add(OpenFlowClassifier classifier)
Adds the OpenFlow classifier to the information base.- Parameters:
classifier- the OpenFlow classifier
-
remove
void remove(OpenFlowClassifier classifier)
Removes the OpenFlow classifier from the information base.- Parameters:
classifier- classifier to remove
-
getClassifiers
java.util.Set<OpenFlowClassifier> getClassifiers()
Gets all OpenFlow classifiers in the system.- Returns:
- set of OpenFlow classifiers
-
getClassifiersByDeviceId
java.util.Set<OpenFlowClassifier> getClassifiersByDeviceId(org.onosproject.net.DeviceId deviceId)
Obtains OpenFlow classifiers in the system by device id.- Parameters:
deviceId- the device id- Returns:
- set of OpenFlow classifiers
-
getClassifiersByDeviceIdAndQueue
java.util.Set<OpenFlowClassifier> getClassifiersByDeviceIdAndQueue(org.onosproject.net.DeviceId deviceId, int idQueue)
Obtains OpenFlow classifiers in the system by device id and number of queue.- Parameters:
deviceId- the device ididQueue- the queue id- Returns:
- set of OpenFlow classifiers
-
-