2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.openflowjava.nx.api;
10 import org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer;
11 import org.opendaylight.openflowjava.protocol.api.extensibility.OFSerializer;
12 import org.opendaylight.openflowjava.protocol.api.keys.MatchEntryDeserializerKey;
13 import org.opendaylight.openflowjava.protocol.api.keys.MatchEntrySerializerKey;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.action.rev150203.actions.grouping.Action;
15 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.MatchField;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.OxmClassBase;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entries.grouping.MatchEntry;
20 * Registry for Nicira extension codecs.
24 public interface NiciraExtensionCodecRegistrator extends AutoCloseable {
26 void registerActionDeserializer(NiciraActionDeserializerKey key, OFDeserializer<Action> deserializer);
28 void unregisterActionDeserializer(NiciraActionDeserializerKey key);
30 void registerActionSerializer(NiciraActionSerializerKey key, OFSerializer<Action> serializer);
32 void unregisterActionSerializer(NiciraActionSerializerKey key);
34 void registerMatchEntryDeserializer(MatchEntryDeserializerKey key, OFDeserializer<MatchEntry> deserializer);
36 void unregisterMatchEntryDeserializer(MatchEntryDeserializerKey key);
38 void registerMatchEntrySerializer(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key,
39 OFSerializer<MatchEntry> serializer);
41 void unregisterMatchEntrySerializer(MatchEntrySerializerKey<? extends OxmClassBase, ? extends MatchField> key);