public interface FlowClassAdministrator
Modifier and Type | Interface and Description |
---|---|
static class |
FlowClassAdministrator.EnforcementLevel |
Modifier and Type | Method and Description |
---|---|
FlowClassAdministrator.EnforcementLevel |
enforcementLevel()
Indicates the level of flow mod enforcement to indicate whether
flow mod registrations are being enforced and flow mods are being
inspected for compliance.
|
Collection<FlowClassConstraints> |
getAllConstraints()
Returns all flow class constraints added via via
setConstraints(java.lang.String, long, com.hp.of.ctl.prio.FlowClassConstraints.Type, java.util.Set<java.lang.String>, java.util.Set<java.lang.String>) . |
FlowClassConstraints |
getConstraints(String id)
Returns set of constraints added via via
setConstraints(java.lang.String, long, com.hp.of.ctl.prio.FlowClassConstraints.Type, java.util.Set<java.lang.String>, java.util.Set<java.lang.String>) for
the specified flow class. |
FlowClass |
getPlaceholder(String id)
Gets the temporary placeholder flow class, if one exists, for the
specified flow class id.
|
FlowClass |
registerPlaceholder(String id,
Set<String> lowerIds,
Set<String> higherIds)
Registers a placeholder flow class using the supplied positional hints.
|
void |
removeConstraints(String id)
Removes the relative positioning constraints for the specified flow
mod class.
|
void |
setConstraints(String id,
long baseCookie,
FlowClassConstraints.Type type,
Set<String> lowerIds,
Set<String> higherIds)
Sets the relative positioning constraints for the flow mod class
identified by its globally unique id.
|
void |
setConstraints(String id,
long baseCookie,
int actualPriority)
Sets the absolute priority constraint for the flow mod class
identified by its globally unique id.
|
void |
setEnforcementLevel(FlowClassAdministrator.EnforcementLevel level)
Sets the enforcement level.
|
void |
setPlaceholder(String id,
long baseCookie,
int actualPriority)
Sets the placeholder constraint for the flow mod class identified by
its globally unique id.
|
FlowClassAdministrator.EnforcementLevel enforcementLevel()
void setEnforcementLevel(FlowClassAdministrator.EnforcementLevel level)
level
- level of registration and flow mod validationCollection<FlowClassConstraints> getAllConstraints()
setConstraints(java.lang.String, long, com.hp.of.ctl.prio.FlowClassConstraints.Type, java.util.Set<java.lang.String>, java.util.Set<java.lang.String>)
.FlowClassConstraints getConstraints(String id)
setConstraints(java.lang.String, long, com.hp.of.ctl.prio.FlowClassConstraints.Type, java.util.Set<java.lang.String>, java.util.Set<java.lang.String>)
for
the specified flow class.id
- flow class identifiervoid setConstraints(String id, long baseCookie, FlowClassConstraints.Type type, Set<String> lowerIds, Set<String> higherIds)
id
- flow class identifierbaseCookie
- assigned cookie; -1 if cookie is not to be overridentype
- indicates whether constraints should be merged or
replacedlowerIds
- optional set of flow class ids whose actual priorities
should be below this onehigherIds
- optional set of flow class ids whose actual priorities
should be above this onevoid setConstraints(String id, long baseCookie, int actualPriority)
id
- flow class identifierbaseCookie
- assigned cookie; -1 if cookie is not to be overridenactualPriority
- actual absolute priority value to assignvoid removeConstraints(String id)
id
- flow class identifierFlowClass registerPlaceholder(String id, Set<String> lowerIds, Set<String> higherIds)
id
- flow class identifierlowerIds
- optional set of flow class ids whose actual priorities
should be below this onehigherIds
- optional set of flow class ids whose actual priorities
should be above this onevoid setPlaceholder(String id, long baseCookie, int actualPriority)
id
- flow class identifierbaseCookie
- assigned cookie; -1 if cookie is not to be overridenactualPriority
- actual absolute priority value to assignCopyright © 2015. All Rights Reserved.