Toggle navigation
Home
tachyon.thrift.ClientBlockInfo to java.util.List<tachyon.thrift.FileBlockInfo>
No. of Instances - 3
No. of Commits - 1
No. of Projects - {'alluxio'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Jdk
Mapping:
Rename Method invocation
user_getClientBlockInfo
to
getFileBlockInfoList
Cascading Type Change (Different)
user_getClientBlockInfo_result
to
getFileBlockInfoList_result
Cascading Type Change (Similar)
ClientBlockInfo
to
List<FileBlockInfo>
AsyncMethodCallback<ClientBlockInfo>
to
AsyncMethodCallback<List<FileBlockInfo>>
Update Anonymous class
{ public void onComplete( ClientBlockInfo o){ user_getClientBlockInfo_result result=new user_getClientBlockInfo_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; user_getClientBlockInfo_result result=new user_getClientBlockInfo_result(); if (e instanceof FileDoesNotExistException) { result.eF=(FileDoesNotExistException)e; result.setEFIsSet(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<FileBlockInfo> o){ getFileBlockInfoList_result result=new getFileBlockInfoList_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; getFileBlockInfoList_result result=new getFileBlockInfoList_result(); if (e instanceof FileDoesNotExistException) { result.fdnee=(FileDoesNotExistException)e; result.setFdneeIsSet(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(); } }