Search in sources :

Example 1 with GetQueueConfigInputMessageFactory

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

the class MessageFactoryInitializer method registerMessageSerializers.

/**
 * Registers message serializers into provided registry.
 * @param serializerRegistry registry to be initialized with message serializers
 */
public static void registerMessageSerializers(SerializerRegistry serializerRegistry) {
    CommonMessageRegistryHelper registryHelper;
    // register OF v1.0 message serializers
    registryHelper = new CommonMessageRegistryHelper(EncodeConstants.OF10_VERSION_ID, serializerRegistry);
    registryHelper.registerSerializer(BarrierInput.class, new OF10BarrierInputMessageFactory());
    registryHelper.registerSerializer(EchoInput.class, new EchoInputMessageFactory());
    registryHelper.registerSerializer(EchoReplyInput.class, new EchoReplyInputMessageFactory());
    registryHelper.registerSerializer(ExperimenterInput.class, new VendorInputMessageFactory());
    registryHelper.registerSerializer(FlowModInput.class, new OF10FlowModInputMessageFactory());
    registryHelper.registerSerializer(GetConfigInput.class, new GetConfigInputMessageFactory());
    registryHelper.registerSerializer(GetFeaturesInput.class, new GetFeaturesInputMessageFactory());
    registryHelper.registerSerializer(GetQueueConfigInput.class, new OF10QueueGetConfigInputMessageFactory());
    registryHelper.registerSerializer(HelloInput.class, new OF10HelloInputMessageFactory());
    registryHelper.registerSerializer(MultipartRequestInput.class, new OF10StatsRequestInputFactory());
    registryHelper.registerSerializer(PacketOutInput.class, new OF10PacketOutInputMessageFactory());
    registryHelper.registerSerializer(PortModInput.class, new OF10PortModInputMessageFactory());
    registryHelper.registerSerializer(SetConfigInput.class, new SetConfigMessageFactory());
    // register OF v1.3 message serializers
    registryHelper = new CommonMessageRegistryHelper(EncodeConstants.OF13_VERSION_ID, serializerRegistry);
    registryHelper.registerSerializer(BarrierInput.class, new BarrierInputMessageFactory());
    registryHelper.registerSerializer(EchoInput.class, new EchoInputMessageFactory());
    registryHelper.registerSerializer(EchoReplyInput.class, new EchoReplyInputMessageFactory());
    registryHelper.registerSerializer(ExperimenterInput.class, new ExperimenterInputMessageFactory());
    registryHelper.registerSerializer(FlowModInput.class, new FlowModInputMessageFactory());
    registryHelper.registerSerializer(GetAsyncInput.class, new GetAsyncRequestMessageFactory());
    registryHelper.registerSerializer(GetConfigInput.class, new GetConfigInputMessageFactory());
    registryHelper.registerSerializer(GetFeaturesInput.class, new GetFeaturesInputMessageFactory());
    registryHelper.registerSerializer(GetQueueConfigInput.class, new GetQueueConfigInputMessageFactory());
    registryHelper.registerSerializer(GroupModInput.class, new GroupModInputMessageFactory(serializerRegistry.isGroupAddModEnabled()));
    registryHelper.registerSerializer(HelloInput.class, new HelloInputMessageFactory());
    registryHelper.registerSerializer(MeterModInput.class, new MeterModInputMessageFactory());
    registryHelper.registerSerializer(MultipartRequestInput.class, new MultipartRequestInputFactory());
    registryHelper.registerSerializer(PacketOutInput.class, new PacketOutInputMessageFactory());
    registryHelper.registerSerializer(PortModInput.class, new PortModInputMessageFactory());
    registryHelper.registerSerializer(RoleRequestInput.class, new RoleRequestInputMessageFactory());
    registryHelper.registerSerializer(SetAsyncInput.class, new SetAsyncInputMessageFactory());
    registryHelper.registerSerializer(SetConfigInput.class, new SetConfigMessageFactory());
    registryHelper.registerSerializer(TableModInput.class, new TableModInputMessageFactory());
}
Also used : BarrierInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.BarrierInputMessageFactory) OF10BarrierInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10BarrierInputMessageFactory) CommonMessageRegistryHelper(org.opendaylight.openflowjava.protocol.impl.util.CommonMessageRegistryHelper) ExperimenterInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.ExperimenterInputMessageFactory) OF10HelloInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10HelloInputMessageFactory) HelloInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.HelloInputMessageFactory) OF10QueueGetConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10QueueGetConfigInputMessageFactory) GetConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetConfigInputMessageFactory) OF10StatsRequestInputFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10StatsRequestInputFactory) GetAsyncRequestMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetAsyncRequestMessageFactory) PacketOutInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.PacketOutInputMessageFactory) OF10PacketOutInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PacketOutInputMessageFactory) OF10PortModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PortModInputMessageFactory) VendorInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.VendorInputMessageFactory) GetFeaturesInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetFeaturesInputMessageFactory) OF10PacketOutInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PacketOutInputMessageFactory) GroupModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GroupModInputMessageFactory) SetConfigMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.SetConfigMessageFactory) OF10BarrierInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10BarrierInputMessageFactory) GetQueueConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetQueueConfigInputMessageFactory) MultipartRequestInputFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.MultipartRequestInputFactory) EchoReplyInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoReplyInputMessageFactory) EchoInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoInputMessageFactory) OF10QueueGetConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10QueueGetConfigInputMessageFactory) PortModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.PortModInputMessageFactory) OF10PortModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PortModInputMessageFactory) RoleRequestInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.RoleRequestInputMessageFactory) OF10HelloInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10HelloInputMessageFactory) OF10FlowModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FlowModInputMessageFactory) TableModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.TableModInputMessageFactory) OF10FlowModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FlowModInputMessageFactory) FlowModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.FlowModInputMessageFactory) MeterModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.MeterModInputMessageFactory) SetAsyncInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.serialization.factories.SetAsyncInputMessageFactory)

Aggregations

BarrierInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.BarrierInputMessageFactory)1 EchoInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoInputMessageFactory)1 EchoReplyInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.EchoReplyInputMessageFactory)1 ExperimenterInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.ExperimenterInputMessageFactory)1 FlowModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.FlowModInputMessageFactory)1 GetAsyncRequestMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetAsyncRequestMessageFactory)1 GetConfigInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetConfigInputMessageFactory)1 GetFeaturesInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetFeaturesInputMessageFactory)1 GetQueueConfigInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GetQueueConfigInputMessageFactory)1 GroupModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.GroupModInputMessageFactory)1 HelloInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.HelloInputMessageFactory)1 MeterModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.MeterModInputMessageFactory)1 MultipartRequestInputFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.MultipartRequestInputFactory)1 OF10BarrierInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10BarrierInputMessageFactory)1 OF10FlowModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10FlowModInputMessageFactory)1 OF10HelloInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10HelloInputMessageFactory)1 OF10PacketOutInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PacketOutInputMessageFactory)1 OF10PortModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10PortModInputMessageFactory)1 OF10QueueGetConfigInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10QueueGetConfigInputMessageFactory)1 OF10StatsRequestInputFactory (org.opendaylight.openflowjava.protocol.impl.serialization.factories.OF10StatsRequestInputFactory)1