Search in sources :

Example 1 with ExperimenterMessageFactory

use of org.opendaylight.openflowjava.protocol.impl.serialization.factories.ExperimenterMessageFactory in project openflowplugin by opendaylight.

the class AdditionalMessageFactoryInitializer method registerMessageSerializers.

/**
 * Registers message serializers implemented within NetIde project into provided registry.
 *
 * @param serializerRegistry
 *            registry to be initialized with message serializers
 */
public static void registerMessageSerializers(SerializerRegistry serializerRegistry) {
    // register OF v1.0 message serializers
    short version = EncodeConstants.OF10_VERSION_ID;
    CommonMessageRegistryHelper registryHelper = new CommonMessageRegistryHelper(version, serializerRegistry);
    registryHelper.registerSerializer(ErrorMessage.class, new ErrorMessageFactory());
    registryHelper.registerSerializer(EchoRequestMessage.class, new EchoRequestMessageFactory());
    registryHelper.registerSerializer(EchoOutput.class, new EchoOutputMessageFactory());
    registryHelper.registerSerializer(GetFeaturesOutput.class, new OF10FeaturesReplyMessageFactory());
    registryHelper.registerSerializer(GetConfigOutput.class, new GetConfigReplyMessageFactory());
    registryHelper.registerSerializer(PacketInMessage.class, new OF10PacketInMessageFactory());
    registryHelper.registerSerializer(FlowRemovedMessage.class, new OF10FlowRemovedMessageFactory());
    registryHelper.registerSerializer(PortStatusMessage.class, new OF10PortStatusMessageFactory());
    registryHelper.registerSerializer(MultipartReplyMessage.class, new OF10StatsReplyMessageFactory());
    registryHelper.registerSerializer(BarrierOutput.class, new OF10BarrierReplyMessageFactory());
    registryHelper.registerSerializer(GetQueueConfigOutput.class, new OF10QueueGetConfigReplyMessageFactory());
    // register OF v1.3 message serializers
    version = EncodeConstants.OF13_VERSION_ID;
    registryHelper = new CommonMessageRegistryHelper(version, serializerRegistry);
    registryHelper.registerSerializer(EchoOutput.class, new EchoOutputMessageFactory());
    registryHelper.registerSerializer(PacketInMessage.class, new PacketInMessageFactory());
    registryHelper.registerSerializer(PacketOutInput.class, new PacketOutInputMessageFactory());
    registryHelper.registerSerializer(GetFeaturesOutput.class, new GetFeaturesOutputFactory());
    registryHelper.registerSerializer(EchoRequestMessage.class, new EchoRequestMessageFactory());
    registryHelper.registerSerializer(MultipartReplyMessage.class, new MultipartReplyMessageFactory());
    registryHelper.registerSerializer(HelloMessage.class, new HelloMessageFactory());
    registryHelper.registerSerializer(ErrorMessage.class, new ErrorMessageFactory());
    registryHelper.registerSerializer(ExperimenterMessage.class, new ExperimenterMessageFactory());
    registryHelper.registerSerializer(GetConfigOutput.class, new GetConfigReplyMessageFactory());
    registryHelper.registerSerializer(FlowRemovedMessage.class, new FlowRemovedMessageFactory());
    registryHelper.registerSerializer(PortStatusMessage.class, new PortStatusMessageFactory());
    registryHelper.registerSerializer(BarrierOutput.class, new BarrierReplyMessageFactory());
    registryHelper.registerSerializer(GetQueueConfigOutput.class, new QueueGetConfigReplyMessageFactory());
    registryHelper.registerSerializer(RoleRequestOutput.class, new RoleReplyMessageFactory());
    registryHelper.registerSerializer(GetAsyncOutput.class, new GetAsyncReplyMessageFactory());
}
Also used : GetAsyncReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetAsyncReplyMessageFactory) HelloMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.HelloMessageFactory) OF10QueueGetConfigReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10QueueGetConfigReplyMessageFactory) QueueGetConfigReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.QueueGetConfigReplyMessageFactory) OF10FlowRemovedMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FlowRemovedMessageFactory) OF10FeaturesReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FeaturesReplyMessageFactory) MultipartReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.MultipartReplyMessageFactory) CommonMessageRegistryHelper(org.opendaylight.openflowjava.protocol.impl.util.CommonMessageRegistryHelper) ErrorMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.ErrorMessageFactory) EchoOutputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoOutputMessageFactory) OF10PortStatusMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PortStatusMessageFactory) PacketOutInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.PacketOutInputMessageFactory) OF10QueueGetConfigReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10QueueGetConfigReplyMessageFactory) OF10FlowRemovedMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FlowRemovedMessageFactory) FlowRemovedMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.FlowRemovedMessageFactory) EchoRequestMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoRequestMessageFactory) OF10BarrierReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10BarrierReplyMessageFactory) OF10PacketInMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PacketInMessageFactory) PortStatusMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.PortStatusMessageFactory) OF10PortStatusMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PortStatusMessageFactory) PacketInMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.PacketInMessageFactory) OF10PacketInMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PacketInMessageFactory) RoleReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.RoleReplyMessageFactory) OF10BarrierReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10BarrierReplyMessageFactory) BarrierReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.BarrierReplyMessageFactory) OF10StatsReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10StatsReplyMessageFactory) GetFeaturesOutputFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetFeaturesOutputFactory) ExperimenterMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.ExperimenterMessageFactory) OF10QueueGetConfigReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10QueueGetConfigReplyMessageFactory) QueueGetConfigReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.QueueGetConfigReplyMessageFactory) GetConfigReplyMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetConfigReplyMessageFactory)

Aggregations

BarrierReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.BarrierReplyMessageFactory)1 EchoOutputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoOutputMessageFactory)1 EchoRequestMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoRequestMessageFactory)1 ErrorMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.ErrorMessageFactory)1 ExperimenterMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.ExperimenterMessageFactory)1 FlowRemovedMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.FlowRemovedMessageFactory)1 GetAsyncReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetAsyncReplyMessageFactory)1 GetConfigReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetConfigReplyMessageFactory)1 GetFeaturesOutputFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetFeaturesOutputFactory)1 HelloMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.HelloMessageFactory)1 MultipartReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.MultipartReplyMessageFactory)1 OF10BarrierReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10BarrierReplyMessageFactory)1 OF10FeaturesReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FeaturesReplyMessageFactory)1 OF10FlowRemovedMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FlowRemovedMessageFactory)1 OF10PacketInMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PacketInMessageFactory)1 OF10PortStatusMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PortStatusMessageFactory)1 OF10QueueGetConfigReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10QueueGetConfigReplyMessageFactory)1 OF10StatsReplyMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10StatsReplyMessageFactory)1 PacketInMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.PacketInMessageFactory)1 PacketOutInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.PacketOutInputMessageFactory)1