Class RExecutorFactory


  • public class RExecutorFactory
    extends Object
    This class define a factory to create RExecutor objects.
    Since:
    2.0
    Author:
    Laurent Jourdren
    • Constructor Detail

      • RExecutorFactory

        public RExecutorFactory()
    • Method Detail

      • newRExecutor

        public static RExecutor newRExecutor​(RExecutorFactory.Mode mode,
                                             String rServeServer,
                                             String dockerImage,
                                             File outputDirectory,
                                             File temporaryDirectory)
                                      throws IOException
        Create a new instance of RExecutor.
        Parameters:
        mode - executor mode
        rServeServer - the Rserve server
        dockerImage - docker image
        outputDirectory - output directory
        temporaryDirectory - temporary directory
        Returns:
        a new instance of RExecutor
        Throws:
        IOException - if an error occurs while creating the instance of RExecutor