public final class InstructionCodec
extends org.onosproject.codec.JsonCodec<org.onosproject.net.flow.instructions.Instruction>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CHANNEL_SPACING |
protected static String |
DEVICE_ID |
protected static String |
ERROR_MESSAGE |
protected static String |
ETHERNET_TYPE |
protected static String |
EXTENSION |
protected static String |
FLOW_LABEL |
protected static String |
GRID_TYPE |
protected static String |
GROUP_ID |
protected static String |
IP |
protected static String |
LAMBDA |
protected static org.slf4j.Logger |
log |
protected static String |
MAC |
protected static String |
METER_ID |
protected static String |
MISSING_MEMBER_MESSAGE |
protected static String |
MPLS_BOS |
protected static String |
MPLS_LABEL |
protected static String |
PORT |
protected static String |
QUEUE_ID |
protected static String |
SLOT_GRANULARITY |
protected static String |
SPACING_MULTIPLIER |
protected static String |
SUBTYPE |
protected static String |
TABLE_ID |
protected static String |
TCP_PORT |
protected static String |
TRIBUTARY_PORT_NUMBER |
protected static String |
TRIBUTARY_SLOT_BITMAP |
protected static String |
TRIBUTARY_SLOT_LEN |
protected static String |
TUNNEL_ID |
protected static String |
TYPE |
protected static String |
UDP_PORT |
protected static String |
VLAN_ID |
protected static String |
VLAN_PCP |
| Constructor and Description |
|---|
InstructionCodec() |
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.flow.instructions.Instruction |
decode(com.fasterxml.jackson.databind.node.ObjectNode json,
org.onosproject.codec.CodecContext context) |
com.fasterxml.jackson.databind.node.ObjectNode |
encode(org.onosproject.net.flow.instructions.Instruction instruction,
org.onosproject.codec.CodecContext context) |
protected static final org.slf4j.Logger log
protected static final String TYPE
protected static final String SUBTYPE
protected static final String PORT
protected static final String MAC
protected static final String VLAN_ID
protected static final String VLAN_PCP
protected static final String MPLS_LABEL
protected static final String MPLS_BOS
protected static final String IP
protected static final String FLOW_LABEL
protected static final String LAMBDA
protected static final String GRID_TYPE
protected static final String CHANNEL_SPACING
protected static final String SPACING_MULTIPLIER
protected static final String SLOT_GRANULARITY
protected static final String ETHERNET_TYPE
protected static final String TUNNEL_ID
protected static final String TCP_PORT
protected static final String UDP_PORT
protected static final String TABLE_ID
protected static final String GROUP_ID
protected static final String METER_ID
protected static final String QUEUE_ID
protected static final String TRIBUTARY_PORT_NUMBER
protected static final String TRIBUTARY_SLOT_LEN
protected static final String TRIBUTARY_SLOT_BITMAP
protected static final String EXTENSION
protected static final String DEVICE_ID
protected static final String MISSING_MEMBER_MESSAGE
protected static final String ERROR_MESSAGE
public com.fasterxml.jackson.databind.node.ObjectNode encode(org.onosproject.net.flow.instructions.Instruction instruction,
org.onosproject.codec.CodecContext context)
encode in class org.onosproject.codec.JsonCodec<org.onosproject.net.flow.instructions.Instruction>public org.onosproject.net.flow.instructions.Instruction decode(com.fasterxml.jackson.databind.node.ObjectNode json,
org.onosproject.codec.CodecContext context)
decode in class org.onosproject.codec.JsonCodec<org.onosproject.net.flow.instructions.Instruction>