4445464748495051
protected ServerSocket createServerSocket(int portNumber) throws StatusException { try { return new ServerSocket(portNumber); } catch (IOException ioe) { throw new StatusException("Error creating socket on port " + portNumber + ".", ioe); } }
5455565758596061
this.sentinelFile = getSentinelFile(); try { FileUtil.writeStringToFile(sentinelFile, getServerPortNumber()+"", StringUtil.UTF8); } catch (IOException e) { throw new StatusException("Error writing to sentinel file " + sentinelFile, e); } }