Examples of ExecutionFailEvent


Examples of org.apache.airavata.gfac.core.notification.events.ExecutionFailEvent

            } catch (NullPointerException e1) {
                log.error("Error occured during updating the statuses of Experiments,tasks or Job statuses to failed, " +
                        "NullPointerException occurred because at this point there might not have Job Created", e1, e);
            }
            jobExecutionContext.setProperty(ERROR_SENT, "true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.notification.events.ExecutionFailEvent

            } catch (NullPointerException e1) {
                log.error("Error occured during updating the statuses of Experiments,tasks or Job statuses to failed, " +
                        "NullPointerException occurred because at this point there might not have Job Created", e1, e);
            }
            jobExecutionContext.setProperty(ERROR_SENT, "true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.notification.events.ExecutionFailEvent

            } catch (NullPointerException e1) {
                log.error("Error occured during updating the statuses of Experiments,tasks or Job statuses to failed, " +
                        "NullPointerException occurred because at this point there might not have Job Created", e1, e);
            }
            jobExecutionContext.setProperty(ERROR_SENT, "true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.core.notification.events.ExecutionFailEvent

            } catch (NullPointerException e1) {
                log.error("Error occured during updating the statuses of Experiments,tasks or Job statuses to failed, " +
                        "NullPointerException occurred because at this point there might not have Job Created", e1, e);
            }
            jobExecutionContext.setProperty(ERROR_SENT, "true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.notification.events.ExecutionFailEvent

                disposeProvider(provider, jobExecutionContext);
            }

            invokeOutFlowHandlers(jobExecutionContext);
        } catch (GFacException e) {
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw e;
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.notification.events.ExecutionFailEvent

                disposeProvider(provider, jobExecutionContext);
            }

        } catch (GFacException e) {
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw e;
        } finally {
            try{
            invokeOutFlowHandlers(jobExecutionContext);
            }catch(GFacException e){
                // This will avoid getting two error notification messages if there's already an error in provider
                if(!Boolean.getBoolean((String)jobExecutionContext.getProperty(ERROR_SENT))){
                  jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            }
               throw e;
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.notification.events.ExecutionFailEvent

                disposeProvider(provider, jobExecutionContext);
            }

        } catch (GFacException e) {
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw e;
        } catch (Exception e){
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e);
        }
        finally {
            try{
            invokeOutFlowHandlers(jobExecutionContext);
            }catch(GFacException e){
                // This will avoid getting two error notification messages if there's already an error in provider
                if(!Boolean.getBoolean((String)jobExecutionContext.getProperty(ERROR_SENT))){
                  jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            }
               throw e;
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.notification.events.ExecutionFailEvent

                disposeProvider(provider, jobExecutionContext);
            }

        }catch (Exception e){
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(),e);
        }
        finally {
            try{
            invokeOutFlowHandlers(jobExecutionContext);
            }catch(GFacException e){
                // This will avoid getting two error notification messages if there's already an error in provider
                if(!Boolean.getBoolean((String)jobExecutionContext.getProperty(ERROR_SENT))){
                  jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            }
               throw e;
            }
        }
    }
View Full Code Here

Examples of org.apache.airavata.gfac.notification.events.ExecutionFailEvent

                disposeProvider(provider, jobExecutionContext);
            }
            invokeOutFlowHandlers(jobExecutionContext);
        }catch (Exception e){
            jobExecutionContext.setProperty(ERROR_SENT,"true");
            jobExecutionContext.getNotifier().publish(new ExecutionFailEvent(e.getCause()));
            throw new GFacException(e.getMessage(),e);
        }
    }
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.