/// <summary>
        ///  Retreive execution result list on project
        /// </summary>
        /// <returns>List of RProjectResult objects</returns>
        /// <remarks></remarks>
        public List <RProjectResult> listResults()
        {
            List <RProjectResult> returnValue = RProjectExecuteImpl.listResults(m_projectDetails, m_client, Constants.RPROJECTEXECUTERESULTLIST);

            return(returnValue);
        }
        /// <summary>
        /// Retrieve execution history on project
        /// </summary>
        /// <param name="options">Options for returning the History</param>
        /// <returns>List of RProjectExecution objects</returns>
        /// <remarks></remarks>
        public List <RProjectExecution> getHistory(ProjectHistoryOptions options)
        {
            List <RProjectExecution> returnValue = RProjectExecuteImpl.getHistory(m_projectDetails, options, m_client, Constants.RPROJECTEXECUTEHISTORY);

            return(returnValue);
        }
 /// <summary>
 /// Interrupt execution on project
 /// </summary>interruptExecution
 /// <remarks></remarks>
 public void interruptExecution()
 {
     RProjectExecuteImpl.interruptExecution(m_projectDetails, m_client, Constants.RPROJECTEXECUTEINTERRUPT);
 }
 /// <summary>
 /// Flush execution history on project
 /// </summary>
 /// <remarks></remarks>
 public void flushHistory()
 {
     RProjectExecuteImpl.flushHistory(m_projectDetails, m_client, Constants.RPROJECTEXECUTEFLUSH);
 }
        /// <summary>
        /// Execute R script from the repository on a project
        /// </summary>
        /// <returns>String containing console text</returns>
        /// <remarks></remarks>
        public String getConsole()
        {
            String returnValue = System.Convert.ToString(RProjectExecuteImpl.getConsole(m_projectDetails, m_client, Constants.RPROJECTEXECUTECONSOLE));

            return(returnValue);
        }
        /// <summary>
        /// Execute a single script found on a URL/path or a chain of scripts found on a set of URLs/paths
        /// on the current project.
        ///
        /// To execute a chain of repository-managed scripts on this call provide a comma-separated
        /// list of values on the externalSource parameter.
        /// Chained execution executes each of the scripts identified on the call in a sequential
        /// fashion on the R session, with execution occuring in the order specified on the parameter list.
        ///
        /// POWER_USER privileges are required for this call.
        /// </summary>
        /// <param name="externalSource">RScript represented as a URL or DeployR file path</param>
        /// <param name="options">Options for this execution</param>
        /// <returns>RProjectExecution object</returns>
        /// <remarks></remarks>
        public RProjectExecution executeExternal(String externalSource, ProjectExecutionOptions options)
        {
            RProjectExecution returnValue = RProjectExecuteImpl.executeScript(m_projectDetails, null, null, null, null, externalSource, options, m_client, Constants.RPROJECTEXECUTESCRIPT);

            return(returnValue);
        }
        /// <summary>
        /// Execute a single repository-managed script or a chain of repository-managed scripts
        /// on the current project.
        ///
        /// To execute a chain of repository-managed scripts on this call provide a comma-separated
        /// list of values on the scriptName, scriptAuthor and optionally scriptVersion parameters.
        /// Chained execution executes each of the scripts identified on the call in a sequential
        /// fashion on the R session, with execution occuring in the order specified on the parameter list.
        ///
        /// Deprecated. As of release 7.1, use executeScript method that supports scriptDirectory parameter. This deprecated call assumes each script is found in the root directory.
        ///
        /// </summary>
        /// <param name="scriptName">name of valid R Script</param>
        /// <param name="scriptAuthor">author of the R Script</param>
        /// <param name="scriptVersion">version of the R Script to execute</param>
        /// <param name="options">Options for this execution</param>
        /// <returns>RProjectExecution object</returns>
        /// <remarks></remarks>
        public RProjectExecution executeScript(String scriptName, String scriptAuthor, String scriptVersion, ProjectExecutionOptions options)
        {
            RProjectExecution returnValue = RProjectExecuteImpl.executeScript(m_projectDetails, scriptName, "root", scriptAuthor, scriptVersion, null, options, m_client, Constants.RPROJECTEXECUTESCRIPT);

            return(returnValue);
        }
        /// <summary>
        /// Execute R code on a project
        /// </summary>
        /// <param name="code">R code to be executed</param>
        /// <param name="options">Options for this execution</param>
        /// <returns>RProjectExecution object</returns>
        /// <remarks></remarks>
        public RProjectExecution executeCode(String code, ProjectExecutionOptions options)
        {
            RProjectExecution returnValue = RProjectExecuteImpl.executeCode(m_projectDetails, code, options, m_client, Constants.RPROJECTEXECUTECODE);

            return(returnValue);
        }
        /// <summary>
        /// Download all results on a project.
        /// </summary>
        /// <returns>List of URLs corresponding to the results</returns>
        /// <remarks></remarks>
        public String downloadResults()
        {
            String returnValue = System.Convert.ToString(RProjectExecuteImpl.downloadResults(m_projectDetails, m_client, Constants.RPROJECTEXECUTERESULTDOWNLOAD));

            return(returnValue);
        }
Esempio n. 10
0
 /// <summary>
 /// Delete execution results on project
 /// </summary>
 /// <remarks></remarks>
 public void deleteResults()
 {
     RProjectExecuteImpl.deleteResults(m_projectDetails, m_client, Constants.RPROJECTEXECUTERESULTDELETE);
 }