public final class ConstraintCodec
extends org.onosproject.codec.JsonCodec<org.onosproject.net.intent.Constraint>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BANDWIDTH |
protected static String |
INCLUSIVE |
protected static String |
KEY |
protected static String |
LAMBDA |
protected static String |
LATENCY_MILLIS |
protected static String |
MISSING_MEMBER_MESSAGE |
protected static String |
OBSTACLES |
protected static String |
THRESHOLD |
protected static String |
TYPE |
protected static String |
TYPES |
protected static String |
WAYPOINTS |
| Constructor and Description |
|---|
ConstraintCodec() |
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.intent.Constraint |
decode(com.fasterxml.jackson.databind.node.ObjectNode json,
org.onosproject.codec.CodecContext context) |
com.fasterxml.jackson.databind.node.ObjectNode |
encode(org.onosproject.net.intent.Constraint constraint,
org.onosproject.codec.CodecContext context) |
protected static final String MISSING_MEMBER_MESSAGE
protected static final String TYPE
protected static final String TYPES
protected static final String INCLUSIVE
protected static final String KEY
protected static final String THRESHOLD
protected static final String BANDWIDTH
protected static final String LAMBDA
protected static final String LATENCY_MILLIS
protected static final String OBSTACLES
protected static final String WAYPOINTS
public com.fasterxml.jackson.databind.node.ObjectNode encode(org.onosproject.net.intent.Constraint constraint,
org.onosproject.codec.CodecContext context)
encode in class org.onosproject.codec.JsonCodec<org.onosproject.net.intent.Constraint>public org.onosproject.net.intent.Constraint decode(com.fasterxml.jackson.databind.node.ObjectNode json,
org.onosproject.codec.CodecContext context)
decode in class org.onosproject.codec.JsonCodec<org.onosproject.net.intent.Constraint>