void de.alysis.r.basemodel.connection.BaseConnectionImpl.setSendBufferSize long  sbs  )  throws ModelException
 

Sets send buffer size of the Rserve (in bytes) for the current connection.

All responses send by Rserve are stored in the send buffer before transmitting. This means that any objects you want to get from the Rserve need to fit into that buffer. By default the size of the send buffer is 2MB. If you need to receive larger objects from Rserve, you will need to use this function to enlarge the buffer. In order to save memory, you can also reduce the buffer size once it's not used anymore. Currently the buffer size is only limited by the memory available and/or 1GB (whichever is smaller). Current Rserve implementations won't go below buffer sizes of 32kb though. If the specified buffer size results in 'out of memory' on the server, the corresponding error is sent and the connection is terminated.
Note: This command may go away in future versions of Rserve which will use dynamic send buffer allocation.

Parameters:
sbs send buffer size (in bytes) min=32k, max=1GB

Implements de.alysis.r.basemodel.connection.BaseConnection.

00155                                                                       {
00156                 logger.debug("setSendBufferSize(long sbs) called.");
00157                 try {
00158                         c.setSendBufferSize(sbs);
00159                 } catch (RSrvException e) {
00160                         String message = "Exception from Rserve. ";
00161                         logger.error(message, e);
00162                         throw new ModelException(e.getLocalizedMessage());
00163                 }
00164         }


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