Toggle navigation
Home
tachyon.thrift.ClientLocationInfo to java.lang.String
No. of Instances - 23
No. of Commits - 3
No. of Projects - {'alluxio'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Internal -> Jdk
Mapping:
Cascading Type Change (Similar)
ClientLocationInfo
to
String
ClientLocationInfo
to
String
AsyncMethodCallback<ClientLocationInfo>
to
AsyncMethodCallback<String>
Rename Variable
locationInfo
to
blockPath
locationInfo
to
blockPath
mLockedBlockIdToLocationInfo
to
mLockedBlockIdToPath
mLockedBlockIdToLocationInfo
to
mLockedBlockIdToPath
mLockedBlockIdToLocationInfo
to
mLockedBlockIdToPath
Rename Method invocation
getLocalBlockLocation
to
getBlockLocation
Cascading Type Change (Different)
getLocalBlockLocation_result
to
getBlockLocation_result
FileDoesNotExistException
to
FileAlreadyExistException
Update Anonymous class
{ public void onComplete( ClientLocationInfo o){ getLocalBlockLocation_result result=new getLocalBlockLocation_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; getLocalBlockLocation_result result=new getLocalBlockLocation_result(); if (e instanceof FileDoesNotExistException) { result.eP=(FileDoesNotExistException)e; result.setEPIsSet(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( String o){ getBlockLocation_result result=new getBlockLocation_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; getBlockLocation_result result=new getBlockLocation_result(); if (e instanceof OutOfSpaceException) { result.eP=(OutOfSpaceException)e; result.setEPIsSet(true); msg=result; } else if (e instanceof FileAlreadyExistException) { result.eS=(FileAlreadyExistException)e; result.setESIsSet(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(); } }