public Long call() { return mClient.registerJobWorker(RegisterJobWorkerPRequest.newBuilder() .setWorkerNetAddress(GrpcUtils.toProto(address)).build()).getId(); } });
private void pingMetaService(InetSocketAddress address) throws UnauthenticatedException, UnavailableException { GrpcChannel channel = GrpcChannelBuilder.newBuilder(address, mConfiguration).build(); ServiceVersionClientServiceGrpc.ServiceVersionClientServiceBlockingStub versionClient = ServiceVersionClientServiceGrpc.newBlockingStub(channel); versionClient.getServiceVersion(GetServiceVersionPRequest.newBuilder() .setServiceType(ServiceType.META_MASTER_CLIENT_SERVICE).build()); channel.shutdown(); }
@Override public List<JobCommand> call() { return mClient.heartbeat(JobHeartbeatPRequest.newBuilder().setWorkerId(workerId) .addAllTaskInfos(taskInfoList).build()).getCommandsList(); } });
public Builder mergeFrom(alluxio.grpc.CancelTaskCommand other) { if (other == alluxio.grpc.CancelTaskCommand.getDefaultInstance()) return this; if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasTaskId()) { setTaskId(other.getTaskId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * @param request block request in proto */ BlockWriteRequest(alluxio.grpc.WriteRequest request) { super(request); mTier = request.getCommand().getTier(); if (request.getCommand().hasCreateUfsBlockOptions()) { mCreateUfsBlockOptions = request.getCommand().getCreateUfsBlockOptions(); } else { mCreateUfsBlockOptions = null; } }
public Builder mergeFrom(alluxio.grpc.GetJobStatusPRequest other) { if (other == alluxio.grpc.GetJobStatusPRequest.getDefaultInstance()) return this; if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public alluxio.grpc.JobInfo call() throws StatusRuntimeException { return mClient.getJobStatus(GetJobStatusPRequest.newBuilder().setJobId(jobId).build()) .getJobInfo(); } }));
public Builder mergeFrom(alluxio.grpc.GetFileInfoPResponse other) { if (other == alluxio.grpc.GetFileInfoPResponse.getDefaultInstance()) return this; if (other.hasFileInfo()) { mergeFileInfo(other.getFileInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(alluxio.grpc.GetJobStatusPResponse other) { if (other == alluxio.grpc.GetJobStatusPResponse.getDefaultInstance()) return this; if (other.hasJobInfo()) { mergeJobInfo(other.getJobInfo()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Void call() { mClient.cancel(CancelPRequest.newBuilder().setJobId(jobId).build()); return null; } });
/** * <code>optional string source = 2;</code> */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000002); source_ = getDefaultInstance().getSource(); onChanged(); return this; } /**
/** * <code>optional string ufsPath = 4;</code> */ public Builder clearUfsPath() { bitField0_ = (bitField0_ & ~0x00000008); ufsPath_ = getDefaultInstance().getUfsPath(); onChanged(); return this; } /**
/** * <code>optional string group = 17;</code> */ public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00010000); group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /**
public alluxio.grpc.BlockLocation build() { alluxio.grpc.BlockLocation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public alluxio.grpc.CompleteFilePResponse build() { alluxio.grpc.CompleteFilePResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public Builder mergeFrom(alluxio.grpc.GetJobStatusPOptions other) { if (other == alluxio.grpc.GetJobStatusPOptions.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public alluxio.grpc.FileSystemMasterCommonPOptions build() { alluxio.grpc.FileSystemMasterCommonPOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public alluxio.grpc.GetJobStatusPResponse build() { alluxio.grpc.GetJobStatusPResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public alluxio.grpc.GetJobStatusPOptions buildPartial() { alluxio.grpc.GetJobStatusPOptions result = new alluxio.grpc.GetJobStatusPOptions(this); onBuilt(); return result; }
public alluxio.grpc.CommitBlockInUfsPResponse buildPartial() { alluxio.grpc.CommitBlockInUfsPResponse result = new alluxio.grpc.CommitBlockInUfsPResponse(this); onBuilt(); return result; }