Toggle navigation
Home
java.util.List<alluxio.thrift.WorkerInfo> to alluxio.thrift.GetWorkerInfoListTResponse
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'alluxio'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Cascading Type Change (Different)
RpcCallable<List<WorkerInfo>>
to
RpcCallable<GetWorkerInfoListTResponse>
Update Anonymous class
{ @Override public List<WorkerInfo> call() throws AlluxioException { List<WorkerInfo> workerInfos=new ArrayList<>(); for ( alluxio.wire.WorkerInfo workerInfo : mBlockMaster.getWorkerInfoList()) { workerInfos.add(ThriftUtils.toThrift(workerInfo)); } return workerInfos; } }
to
{ @Override public GetWorkerInfoListTResponse call() throws AlluxioException { List<WorkerInfo> workerInfos=new ArrayList<>(); for ( alluxio.wire.WorkerInfo workerInfo : mBlockMaster.getWorkerInfoList()) { workerInfos.add(ThriftUtils.toThrift(workerInfo)); } return new GetWorkerInfoListTResponse(workerInfos); } }