You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Khanh Maudoux (JIRA)" <ji...@apache.org> on 2016/12/11 18:55:58 UTC

[jira] [Created] (KNOX-814) Add kill in Oozie for ClientDSL

Khanh Maudoux created KNOX-814:
----------------------------------

             Summary: Add kill in Oozie for ClientDSL
                 Key: KNOX-814
                 URL: https://issues.apache.org/jira/browse/KNOX-814
             Project: Apache Knox
          Issue Type: Improvement
          Components: ClientDSL
    Affects Versions: 0.7.0
            Reporter: Khanh Maudoux
            Priority: Minor


The ClientDSL for Oozie shoud provide the kill method.
It could be easily done with something like that :
{code:java}
        protected Callable<Kill.Response> callable() {
            return new Callable<Kill.Response>() {
                @Override
                public Kill.Response call() throws Exception {
                    URIBuilder uri = uri( Workflow.SERVICE_PATH, "/job/", jobId );
                    uri.addParameter("action", "kill");
                    HttpPut request = new HttpPut( uri.build() );
                    return new Kill.Response( execute( request ) );
                }
            };
        }
{code}



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