List of usage examples for java.rmi ConnectException ConnectException
public ConnectException(String s, Exception ex)
ConnectException
with the specified detail message and nested exception. From source file:eu.openanalytics.rsb.component.SystemHealthResource.java
private void verifyRServiConnectivity(final URI rServiUri) throws Exception { RServi rServi = null;//from w w w. j av a 2 s . c o m try { // never use pooled clients to check connectivity rServi = rServiInstanceProvider.getRServiInstance(rServiUri.toString(), Constants.RSERVI_CLIENT_ID, PoolingStrategy.NEVER); } catch (final Exception e) { throw new ConnectException("Failed to retrieve an RServi instance at URI: " + rServiUri, e); } try { Validate.isTrue(Util.isRResponding(rServi), "R is not responding at URI: " + rServiUri); } finally { rServi.close(); } }