Package org.globus.gram

Examples of org.globus.gram.GramJob.cancel()


    } catch (InterruptedException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    } finally {
      if (job != null && !jobSucsseful) {
        try {
          job.cancel();
        } catch (Exception e) {
        }
      }
    }
View Full Code Here


    try {
      ExecutionContext context = invocationContext.getExecutionContext();
      GramJob job = new GramJob("");
      job.setID(context.getExecutionModel().getJobID());
      job.setCredentials(((GSISecurityContext) context.getSecurityContext()).getGssCredentails());
      job.cancel();
    } catch (MalformedURLException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    } catch (GramException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    } catch (GSSException e) {
View Full Code Here

        try {
          Thread.sleep(2000);
        } catch (InterruptedException ie) {
          log.error("Thread " + Thread.currentThread().getName() + " interrupted", ie);
          try {
            job.cancel();
          } catch (Exception e) {
            log.error("Exception cancelling job", e);
          }
        }
      }
View Full Code Here

                try {
                    Thread.sleep(2000);
                } catch (InterruptedException ie) {
                    logger.severe("Thread " + Thread.currentThread().getName() + " interrupted");
                    try {
                        job.cancel();
                    } catch (Exception e) {
                        logger.severe("Exception cancelling job: " + e.getLocalizedMessage());
                    }
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.