check connection state.
Note that currently this state is not checked on-the-spot, that is if connection went down by an outside event this is not reflected by the flag
- Returns:
true if this connection is alive
Implements de.alysis.r.basemodel.connection.BaseConnection. 00111 {
00112 logger.debug("isConnected() called.");
00113 REXP x;
00114 try {
00115 voidEval("R.version.string", 500);
00116 } catch (ModelException e) {
00117 e.printStackTrace();
00118 return false;
00119 }
00120 return true;
00121 }
|