Toggle navigation
Home
java.lang.Boolean to java.util.List<tachyon.thrift.WorkerInfo>
No. of Instances - 3
No. of Commits - 1
No. of Projects - {'alluxio'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Cascading Type Change (Different)
addCheckpoint_result
to
getWorkerInfoList_result
Cascading Type Change (Similar)
Boolean
to
List<WorkerInfo>
AsyncMethodCallback<Boolean>
to
AsyncMethodCallback<List<WorkerInfo>>
Update Anonymous class
{ public void onComplete( Boolean o){ addCheckpoint_result result=new addCheckpoint_result(); result.success=o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result,org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch ( Exception e) { LOGGER.error("Exception writing to internal frame buffer",e); } fb.close(); } public void onError( Exception e){ byte msgType=org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; addCheckpoint_result result=new addCheckpoint_result(); if (e instanceof FileDoesNotExistException) { result.eP=(FileDoesNotExistException)e; result.setEPIsSet(true); msg=result; } else if (e instanceof SuspectedFileSizeException) { result.eS=(SuspectedFileSizeException)e; result.setESIsSet(true); msg=result; } else if (e instanceof BlockInfoException) { result.eB=(BlockInfoException)e; result.setEBIsSet(true); msg=result; } else { msgType=org.apache.thrift.protocol.TMessageType.EXCEPTION; msg=(org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch ( Exception ex) { LOGGER.error("Exception writing to internal frame buffer",ex); } fb.close(); } }
to
{ public void onComplete( List<WorkerInfo> o){ getWorkerInfoList_result result=new getWorkerInfoList_result(); result.success=o; try { fcall.sendResponse(fb,result,org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch ( Exception e) { LOGGER.error("Exception writing to internal frame buffer",e); } fb.close(); } public void onError( Exception e){ byte msgType=org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; getWorkerInfoList_result result=new getWorkerInfoList_result(); { msgType=org.apache.thrift.protocol.TMessageType.EXCEPTION; msg=(org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch ( Exception ex) { LOGGER.error("Exception writing to internal frame buffer",ex); } fb.close(); } }