Submits given code to the server connection.
Does not return results of any sort.
- Parameters:
-
- Exceptions:
-
Implements de.alysis.r.submit.model.Submit. 00084 {
00085 try {
00086 if (connection == null || connection.isConnected() == false) {
00087 String message = "Not connected.";
00088 logger.error(message);
00089 throw new ModelException(message);
00090 }
00091 if (out == null) {
00092 String message = "No output methods defined.";
00093 logger.error(message);
00094 throw new ModelException(message);
00095 }
00096 logger.debug("submit() called with source: " + source);
00097 ;
00098 StringBuffer sb = new StringBuffer();
00099 sb.append(out.getEnableCommands());
00100
00101 sb.append(source);
00102
00103 sb.append(out.getDisableCommands());
00104 logger.debug(sb.toString());
00105 connection.voidEval(sb.toString(), 20000);
00106
00107 } catch (InterruptedException e) {
00108 throw new ModelException(e.getLocalizedMessage());
00109 }
00110 }
|