4fc52bacb337733d19647ab89f3ee04f553ef018
[controller.git] / third-party / openflowj_netty / src / main / java / org / openflow / vendor / openflow / OFQueueDeleteVendorData.java
1 /**
2 *    Copyright 2012, Andrew Ferguson, Brown University
3 *
4 *    Licensed under the Apache License, Version 2.0 (the "License"); you may
5 *    not use this file except in compliance with the License. You may obtain
6 *    a copy of the License at
7 *
8 *         http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *    Unless required by applicable law or agreed to in writing, software
11 *    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 *    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 *    License for the specific language governing permissions and limitations
14 *    under the License.
15 **/
16
17 package org.openflow.vendor.openflow;
18
19 import org.openflow.protocol.Instantiable;
20 import org.openflow.protocol.vendor.OFVendorData;
21
22 /**
23  * Class that represents the vendor data in the queue delete request
24  *
25  * @author Andrew Ferguson (adf@cs.brown.edu)
26  */
27 public class OFQueueDeleteVendorData extends OFQueueVendorData {
28
29     protected static Instantiable<OFVendorData> instantiable =
30             new Instantiable<OFVendorData>() {
31                 public OFVendorData instantiate() {
32                     return new OFQueueDeleteVendorData();
33                 }
34             };
35
36     /**
37      * @return a subclass of Instantiable<OFVendorData> that instantiates
38      *         an instance of OFQueueDeleteVendorData.
39      */
40     public static Instantiable<OFVendorData> getInstantiable() {
41         return instantiable;
42     }
43
44     /**
45      * The data type value for a queue delete request
46      */
47     public static final int OFP_EXT_QUEUE_DELETE = 1;
48
49     public OFQueueDeleteVendorData() {
50         super(OFP_EXT_QUEUE_DELETE);
51     }
52 }