Search in sources :

Example 36 with MessageTypeKey

use of org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey in project openflowplugin by opendaylight.

the class OF10BarrierInputMessageFactoryTest method startUp.

/**
 * Initializes serializer registry and stores correct factory in field.
 */
@Before
public void startUp() {
    registry = new SerializerRegistryImpl();
    registry.init();
    barrierFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF10_VERSION_ID, BarrierInput.class));
}
Also used : SerializerRegistryImpl(org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl) MessageTypeKey(org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey) Before(org.junit.Before)

Example 37 with MessageTypeKey

use of org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey in project openflowplugin by opendaylight.

the class OF10FeaturesReplyMessageFactoryTest method startUp.

@Before
public void startUp() {
    SerializerRegistry registry = new SerializerRegistryImpl();
    registry.init();
    factory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF10_VERSION_ID, GetFeaturesOutput.class));
}
Also used : SerializerRegistry(org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry) SerializerRegistryImpl(org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl) MessageTypeKey(org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey) Before(org.junit.Before)

Example 38 with MessageTypeKey

use of org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey in project openflowplugin by opendaylight.

the class OF10FlowRemovedMessageFactoryTest method startUp.

@Before
public void startUp() {
    SerializerRegistry registry = new SerializerRegistryImpl();
    registry.init();
    factory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF10_VERSION_ID, FlowRemovedMessage.class));
}
Also used : SerializerRegistry(org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry) SerializerRegistryImpl(org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl) MessageTypeKey(org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey) Before(org.junit.Before)

Example 39 with MessageTypeKey

use of org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey in project openflowplugin by opendaylight.

the class OF10PacketInMessageFactoryTest method startUp.

@Before
public void startUp() {
    SerializerRegistry registry = new SerializerRegistryImpl();
    registry.init();
    factory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF10_VERSION_ID, PacketInMessage.class));
}
Also used : SerializerRegistry(org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry) SerializerRegistryImpl(org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl) MessageTypeKey(org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey) Before(org.junit.Before)

Example 40 with MessageTypeKey

use of org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey in project openflowplugin by opendaylight.

the class PortModInputMessageFactoryTest method startUp.

/**
 * Initializes serializer registry and stores correct factory in field.
 */
@Before
public void startUp() {
    registry = new SerializerRegistryImpl();
    registry.init();
    portModFactory = registry.getSerializer(new MessageTypeKey<>(EncodeConstants.OF13_VERSION_ID, PortModInput.class));
}
Also used : SerializerRegistryImpl(org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl) MessageTypeKey(org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey) Before(org.junit.Before)

Aggregations

MessageTypeKey (org.opendaylight.openflowjava.protocol.api.keys.MessageTypeKey)60 Before (org.junit.Before)55 SerializerRegistryImpl (org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl)55 SerializerRegistry (org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry)21 ExperimenterDataOfChoice (org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.experimenter.core.ExperimenterDataOfChoice)4 ConversionException (org.opendaylight.openflowplugin.extension.api.exception.ConversionException)3 ExperimenterMessageOfChoice (org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.experimenter.types.rev151020.experimenter.core.message.ExperimenterMessageOfChoice)3 Test (org.junit.Test)2 MessagePath (org.opendaylight.openflowplugin.extension.api.path.MessagePath)2 FutureCallback (com.google.common.util.concurrent.FutureCallback)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Nonnull (javax.annotation.Nonnull)1 OFDeserializer (org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer)1 ExperimenterActionDeserializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterActionDeserializerKey)1 ExperimenterActionSerializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterActionSerializerKey)1 ExperimenterIdDeserializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdDeserializerKey)1 ExperimenterIdMeterSubTypeSerializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdMeterSubTypeSerializerKey)1 ExperimenterIdSerializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdSerializerKey)1 ExperimenterIdTypeDeserializerKey (org.opendaylight.openflowjava.protocol.api.keys.ExperimenterIdTypeDeserializerKey)1