@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; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public alluxio.grpc.JobHeartbeatPResponse getDefaultInstanceForType() { return alluxio.grpc.JobHeartbeatPResponse.getDefaultInstance(); }
@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; }
break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; makeExtensionsImmutable();
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(alluxio.grpc.JobHeartbeatPResponse prototype) {
public alluxio.grpc.JobHeartbeatPResponse buildPartial() { alluxio.grpc.JobHeartbeatPResponse result = new alluxio.grpc.JobHeartbeatPResponse(this); int from_bitField0_ = bitField0_; if (commandsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { commands_ = java.util.Collections.unmodifiableList(commands_); bitField0_ = (bitField0_ & ~0x00000001); } result.commands_ = commands_; } else { result.commands_ = commandsBuilder_.build(); } onBuilt(); return result; }
public alluxio.grpc.JobHeartbeatPResponse build() { alluxio.grpc.JobHeartbeatPResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
@Override public List<JobCommand> call() { return mClient.heartbeat(JobHeartbeatPRequest.newBuilder().setWorkerId(workerId) .addAllTaskInfos(taskInfoList).build()).getCommandsList(); } });
public static Builder newBuilder(alluxio.grpc.JobHeartbeatPResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
@Override public void heartbeat(JobHeartbeatPRequest request, StreamObserver<JobHeartbeatPResponse> responseObserver) { RpcUtils.call(LOG, (RpcUtils.RpcCallableThrowsIOException<JobHeartbeatPResponse>) () -> { List<alluxio.job.wire.TaskInfo> wireTaskInfoList = Lists.newArrayList(); for (alluxio.grpc.TaskInfo taskInfo : request.getTaskInfosList()) { try { wireTaskInfoList.add(new alluxio.job.wire.TaskInfo(taskInfo)); } catch (IOException e) { LOG.error("task info deserialization failed " + e); } } return JobHeartbeatPResponse.newBuilder() .addAllCommands(mJobMaster.workerHeartbeat(request.getWorkerId(), wireTaskInfoList)) .build(); }, "heartbeat", "request=%s", responseObserver, request); }
public Builder mergeFrom(alluxio.grpc.JobHeartbeatPResponse other) { if (other == alluxio.grpc.JobHeartbeatPResponse.getDefaultInstance()) return this; if (commandsBuilder_ == null) { if (!other.commands_.isEmpty()) {
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Heartbeat", requestType = alluxio.grpc.JobHeartbeatPRequest.class, responseType = alluxio.grpc.JobHeartbeatPResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<alluxio.grpc.JobHeartbeatPRequest, alluxio.grpc.JobHeartbeatPResponse> getHeartbeatMethod() { io.grpc.MethodDescriptor<alluxio.grpc.JobHeartbeatPRequest, alluxio.grpc.JobHeartbeatPResponse> getHeartbeatMethod; if ((getHeartbeatMethod = JobMasterWorkerServiceGrpc.getHeartbeatMethod) == null) { synchronized (JobMasterWorkerServiceGrpc.class) { if ((getHeartbeatMethod = JobMasterWorkerServiceGrpc.getHeartbeatMethod) == null) { JobMasterWorkerServiceGrpc.getHeartbeatMethod = getHeartbeatMethod = io.grpc.MethodDescriptor.<alluxio.grpc.JobHeartbeatPRequest, alluxio.grpc.JobHeartbeatPResponse>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "alluxio.grpc.job.JobMasterWorkerService", "Heartbeat")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( alluxio.grpc.JobHeartbeatPRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( alluxio.grpc.JobHeartbeatPResponse.getDefaultInstance())) .setSchemaDescriptor(new JobMasterWorkerServiceMethodDescriptorSupplier("Heartbeat")) .build(); } } } return getHeartbeatMethod; }