/// <summary> /// Constructor for specifying a configuration options for a Pooled Task /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost/deployr )</param> /// <param name="userCredentials">RAuthentication object containing the user credentials</param> /// <param name="maxConcurrentTaskLimit">integer containing the maximum concurrent task limit</param> /// <remarks></remarks> public PooledBrokerConfig(String deployrEndpoint, RAuthentication userCredentials, int maxConcurrentTaskLimit) : base(deployrEndpoint, userCredentials, maxConcurrentTaskLimit) { m_poolCreationOptions = null; }
/// <summary> /// Constructor that takes an endpoint URL, user credentials and concurrent task limit as inputs /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost:7300/deployr )</param> /// <param name="userCredentials">RAuthentication object containing the user credentials</param> /// <param name="maxConcurrentTaskLimit">Maximum nuber of concurrent task for the RBroker instance</param> /// <remarks></remarks> public RBrokerConfig(String deployrEndpoint, RAuthentication userCredentials, int maxConcurrentTaskLimit) { m_deployrEndpoint = deployrEndpoint; m_userCredentials = userCredentials; m_maxConcurrentTaskLimit = maxConcurrentTaskLimit; }
/// <summary> /// Constructor that takes an endpoint URL and user credentials as inputs /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost:7300/deployr )</param> /// <param name="userCredentials">RAuthentication object containing the user credentials</param> /// <remarks></remarks> public RBrokerConfig(String deployrEndpoint, RAuthentication userCredentials) { m_deployrEndpoint = deployrEndpoint; m_userCredentials = userCredentials; // Default: single threaded executor, // resulting in serial task execution. m_maxConcurrentTaskLimit = 1; }
/// <summary> /// Authenticate with the RevoDeployR server /// </summary> /// <param name="authentication">A valid RAuthentication object</param> /// <param name="autosave">(optional) Flag indicating that autosave should be turned on/off for the user</param> /// <returns>RResponse object</returns> /// <remarks></remarks> public RUser login(RAuthentication authentication, Boolean autosave) { StringBuilder data = new StringBuilder(); String uri = Constants.RUSERLOGIN; //create the input String data.Append(Constants.FORMAT_JSON + "&username="******"&password="******"&save=" + HttpUtility.UrlEncode(autosave.ToString())); //call the server RClient client = this; JSONResponse jresponse = HTTPUtilities.callRESTPost(uri, data.ToString(), ref client); RUser returnValue = new RUser(jresponse, this); return(returnValue); }
/// <summary> /// Constructor for specifying a configuration options for a Descrete Task /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost/deployr )</param> /// <param name="userCredentials">RAuthentication object containing the user credentials</param> /// <remarks></remarks> public DiscreteBrokerConfig(String deployrEndpoint, RAuthentication userCredentials) : base(deployrEndpoint, userCredentials, 1) { }
/// <summary> /// Constructor for specifying a configuration options for a Background Task /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost:7300/deployr )</param> /// <param name="userCredentials">RAuthentication object containing the user credentials</param> /// <remarks></remarks> public BackgroundBrokerConfig(String deployrEndpoint, RAuthentication userCredentials) : base(deployrEndpoint, userCredentials, MAX_CONCURRENCY) { }
/// <summary> /// Constructor that takes only a endpoint URL as input /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost:7300/deployr )</param> /// <remarks></remarks> protected RBrokerConfig(String deployrEndpoint) { m_deployrEndpoint = deployrEndpoint; m_userCredentials = null; m_maxConcurrentTaskLimit = 1; }
/// <summary> /// Authenticate with the RevoDeployR server /// </summary> /// <param name="authentication">A valid RAuthentication object</param> /// <param name="autosave">(optional) Flag indicating that autosave should be turned on/off for the user</param> /// <returns>RResponse object</returns> /// <remarks></remarks> public RUser login(RAuthentication authentication, Boolean autosave) { StringBuilder data = new StringBuilder(); String uri = Constants.RUSERLOGIN; //create the input String data.Append(Constants.FORMAT_JSON + "&username="******"&password="******"&save=" + HttpUtility.UrlEncode(autosave.ToString())); //call the server RClient client = this; JSONResponse jresponse = HTTPUtilities.callRESTPost(uri, data.ToString(), ref client); RUser returnValue = new RUser(jresponse, this); return returnValue; }
/// <summary> /// Authenticate with the RevoDeployR server /// /// Auto save is defaulted to false /// </summary> /// <param name="authentication">A valid RAuthentication object</param> /// <returns>RResponse object</returns> /// <remarks></remarks> public RUser login(RAuthentication authentication) { return login(authentication, false); }
/// <summary> /// Constructor for specifying a configuration options for a Descrete Task /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost/deployr )</param> /// <param name="userCredentials">RAuthentication object containing the user credentials</param> /// <param name="maxConcurrentTaskLimit">integer containing the maximum concurrent task limit</param> /// <remarks></remarks> public DiscreteBrokerConfig(String deployrEndpoint, RAuthentication userCredentials, int maxConcurrentTaskLimit) : base(deployrEndpoint, userCredentials, maxConcurrentTaskLimit) { }
/// <summary> /// Constructor for specifying a configuration options for a Pooled Task /// </summary> /// <param name="deployrEndpoint">URL indicating the DeployR endpoint (i.e http://localhost/deployr )</param> /// <param name="userCredentials">RAuthentication object containing the user credentials</param> /// <remarks></remarks> public PooledBrokerConfig(String deployrEndpoint, RAuthentication userCredentials) : base(deployrEndpoint, userCredentials, 1) { m_poolCreationOptions = null; }
/// <summary> /// Authenticate with the RevoDeployR server /// /// Auto save is defaulted to false /// </summary> /// <param name="authentication">A valid RAuthentication object</param> /// <returns>RResponse object</returns> /// <remarks></remarks> public RUser login(RAuthentication authentication) { return(login(authentication, false)); }