@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof alluxio.grpc.JobHeartbeatPResponse)) { return super.equals(obj); } alluxio.grpc.JobHeartbeatPResponse other = (alluxio.grpc.JobHeartbeatPResponse) obj; boolean result = true; result = result && getCommandsList() .equals(other.getCommandsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getCommandsCount() > 0) { hash = (37 * hash) + COMMANDS_FIELD_NUMBER; hash = (53 * hash) + getCommandsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@Override public List<JobCommand> call() { return mClient.heartbeat(JobHeartbeatPRequest.newBuilder().setWorkerId(workerId) .addAllTaskInfos(taskInfoList).build()).getCommandsList(); } });