@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasPurgedMemoryBytes()) { hash = (37 * hash) + PURGED_MEMORY_BYTES_FIELD_NUMBER; hash = (53 * hash) + hashLong(getPurgedMemoryBytes()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@Override public Long call() { try { LlapManagementProtocolClientImpl client = new LlapManagementProtocolClientImpl(conf, instance.getHost(), instance.getManagementPort(), retryPolicy, socketFactory); LlapDaemonProtocolProtos.PurgeCacheResponseProto resp = client.purgeCache(null, LlapDaemonProtocolProtos .PurgeCacheRequestProto.newBuilder().build()); return resp.getPurgedMemoryBytes(); } catch (Exception e) { LOG.warn("Exception while purging cache.", e); return 0L; } } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.PurgeCacheResponseProto)) { return super.equals(obj); } org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.PurgeCacheResponseProto other = (org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.PurgeCacheResponseProto) obj; boolean result = true; result = result && (hasPurgedMemoryBytes() == other.hasPurgedMemoryBytes()); if (hasPurgedMemoryBytes()) { result = result && (getPurgedMemoryBytes() == other.getPurgedMemoryBytes()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.PurgeCacheResponseProto other) { if (other == org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.PurgeCacheResponseProto.getDefaultInstance()) return this; if (other.hasPurgedMemoryBytes()) { setPurgedMemoryBytes(other.getPurgedMemoryBytes()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }