Constructor for runtime mode.
00036 {
00037 logger.debug("Constructor ConnectionImpl(String, int) called.");
00038 try {
00039 if (host == null) {
00040 c = new Rconnection();
00041 }
00042 if (port > 0) {
00043 c = new Rconnection(host, port);
00044 } else {
00045 c = new Rconnection(host);
00046 }
00047 } catch (RSrvException e) {
00048 String message = "Exception from Rserver.";
00049 logger.error(message, e);
00050 e.printStackTrace();
00051 }
00052 }