Search in sources :

Example 1 with OF10StatsRequestInputFactory

use of org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10StatsRequestInputFactory in project openflowplugin by opendaylight.

the class AdditionalMessageDeserializerInitializer method registerMessageDeserializers.

/**
 * Registers additional message deserializers.
 * @param registry registry to be filled with deserializers
 */
public static void registerMessageDeserializers(final DeserializerRegistry registry) {
    SimpleDeserializerRegistryHelper helper;
    // register OF v1.0 message deserializers
    helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF10_VERSION_ID, registry);
    helper.registerDeserializer(5, GetFeaturesInput.class, new OF10FeaturesRequestMessageFactory());
    helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
    helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
    helper.registerDeserializer(13, PacketOutInput.class, new OF10PacketOutInputMessageFactory());
    helper.registerDeserializer(14, FlowModInput.class, new OF10FlowModInputMessageFactory());
    helper.registerDeserializer(15, PortModInput.class, new OF10PortModInputMessageFactory());
    helper.registerDeserializer(16, MultipartRequestInput.class, new OF10StatsRequestInputFactory());
    helper.registerDeserializer(18, BarrierInput.class, new BarrierInputMessageFactory());
    helper.registerDeserializer(20, GetQueueConfigInput.class, new OF10GetQueueConfigInputMessageFactory());
    // register OF v1.3 message deserializers
    helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF13_VERSION_ID, registry);
    helper.registerDeserializer(5, GetFeaturesInput.class, new GetFeaturesInputMessageFactory());
    helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
    helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
    helper.registerDeserializer(13, PacketOutInput.class, new PacketOutInputMessageFactory());
    helper.registerDeserializer(14, FlowModInput.class, new FlowModInputMessageFactory());
    helper.registerDeserializer(15, GroupModInput.class, new GroupModInputMessageFactory());
    helper.registerDeserializer(16, PortModInput.class, new PortModInputMessageFactory());
    helper.registerDeserializer(17, TableModInput.class, new TableModInputMessageFactory());
    helper.registerDeserializer(18, MultipartRequestInput.class, new MultipartRequestInputMessageFactory());
    helper.registerDeserializer(20, BarrierInput.class, new BarrierInputMessageFactory());
    helper.registerDeserializer(22, GetQueueConfigInput.class, new GetQueueConfigInputMessageFactory());
    helper.registerDeserializer(24, RoleRequestInput.class, new RoleRequestInputMessageFactory());
    helper.registerDeserializer(26, GetAsyncInput.class, new GetAsyncRequestMessageFactory());
    helper.registerDeserializer(28, SetAsyncInput.class, new SetAsyncInputMessageFactory());
    helper.registerDeserializer(29, MeterModInput.class, new MeterModInputMessageFactory());
    // register OF v1.4 message deserializers
    helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF14_VERSION_ID, registry);
    helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
    helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
    helper.registerDeserializer(20, BarrierInput.class, new BarrierInputMessageFactory());
    // register OF v1.5 message deserializers
    helper = new SimpleDeserializerRegistryHelper(EncodeConstants.OF15_VERSION_ID, registry);
    helper.registerDeserializer(7, GetConfigInput.class, new GetConfigInputMessageFactory());
    helper.registerDeserializer(9, SetConfigInput.class, new SetConfigInputMessageFactory());
    helper.registerDeserializer(20, BarrierInput.class, new BarrierInputMessageFactory());
}
Also used : SimpleDeserializerRegistryHelper(org.opendaylight.openflowjava.protocol.impl.util.SimpleDeserializerRegistryHelper) BarrierInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.BarrierInputMessageFactory) OF10GetQueueConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10GetQueueConfigInputMessageFactory) GetQueueConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetQueueConfigInputMessageFactory) OF10GetQueueConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10GetQueueConfigInputMessageFactory) OF10FeaturesRequestMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10FeaturesRequestMessageFactory) MultipartRequestInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.MultipartRequestInputMessageFactory) PortModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.PortModInputMessageFactory) OF10PortModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10PortModInputMessageFactory) RoleRequestInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.RoleRequestInputMessageFactory) GetConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetConfigInputMessageFactory) OF10StatsRequestInputFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10StatsRequestInputFactory) OF10PacketOutInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10PacketOutInputMessageFactory) PacketOutInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.PacketOutInputMessageFactory) GetAsyncRequestMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetAsyncRequestMessageFactory) OF10PortModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10PortModInputMessageFactory) OF10FlowModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10FlowModInputMessageFactory) TableModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.TableModInputMessageFactory) OF10PacketOutInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10PacketOutInputMessageFactory) GetFeaturesInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetFeaturesInputMessageFactory) OF10FlowModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10FlowModInputMessageFactory) FlowModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.FlowModInputMessageFactory) MeterModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.MeterModInputMessageFactory) SetConfigInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.SetConfigInputMessageFactory) SetAsyncInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.SetAsyncInputMessageFactory) GroupModInputMessageFactory(org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GroupModInputMessageFactory)

Aggregations

BarrierInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.BarrierInputMessageFactory)1 FlowModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.FlowModInputMessageFactory)1 GetAsyncRequestMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetAsyncRequestMessageFactory)1 GetConfigInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetConfigInputMessageFactory)1 GetFeaturesInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetFeaturesInputMessageFactory)1 GetQueueConfigInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GetQueueConfigInputMessageFactory)1 GroupModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.GroupModInputMessageFactory)1 MeterModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.MeterModInputMessageFactory)1 MultipartRequestInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.MultipartRequestInputMessageFactory)1 OF10FeaturesRequestMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10FeaturesRequestMessageFactory)1 OF10FlowModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10FlowModInputMessageFactory)1 OF10GetQueueConfigInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10GetQueueConfigInputMessageFactory)1 OF10PacketOutInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10PacketOutInputMessageFactory)1 OF10PortModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10PortModInputMessageFactory)1 OF10StatsRequestInputFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.OF10StatsRequestInputFactory)1 PacketOutInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.PacketOutInputMessageFactory)1 PortModInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.PortModInputMessageFactory)1 RoleRequestInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.RoleRequestInputMessageFactory)1 SetAsyncInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.SetAsyncInputMessageFactory)1 SetConfigInputMessageFactory (org.opendaylight.openflowjava.protocol.impl.deserialization.factories.SetConfigInputMessageFactory)1