public class FlowClassRegistrator extends Object
Constructor and Description |
---|
FlowClassRegistrator(String id,
String passwd,
String description)
Creates the registrator for the given flow class id.
|
Modifier and Type | Method and Description |
---|---|
FlowClassRegistrator |
actions(FlowClass.ActionClass... actions)
Sets the specified flow mod action types to be registered.
|
FlowClassRegistrator |
fields(OxmFieldType... fields)
Sets the specified match field types to be registered.
|
FlowClassRegistrator |
higherIds(String... higherIds)
Sets the specified higher priority flow class IDs.
|
FlowClassRegistrator |
lowerIds(String... lowerIds)
Sets the specified lower priority flow class IDs.
|
FlowClass |
register(ControllerService cs)
Issues registration request to the supplied controller service and
returns the resulting flow class descriptor.
|
public FlowClassRegistrator(String id, String passwd, String description)
id
- flow class idpasswd
- a secret key used to allow repeat registrations and
unregistrations without the original flow classdescription
- flow class descriptionpublic FlowClass register(ControllerService cs)
cs
- controller service with which to registerpublic FlowClassRegistrator lowerIds(String... lowerIds)
lowerIds
- list of flow class IDs to be lower than this onepublic FlowClassRegistrator higherIds(String... higherIds)
higherIds
- list of flow class IDs to be higher than this onepublic FlowClassRegistrator fields(OxmFieldType... fields)
fields
- list of match field types to be registeredpublic FlowClassRegistrator actions(FlowClass.ActionClass... actions)
actions
- list of flow mod actions to be registeredCopyright © 2015. All Rights Reserved.