@Override public OFStatistics instantiate() { return new OFFlowStatisticsReply(); } }), AGGREGATE(2, OFAggregateStatisticsRequest.class,
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + match_len; result = prime * result + msgsubtype; result = prime * result + outPort; result = prime * result + tableId; return result; }
@Override public OFStatistics instantiate() { return new OFTableStatistics(); } }, new Instantiable<OFStatistics>() {
@Override public OFStatistics instantiate() { return new OFFlowStatisticsRequest(); } }, new Instantiable<OFStatistics>() {
@Override public OFStatistics instantiate() { return new OFAggregateStatisticsRequest(); } }, new Instantiable<OFStatistics>() {
@Override public OFStatistics instantiate() { return new OFPortStatisticsRequest(); } }, new Instantiable<OFStatistics>() {
@Override public OFStatistics instantiate() { return new OFQueueStatisticsRequest(); } }, new Instantiable<OFStatistics>() {
@Override public void writeTo(ByteBuffer data) { super.writeTo(data);//TBD. This Fn needs work. Should never get called though. }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((switchId == null) ? 0 : switchId.hashCode()); result = prime * result + ((type == null) ? 0 : type.ordinal()); return result; }
@Override public void writeTo(final ChannelBuffer data) { super.writeTo(data); data.writeShort(this.statisticType.getTypeValue()); data.writeShort(this.flags); if (this.statistics != null) { for (final OFStatistics statistic : this.statistics) { statistic.writeTo(data); } } }
@Override public OFStatistics instantiate() { return new OFDescriptionStatistics(); } }), FLOW(1, OFFlowStatisticsRequest.class,
@Override public OFStatistics instantiate() { return new OFVendorStatistics(); } }, new Instantiable<OFStatistics>() {
@Override public OFStatistics instantiate() { return new OFAggregateStatisticsReply(); } }), TABLE(3, OFTableStatistics.class, OFTableStatistics.class,
@Override public OFStatistics instantiate() { return new OFQueueStatisticsReply(); } }), VENDOR(0xffff, OFVendorStatistics.class,
@Override public OFStatistics getStatistics(final OFType t, final OFStatisticsType st) { return st.newInstance(t); }
@Override public OFStatistics instantiate() { return new OFPortStatisticsReply(); } }), QUEUE(5, OFQueueStatisticsRequest.class,
@Override public OFStatistics instantiate() { return new OFTableStatistics(); } }), PORT(4, OFPortStatisticsRequest.class,
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + match_len; result = prime * result + msgsubtype; result = prime * result + outPort; result = prime * result + tableId; return result; }
@Override public OFStatistics instantiate() { return new OFDescriptionStatistics(); } }, new Instantiable<OFStatistics>() {
@Override public OFStatistics instantiate() { return new OFVendorStatistics(); } });