Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E0E50200D53 for ; Tue, 5 Dec 2017 13:52:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DF6DB160C1B; Tue, 5 Dec 2017 12:52:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 30FAC160C0A for ; Tue, 5 Dec 2017 13:52:47 +0100 (CET) Received: (qmail 56896 invoked by uid 500); 5 Dec 2017 12:52:46 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 56887 invoked by uid 99); 5 Dec 2017 12:52:46 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Dec 2017 12:52:46 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id C0D7C82082; Tue, 5 Dec 2017 12:52:45 +0000 (UTC) Date: Tue, 05 Dec 2017 12:52:45 +0000 To: "commits@airavata.apache.org" Subject: [airavata-sandbox] branch master updated: Updated read me and added changes to the client file (#22) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <151247836574.1291.562376766838578694@gitbox.apache.org> From: smarru@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: airavata-sandbox X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: e8a8495e0d3439ae93e7fa0149465844095e2dbc X-Git-Newrev: 4b072afdccc786c1adcf727671557a88504ef244 X-Git-Rev: 4b072afdccc786c1adcf727671557a88504ef244 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Tue, 05 Dec 2017 12:52:48 -0000 This is an automated email from the ASF dual-hosted git repository. smarru pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata-sandbox.git The following commit(s) were added to refs/heads/master by this push: new 4b072af Updated read me and added changes to the client file (#22) 4b072af is described below commit 4b072afdccc786c1adcf727671557a88504ef244 Author: nikchett AuthorDate: Tue Dec 5 07:52:44 2017 -0500 Updated read me and added changes to the client file (#22) * Added cpi methods * Adding cpi methods * Adding new admin related project * Update README * synced with airavata dependencies * VerifiedNotification Manager * Added client for notification module * Adding reviewer and admin client * Removing redudant dependies * Removing redudant dependies * Removing redudant dependies * Removing redudant dependies * Adding change to the admin client * Update README --- allocation-manager/README | 23 ++++++++++++++++++++++ .../client/AllocationManagerAdminClient.java | 3 +++ 2 files changed, 26 insertions(+) diff --git a/allocation-manager/README b/allocation-manager/README index bcf263e..a271cee 100644 --- a/allocation-manager/README +++ b/allocation-manager/README @@ -6,11 +6,34 @@ The allocation manager feauture consists of three types of users: * Reviewer - reviews the request and makes decision for allocation * Admin - Initiates and manages the review process +The allocation manager consists of the basic setup for the feature which will be continuously built on : The airvata-allocation-manager is a multi-module consists of the the following modules: * airvata-allocation-manager-server - This consists of details of the database connections and the entity classes. * airvata-allocation-manager-stubs - This consists of the models which represent the database table entities and also the servicehandler. The service handler (AllocationManagerServerHandler) functions interact with the database repository functions. +The stubs consists of the client files which will be used to communicate to the micro-services. +The AllocationManagerServerHandler.java file consists of all the functions which represent action by different roles involved in the feature. + +The allocation manager current consists of : + +* A user client and server +* An admin client and server +* An reviewer client and server. +* A notification manager. + +The clients (present in stubs module) and server(present in server module) communicate using Apache Thrift with AllocationManagerServerHandler being the common part. + +Presently , The reviewer and admin are performing the following functions: + +* The reviewer performs can view the details of the request using the getAllocationRequest() function and thereby approve or deny. + The status is updated using updateAllocationRequestStatus(). + + * The admin performs can view the details of the request using the getAllocationRequest() function and the reviewers decision using getAllocationRequestStatus() and thereby approve or deny. + The status is updated using updateAllocationRequestStatus(). + + +1. The reviewer fetches Currently, the implementation consists of a notification- manager The notification manager of Allocation manager performs the functions of notifying the user/admin/reviewer the status of a request. diff --git a/allocation-manager/airavata-allocation-manager/airavata-allocation-manager-stubs/src/main/java/org/apache/airavata/allocation/manager/client/AllocationManagerAdminClient.java b/allocation-manager/airavata-allocation-manager/airavata-allocation-manager-stubs/src/main/java/org/apache/airavata/allocation/manager/client/AllocationManagerAdminClient.java index d4727bd..2cd65ba 100644 --- a/allocation-manager/airavata-allocation-manager/airavata-allocation-manager-stubs/src/main/java/org/apache/airavata/allocation/manager/client/AllocationManagerAdminClient.java +++ b/allocation-manager/airavata-allocation-manager/airavata-allocation-manager-stubs/src/main/java/org/apache/airavata/allocation/manager/client/AllocationManagerAdminClient.java @@ -23,8 +23,11 @@ public class AllocationManagerAdminClient { client.updateAllocationRequestStatus(projectId, status); } else if(requestType.equals("GET_REQUEST")){ client.getAllocationRequest(projectId); + } else if(requestType.equals("GET_REQUEST_STATUS")){ + client.getAllocationRequestStatus(projectId); } + transport.close(); } catch (TTransportException e) { e.printStackTrace(); -- To stop receiving notification emails like this one, please contact ['"commits@airavata.apache.org" '].