Exemplo n.º 1
0
        /// <summary>
        /// Return the status of a submitted job.
        /// </summary>
        /// <param name="requestIdentifier">Identifier for the request of interest.</param>
        /// <returns>The status of the request.</returns>
        public ServiceRequestInformation GetRequestStatus(string requestIdentifier)
        {
            ServiceRequestInformation status = new ServiceRequestInformation();

            status.StatusInformation = _blastClient.checkStatus(requestIdentifier);

            switch (status.StatusInformation)
            {
            case StatusDone:
                status.Status = ServiceRequestStatus.Ready;
                break;

            case StatusPending:
                status.Status = ServiceRequestStatus.Queued;
                break;

            case StatusRunning:
                status.Status = ServiceRequestStatus.Waiting;
                break;

            default:
                status.Status = ServiceRequestStatus.Error;
                break;
            }

            return(status);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Return the status of a submitted job.
        /// </summary>
        /// <param name="requestIdentifier">Identifier for the request of interest.</param>
        /// <returns>The status of the request.</returns>
        public ServiceRequestInformation GetRequestStatus(string requestIdentifier)
        {
            ServiceRequestInformation status = new ServiceRequestInformation();

            status.StatusInformation = _blastClient.checkStatus(requestIdentifier);

            switch (status.StatusInformation)
            {
            case STATUSDONE:
                status.Status = ServiceRequestStatus.Ready;
                break;

            case STATUSPENDING:
                status.Status = ServiceRequestStatus.Queued;
                break;

            case STATUSRUNNING:
                status.Status = ServiceRequestStatus.Waiting;
                break;

            default:
                status.Status = ServiceRequestStatus.Error;
                break;
            }

            return(status);
        }