falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Isaychuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FALCON-1535) Group all oozie-related methods in OozieClientHelper class which aggregates OozieClient
Date Tue, 13 Oct 2015 13:46:05 GMT

     [ https://issues.apache.org/jira/browse/FALCON-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Isaychuk updated FALCON-1535:
----------------------------------
    Description: 
In base test class we have a list of oozie clients related to each server (cluster).
Proposal is to create our own class for example OozieClientHelper, which aggregates OozieClient.
We will move all methods from OozieUtil, InstanceUtil which use OozieClient to this class
and will use this class instead of Util classes.
So code like:
{code}
InstanceUtil.waitTillInstanceReachState(clusterOC, Util.getProcessName(process), 1,
            Status.RUNNING, EntityType.PROCESS, timeout);
{code}
will be look like:
{code}
clusterOC.waitTillInstanceReachState(Util.getProcessName(process), 1,
            Status.RUNNING, EntityType.PROCESS, timeout);
{code}


  was:
In base test class we have a list of oozie clients related to each server (cluster).
Proposal is to create our own class for example OozieClientHelper, which extends OozieClient.
We will move all methods from OozieUtil, InstanceUtil which use OozieClient to this class
and will use this class instead of Util classes.


> Group all oozie-related methods in OozieClientHelper class which aggregates OozieClient
> ---------------------------------------------------------------------------------------
>
>                 Key: FALCON-1535
>                 URL: https://issues.apache.org/jira/browse/FALCON-1535
>             Project: Falcon
>          Issue Type: Sub-task
>          Components: merlin
>    Affects Versions: 0.6
>            Reporter: Paul Isaychuk
>            Assignee: Paul Isaychuk
>              Labels: refactoring
>
> In base test class we have a list of oozie clients related to each server (cluster).
> Proposal is to create our own class for example OozieClientHelper, which aggregates OozieClient.
We will move all methods from OozieUtil, InstanceUtil which use OozieClient to this class
and will use this class instead of Util classes.
> So code like:
> {code}
> InstanceUtil.waitTillInstanceReachState(clusterOC, Util.getProcessName(process), 1,
>             Status.RUNNING, EntityType.PROCESS, timeout);
> {code}
> will be look like:
> {code}
> clusterOC.waitTillInstanceReachState(Util.getProcessName(process), 1,
>             Status.RUNNING, EntityType.PROCESS, timeout);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message