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)