public Xdr sendAndWait ( String serverIP , int port , boolean usePrivilegedPort , Xdr xdrRequest , int timeout ) throws RpcException { InetSocketAddress key = InetSocketAddress . createUnresolved ( serverIP , port ) ; Map < InetSocketAddress , Connection > connectionMap = usePrivilegedPort ? _privilegedConnectionMap : _connectionMap ; Connection connection = connectionMap . get ( key ) ; if ( connection == null ) { connection = new Connection ( serverIP , port , usePrivilegedPort ) ; connectionMap . put ( key , connection ) ; connection . connect ( ) ; } return connection . sendAndWait ( timeout , xdrRequest ) ; }
Basic RPC call functionality only . Send the request creating a new connection as necessary and return the raw Xdr returned .