* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.openflowjava.protocol.api.keys;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev150225.action.container.action.choice.ExperimenterIdCase;
this.actionSubType = actionSubType;
}
- /**
- * Constructor.
- *
- * @param msgVersion protocol wire version
- * @param experimenterId experimenter / vendor ID
- * @param actionSubType vendor defined subtype
- */
- @Deprecated(forRemoval = true)
- public ExperimenterActionSerializerKey(final short msgVersion, final Long experimenterId,
- final Class<? extends ExperimenterActionSubType> actionSubType) {
- super(msgVersion, ExperimenterIdCase.class, experimenterId);
- this.actionSubType = actionSubType;
- }
-
@Override
public int hashCode() {
final int prime = 31;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.meter.band.header.meter.band.MeterBandExperimenterCase;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.queue.property.header.QueueProperty;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.table.features.properties.grouping.TableFeatureProperties;
+import org.opendaylight.yangtools.yang.common.Uint32;
/**
* Unit tests for SwitchConnectionProviderImpl02.
startUp(TransportProtocol.TCP);
// -- registerActionSerializer
final ExperimenterActionSerializerKey key1
- = new ExperimenterActionSerializerKey(EncodeConstants.OF10_VERSION_ID, 42L, TestSubType.class);
+ = new ExperimenterActionSerializerKey(EncodeConstants.OF10_VERSION_ID, Uint32.valueOf(42),
+ TestSubType.class);
provider.registerActionSerializer(key1, serializer);
Assert.assertTrue("Wrong -- unregister ActionSerializer", provider.unregisterSerializer(key1));
Assert.assertFalse("Wrong -- unregister ActionSerializer by not existing key",