int function ( RemoteTransactionManager arg0 ) { if ( arg0 == null ) return - 1 ; int loc0 = 0 ; for ( RemoteTransactionManager loc1 : routing . getTMs ( ) ) { if ( loc1 . getIp ( ) . equals ( arg0 . getIp ( ) ) && loc1 . getPort ( ) == arg0 . getPort ( ) ) { return loc0 ; } ++ loc0 ; } return - 1 ; }
returns the locality hash associated with the passed remotetransactionmanager . concode_field_sep RoutingTable routing concode_elem_sep int tmPort concode_elem_sep boolean isAMReady concode_elem_sep HDFSLogger log concode_elem_sep String tmIp concode_elem_sep int CHECKPOINT_PERIOD_MS concode_field_sep JSONObject sendToAppMaster concode_elem_sep void main concode_elem_sep void run concode_elem_sep boolean isLocalLocalityHash concode_elem_sep List<RemoteTransactionManager> getOtherTMs concode_elem_sep JSONObject sendToTransactionManager concode_elem_sep int getNumberOfTMs concode_elem_sep void startCheckpointThread