test to see if the lock is free . returns instantaneously . concode_field_sep InetSocketAddress localhost concode_elem_sep InetSocketAddress address concode_elem_sep int DEFAULT_PORT concode_elem_sep long DELAY_BETWEEN_SOCKET_CHECKS concode_elem_sep Socket lockSocket concode_elem_sep Object syncObject concode_field_sep void unlock concode_elem_sep int getLockPort concode_elem_sep void lock
boolean function ( InetSocketAddress arg0 ) { try { lockSocket . bind ( arg0 ) ; return true ; } catch ( BindException loc0 ) { return false ; } catch ( SocketException loc0 ) { return false ; } }