public static boolean isAvailable ( ) throws Exception { try { Registry myRegistry = LocateRegistry . getRegistry ( "127.0.0.1" , port ) ; com . groupon . odo . proxylib . hostsedit . rmi . Message impl = ( com . groupon . odo . proxylib . hostsedit . rmi . Message ) myRegistry . lookup ( SERVICE_NAME ) ; return true ; } catch ( Exception e ) { return false ; } }
Returns whether or not the host editor service is available