alshabib | 86ac11c | 2014-08-14 16:14:41 -0700 | [diff] [blame] | 1 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University |
| 2 | // Copyright (c) 2011, 2012 Open Networking Foundation |
| 3 | // Copyright (c) 2012, 2013 Big Switch Networks, Inc. |
| 4 | // This library was generated by the LoxiGen Compiler. |
| 5 | // See the file LICENSE.txt which should have been included in the source distribution |
| 6 | |
| 7 | // Automatically generated by LOXI from template of_factory_class.java |
| 8 | // Do not modify |
| 9 | |
| 10 | package org.projectfloodlight.openflow.protocol.ver11; |
| 11 | |
| 12 | import org.projectfloodlight.openflow.protocol.*; |
| 13 | import org.projectfloodlight.openflow.protocol.action.*; |
| 14 | import org.projectfloodlight.openflow.protocol.actionid.*; |
| 15 | import org.projectfloodlight.openflow.protocol.bsntlv.*; |
| 16 | import org.projectfloodlight.openflow.protocol.errormsg.*; |
| 17 | import org.projectfloodlight.openflow.protocol.meterband.*; |
| 18 | import org.projectfloodlight.openflow.protocol.instruction.*; |
| 19 | import org.projectfloodlight.openflow.protocol.instructionid.*; |
| 20 | import org.projectfloodlight.openflow.protocol.match.*; |
| 21 | import org.projectfloodlight.openflow.protocol.oxm.*; |
| 22 | import org.projectfloodlight.openflow.protocol.queueprop.*; |
| 23 | import org.projectfloodlight.openflow.types.*; |
| 24 | import org.projectfloodlight.openflow.util.*; |
| 25 | import org.projectfloodlight.openflow.exceptions.*; |
| 26 | |
| 27 | |
| 28 | public class OFErrorMsgsVer11 implements OFErrorMsgs { |
| 29 | public final static OFErrorMsgsVer11 INSTANCE = new OFErrorMsgsVer11(); |
| 30 | |
| 31 | private final XidGenerator xidGenerator = XidGenerators.global(); |
| 32 | |
| 33 | |
| 34 | |
| 35 | public OFBadActionErrorMsg.Builder buildBadActionErrorMsg() { |
| 36 | return new OFBadActionErrorMsgVer11.Builder().setXid(nextXid()); |
| 37 | } |
| 38 | |
| 39 | public OFBadRequestErrorMsg.Builder buildBadRequestErrorMsg() { |
| 40 | return new OFBadRequestErrorMsgVer11.Builder().setXid(nextXid()); |
| 41 | } |
| 42 | |
| 43 | public OFFlowModFailedErrorMsg.Builder buildFlowModFailedErrorMsg() { |
| 44 | return new OFFlowModFailedErrorMsgVer11.Builder().setXid(nextXid()); |
| 45 | } |
| 46 | |
| 47 | public OFHelloFailedErrorMsg.Builder buildHelloFailedErrorMsg() { |
| 48 | return new OFHelloFailedErrorMsgVer11.Builder().setXid(nextXid()); |
| 49 | } |
| 50 | |
| 51 | public OFPortModFailedErrorMsg.Builder buildPortModFailedErrorMsg() { |
| 52 | return new OFPortModFailedErrorMsgVer11.Builder().setXid(nextXid()); |
| 53 | } |
| 54 | |
| 55 | public OFQueueOpFailedErrorMsg.Builder buildQueueOpFailedErrorMsg() { |
| 56 | return new OFQueueOpFailedErrorMsgVer11.Builder().setXid(nextXid()); |
| 57 | } |
| 58 | |
| 59 | public OFBadInstructionErrorMsg.Builder buildBadInstructionErrorMsg() { |
| 60 | return new OFBadInstructionErrorMsgVer11.Builder().setXid(nextXid()); |
| 61 | } |
| 62 | |
| 63 | public OFBadMatchErrorMsg.Builder buildBadMatchErrorMsg() { |
| 64 | return new OFBadMatchErrorMsgVer11.Builder().setXid(nextXid()); |
| 65 | } |
| 66 | |
| 67 | public OFGroupModFailedErrorMsg.Builder buildGroupModFailedErrorMsg() { |
| 68 | return new OFGroupModFailedErrorMsgVer11.Builder().setXid(nextXid()); |
| 69 | } |
| 70 | |
| 71 | public OFSwitchConfigFailedErrorMsg.Builder buildSwitchConfigFailedErrorMsg() { |
| 72 | return new OFSwitchConfigFailedErrorMsgVer11.Builder().setXid(nextXid()); |
| 73 | } |
| 74 | |
| 75 | public OFTableModFailedErrorMsg.Builder buildTableModFailedErrorMsg() { |
| 76 | return new OFTableModFailedErrorMsgVer11.Builder().setXid(nextXid()); |
| 77 | } |
| 78 | |
| 79 | public OFExperimenterErrorMsg.Builder buildExperimenterErrorMsg() { |
| 80 | throw new UnsupportedOperationException("OFExperimenterErrorMsg not supported in version 1.1"); |
| 81 | } |
| 82 | |
| 83 | public OFRoleRequestFailedErrorMsg.Builder buildRoleRequestFailedErrorMsg() { |
| 84 | throw new UnsupportedOperationException("OFRoleRequestFailedErrorMsg not supported in version 1.1"); |
| 85 | } |
| 86 | |
| 87 | public OFMeterModFailedErrorMsg.Builder buildMeterModFailedErrorMsg() { |
| 88 | throw new UnsupportedOperationException("OFMeterModFailedErrorMsg not supported in version 1.1"); |
| 89 | } |
| 90 | |
| 91 | public OFTableFeaturesFailedErrorMsg.Builder buildTableFeaturesFailedErrorMsg() { |
| 92 | throw new UnsupportedOperationException("OFTableFeaturesFailedErrorMsg not supported in version 1.1"); |
| 93 | } |
| 94 | |
| 95 | public OFMessageReader<OFErrorMsg> getReader() { |
| 96 | return OFErrorMsgVer11.READER; |
| 97 | } |
| 98 | |
| 99 | public long nextXid() { |
| 100 | return xidGenerator.nextXid(); |
| 101 | } |
| 102 | |
| 103 | public OFVersion getVersion() { |
| 104 | return OFVersion.OF_11; |
| 105 | } |
| 106 | } |