X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflowj%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2Fstatistics%2FOFAggregateStatisticsRequest.java;fp=third-party%2Fopenflowj%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fprotocol%2Fstatistics%2FOFAggregateStatisticsRequest.java;h=0000000000000000000000000000000000000000;hb=e1c04c5af263a9604a765f1ab98be51dfc51d8cb;hp=4b232545d196efd0748d0664e9e2a3cd296cc339;hpb=a935ffda7f26be29de879a47b426d0db7a28d588;p=controller.git diff --git a/third-party/openflowj/src/main/java/org/openflow/protocol/statistics/OFAggregateStatisticsRequest.java b/third-party/openflowj/src/main/java/org/openflow/protocol/statistics/OFAggregateStatisticsRequest.java deleted file mode 100644 index 4b232545d1..0000000000 --- a/third-party/openflowj/src/main/java/org/openflow/protocol/statistics/OFAggregateStatisticsRequest.java +++ /dev/null @@ -1,118 +0,0 @@ -package org.openflow.protocol.statistics; - -import java.nio.ByteBuffer; - -import org.openflow.protocol.OFMatch; - -/** - * Represents an ofp_aggregate_stats_request structure - * @author David Erickson (daviderickson@cs.stanford.edu) - */ -public class OFAggregateStatisticsRequest implements OFStatistics { - protected OFMatch match; - protected byte tableId; - protected short outPort; - - /** - * @return the match - */ - public OFMatch getMatch() { - return match; - } - - /** - * @param match the match to set - */ - public void setMatch(OFMatch match) { - this.match = match; - } - - /** - * @return the tableId - */ - public byte getTableId() { - return tableId; - } - - /** - * @param tableId the tableId to set - */ - public void setTableId(byte tableId) { - this.tableId = tableId; - } - - /** - * @return the outPort - */ - public short getOutPort() { - return outPort; - } - - /** - * @param outPort the outPort to set - */ - public void setOutPort(short outPort) { - this.outPort = outPort; - } - - @Override - public int getLength() { - return 44; - } - - @Override - public void readFrom(ByteBuffer data) { - if (this.match == null) - this.match = new OFMatch(); - this.match.readFrom(data); - this.tableId = data.get(); - data.get(); // pad - this.outPort = data.getShort(); - } - - @Override - public void writeTo(ByteBuffer data) { - this.match.writeTo(data); - data.put(this.tableId); - data.put((byte) 0); - data.putShort(this.outPort); - } - - @Override - public int hashCode() { - final int prime = 401; - int result = 1; - result = prime * result + ((match == null) ? 0 : match.hashCode()); - result = prime * result + outPort; - result = prime * result + tableId; - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (!(obj instanceof OFAggregateStatisticsRequest)) { - return false; - } - OFAggregateStatisticsRequest other = (OFAggregateStatisticsRequest) obj; - if (match == null) { - if (other.match != null) { - return false; - } - } else if (!match.equals(other.match)) { - return false; - } - if (outPort != other.outPort) { - return false; - } - if (tableId != other.tableId) { - return false; - } - return true; - } -}