Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F1146C1EE for ; Tue, 11 Jun 2013 12:23:04 +0000 (UTC) Received: (qmail 15247 invoked by uid 500); 11 Jun 2013 12:23:04 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 14873 invoked by uid 500); 11 Jun 2013 12:23:03 -0000 Mailing-List: contact dev-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 dev@airavata.apache.org Received: (qmail 14863 invoked by uid 99); 11 Jun 2013 12:23:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 12:23:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sanjayamrt@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 12:22:55 +0000 Received: by mail-ob0-f170.google.com with SMTP id ef5so11759785obb.29 for ; Tue, 11 Jun 2013 05:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=rLE+bKbexUs2OKWIRcWUc9egQ/bgCtjOqJ1LpLVAbZc=; b=BauCmdDHt8FIRO2mfqpH+HNO/bkkQSYAD8wZZWQjlApG4i2K5CIoAY5strtPkRHkQd UZfL4B06tLMIIqDzXWwnthbnWo57yxeaV8qUwKjj/pzQYN5PVf2kaItRBgxAAJcXFVLt 7oYMEc0z8bMmhgajHEMg57+M7OYiG2eiLITZyQiSAuNnpIp2JB7Z/EjA8q2RZCyMIM0A aGUJk/qDRcyfXklgqIqCUYL9OzhXXAMQWVumvfaZ3AZpvK+vlGTyUue9Vimc0BJiOhlU 1IqWVryV8C8mo5VtLAYhiOuJnYdzTMdypq9myWQP3bMbhgwh2BD0xPQQSDrQmM2NlRX0 3eZg== MIME-Version: 1.0 X-Received: by 10.182.128.106 with SMTP id nn10mr11911228obb.72.1370953354447; Tue, 11 Jun 2013 05:22:34 -0700 (PDT) Received: by 10.76.169.133 with HTTP; Tue, 11 Jun 2013 05:22:34 -0700 (PDT) Date: Tue, 11 Jun 2013 17:52:34 +0530 Message-ID: Subject: GFac Handlers From: Sanjaya Medonsa To: dev@airavata.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1bfcab210be04dedff30b X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1bfcab210be04dedff30b Content-Type: text/plain; charset=ISO-8859-1 Hi, As per current design of Handlers, there are two types of handlers. 1. IN Handlers 2. OUT Handlers Basically IN handler does the pre processing and out handler does the post processing. With Airavata OODT integration, I am planning to implement IN handler to perform file staging and out handler perform output ingesting into CAS. That means two handler instances to handle pre/post processing. In my scenario, this approach seems bit inefficient. Both IN/OUT handlers are based on OODT PGETaskInstance. Due to current handler architecture, I need to create two instance of PGETaskInstance (One for IN handler and one for OUT handler). I guess we could have avoid this situation by having just GFac handlers which could either be IN, OUT or IN/OUT. In my case, I actually need to implement IN/OUT handler. In high level, I am proposing the following approach. 1. At configuration level no differentiation on IN/OUT handlers 2. Instead GFacHandler interface should contain two methods (preInvoke/postInvoke). Depending on the type of handler either pre/post method should be implemented. PRE - preInvoke POST - postInvoke PRE/POST - Both preInvoke/postInvoke 3. Either we could instantiate all the handlers initially and invoke all pre methods prior to task execution and invoke all post methods after task execution. If this approach is bit inefficient, then we could introduce type into handlers (PRE/POST/PREPOST). Prior to task execution we could instantiate PRE/PREPOST and invoke pre execution method.After task execution we could instantiate POST handlers and invoke postExceution method for both POST/PREPOST handlers. I guess Handler may not be the correct name here, we could name these handlers as task wrappers as it refers in OODT. Let me know your feedback. Cheers, Sanjaya --e89a8ff1bfcab210be04dedff30b--