void de.alysis.r.submit.model.SubmitImpl.submit String  source  )  throws ModelException
 

Submits given code to the server connection.

Does not return results of any sort.

Parameters:
source 
Exceptions:
Exception 

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 //                      sb.append("; \n ");
00101                         sb.append(source);
00102 //                      sb.append("; \n ");
00103                         sb.append(out.getDisableCommands());
00104                         logger.debug(sb.toString());
00105                         connection.voidEval(sb.toString(), 20000);
00106                         // TODO Timeout!
00107                 } catch (InterruptedException e) {
00108                         throw new ModelException(e.getLocalizedMessage());
00109                 }
00110         }


Generated on Mon Jun 26 18:45:59 2006 for RSubmit by  doxygen 1.4.6