@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 void writeTo(ByteBuffer data) { super.writeTo(data);//TBD. This Fn needs work. Should never get called though. }
@Override public OFStatistics instantiate() { return new OFVendorStatistics(); } }, new Instantiable<OFStatistics>() {
private static List<OFStatistics> getV6ReplyStatistics( OFVendorStatistics stat) { int length = stat.getLength(); List<OFStatistics> results = new ArrayList<OFStatistics>(); if (length < 12) { stat.writeTo(data); data.rewind(); if (log.isTraceEnabled()) { break; v6statsreply.setActionFactory(stat.getActionFactory()); v6statsreply.readFrom(data); if (v6statsreply.getLength() < min_len) {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; V6StatsRequest other = (V6StatsRequest) obj; if (match_len != other.match_len) return false; if (msgsubtype != other.msgsubtype) return false; if (outPort != other.outPort) return false; if (tableId != other.tableId) return false; return true; } }
((OFVendorStatistics) statistics).setLength(length);
private static List<OFStatistics> getV6ReplyStatistics( OFVendorStatistics stat) { int length = stat.getLength(); List<OFStatistics> results = new ArrayList<OFStatistics>(); if (length < 12) return null; // Nicira Hdr is 12 bytes. We need atleast that much ByteBuffer data = ByteBuffer.allocate(length); stat.writeTo(data); data.rewind(); if (log.isTraceEnabled()) { if (length < v6statsreply.getLength()) break; v6statsreply.setActionFactory(stat.getActionFactory()); v6statsreply.readFrom(data); if (v6statsreply.getLength() < min_len)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; V6StatsRequest other = (V6StatsRequest) obj; if (match_len != other.match_len) return false; if (msgsubtype != other.msgsubtype) return false; if (outPort != other.outPort) return false; if (tableId != other.tableId) return false; return true; } }
@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; }
if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass())
@Override public OFStatistics instantiate() { return new OFVendorStatistics(); } });
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((actions == null) ? 0 : actions.hashCode()); result = prime * result + (int) (byteCount ^ (byteCount >>> 32)); result = prime * result + (int) (cookie ^ (cookie >>> 32)); result = prime * result + durationNanoseconds; result = prime * result + durationSeconds; result = prime * result + hardAge; result = prime * result + hardTimeout; result = prime * result + idleAge; result = prime * result + idleTimeout; result = prime * result + length; result = prime * result + ((match == null) ? 0 : match.hashCode()); result = prime * result + match_len; result = prime * result + (int) (packetCount ^ (packetCount >>> 32)); result = prime * result + priority; result = prime * result + tableId; return result; }
if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass())
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((actions == null) ? 0 : actions.hashCode()); result = prime * result + (int) (byteCount ^ (byteCount >>> 32)); result = prime * result + (int) (cookie ^ (cookie >>> 32)); result = prime * result + durationNanoseconds; result = prime * result + durationSeconds; result = prime * result + hardAge; result = prime * result + hardTimeout; result = prime * result + idleAge; result = prime * result + idleTimeout; result = prime * result + length; result = prime * result + ((match == null) ? 0 : match.hashCode()); result = prime * result + match_len; result = prime * result + (int) (packetCount ^ (packetCount >>> 32)); result = prime * result + priority; result = prime * result + tableId; return result; }