public boolean execute()
throws Exception
{
CancelJobDuccEvent cancelJobDuccEvent = new CancelJobDuccEvent(jobRequestProperties);
CancelJobReplyDuccEvent cancelJobReplyDuccEvent = null;
try {
cancelJobReplyDuccEvent = (CancelJobReplyDuccEvent) dispatcher.dispatchAndWaitForDuccReply(cancelJobDuccEvent);
} catch (Exception e) {
message("Job not submitted:", e.getMessage());
return false;
} finally {
dispatcher.close();
}
/*
* process reply
*/
boolean rc = extractReply(cancelJobReplyDuccEvent);
String dpId = cancelJobReplyDuccEvent.getProperties().getProperty(UiOption.DjPid.pname());
if(dpId != null) {
canceledPid = Long.parseLong(dpId);
}
responseMessage = cancelJobReplyDuccEvent.getProperties().getProperty(UiOption.Message.pname());
// need : getResponseMessage
// : canceled Pids
// : getDuccId
// duccMessageProcessor.out("Job"+" "+jobId+" "+msg);