public static void startup() { ParticipantProcessor.setProcessor(new ParticipantProcessorImpl()) ; CoordinatorCompletionParticipantProcessor.setProcessor(new CoordinatorCompletionParticipantProcessorImpl()) ; ParticipantCompletionParticipantProcessor.setProcessor(new ParticipantCompletionParticipantProcessorImpl()) ; }
/** * The context has been initialized. * @param servletContextEvent The servlet context event. */ public static void startup() { CompletionCoordinatorProcessor.setProcessor(new CompletionCoordinatorProcessorImpl()) ; CompletionCoordinatorRPCProcessor.setProcessor(new CompletionCoordinatorRPCProcessorImpl()) ; CoordinatorProcessor.setProcessor(new CoordinatorProcessorImpl()) ; TerminationCoordinatorProcessor.setProcessor(new TerminationCoordinatorProcessorImpl()) ; TerminationCoordinatorRPCProcessor.setProcessor(new TerminationCoordinatorRPCProcessorImpl()) ; CoordinatorCompletionCoordinatorProcessor.setProcessor(new CoordinatorCompletionCoordinatorProcessorImpl()) ; ParticipantCompletionCoordinatorProcessor.setProcessor(new ParticipantCompletionCoordinatorProcessorImpl()) ; }
/** * Get the coordinator with the specified identifier. * @param instanceIdentifier The coordinator identifier as an Instanceidentifier. * @return The coordinator or null if not known. */ private CoordinatorInboundEvents getCoordinator(final InstanceIdentifier instanceIdentifier) { final String identifier = (instanceIdentifier != null ? instanceIdentifier.getInstanceIdentifier() : null) ; return getCoordinator(identifier); }
/** * Not Completed. * @param notCompleted The not completed notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void notCompleted(final NotificationType notCompleted, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final CoordinatorCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier) ; if (participant != null) { try { participant.notCompleted(notCompleted, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from notCompleted:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("NotCompleted called on unknown participant: {0}", new Object[] {instanceIdentifier}) ; } }
/** * Compensated. * @param compensated The compensated notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void compensated(final NotificationType compensated, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final ParticipantCompletionCoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ; if (coordinator != null) { try { coordinator.compensated(compensated, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from compensated:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Compensated called on unknown coordinator: {0}", new Object[] {instanceIdentifier}) ; } }
/** * Exited. * @param exited The exited notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void exited(final NotificationType exited, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final ParticipantCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier) ; if (participant != null) { try { participant.exited(exited, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from exited:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Exited called on unknown participant: {0}", new Object[] {instanceIdentifier}) ; } }
/** * Compensated. * @param compensated The compensated notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void compensated(final NotificationType compensated, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final CoordinatorCompletionCoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ; if (coordinator != null) { try { coordinator.compensated(compensated, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from compensated:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Compensated called on unknown coordinator: {0}", new Object[] {instanceIdentifier}) ; } }
/** * The context has been initialized. * @param servletContextEvent The servlet context event. */ public static void startup() { CompletionCoordinatorProcessor.setProcessor(new CompletionCoordinatorProcessorImpl()) ; CompletionCoordinatorRPCProcessor.setProcessor(new CompletionCoordinatorRPCProcessorImpl()) ; CoordinatorProcessor.setProcessor(new CoordinatorProcessorImpl()) ; TerminationCoordinatorProcessor.setProcessor(new TerminationCoordinatorProcessorImpl()) ; TerminationCoordinatorRPCProcessor.setProcessor(new TerminationCoordinatorRPCProcessorImpl()) ; CoordinatorCompletionCoordinatorProcessor.setProcessor(new CoordinatorCompletionCoordinatorProcessorImpl()) ; ParticipantCompletionCoordinatorProcessor.setProcessor(new ParticipantCompletionCoordinatorProcessorImpl()) ; }
public static void startup() { ParticipantProcessor.setProcessor(new ParticipantProcessorImpl()) ; CoordinatorCompletionParticipantProcessor.setProcessor(new CoordinatorCompletionParticipantProcessorImpl()) ; ParticipantCompletionParticipantProcessor.setProcessor(new ParticipantCompletionParticipantProcessorImpl()) ; }
/** * Not Completed. * @param notCompleted The not completed notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void notCompleted(final NotificationType notCompleted, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final CoordinatorCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier) ; if (participant != null) { try { participant.notCompleted(notCompleted, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from notCompleted:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("NotCompleted called on unknown participant: {0}", new Object[] {instanceIdentifier}) ; } }
/** * Compensated. * @param compensated The compensated notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void compensated(final NotificationType compensated, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final ParticipantCompletionCoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ; if (coordinator != null) { try { coordinator.compensated(compensated, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from compensated:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Compensated called on unknown coordinator: {0}", new Object[] {instanceIdentifier}) ; } }
/** * Get the coordinator with the specified identifier. * @param instanceIdentifier The coordinator identifier as an Instanceidentifier. * @return The coordinator or null if not known. */ private CoordinatorInboundEvents getCoordinator(final InstanceIdentifier instanceIdentifier) { final String identifier = (instanceIdentifier != null ? instanceIdentifier.getInstanceIdentifier() : null) ; return getCoordinator(identifier); }
/** * Exited. * @param exited The exited notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void exited(final NotificationType exited, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final ParticipantCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier) ; if (participant != null) { try { participant.exited(exited, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from exited:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Exited called on unknown participant: {0}", new Object[] {instanceIdentifier}) ; } }
/** * The context has been initialized. * @param servletContextEvent The servlet context event. */ public static void startup() { CompletionCoordinatorProcessor.setProcessor(new CompletionCoordinatorProcessorImpl()) ; CompletionCoordinatorRPCProcessor.setProcessor(new CompletionCoordinatorRPCProcessorImpl()) ; CoordinatorProcessor.setProcessor(new CoordinatorProcessorImpl()) ; TerminationCoordinatorProcessor.setProcessor(new TerminationCoordinatorProcessorImpl()) ; TerminationCoordinatorRPCProcessor.setProcessor(new TerminationCoordinatorRPCProcessorImpl()) ; CoordinatorCompletionCoordinatorProcessor.setProcessor(new CoordinatorCompletionCoordinatorProcessorImpl()) ; ParticipantCompletionCoordinatorProcessor.setProcessor(new ParticipantCompletionCoordinatorProcessorImpl()) ; }
public static void startup() { ParticipantProcessor.setProcessor(new ParticipantProcessorImpl()) ; CoordinatorCompletionParticipantProcessor.setProcessor(new CoordinatorCompletionParticipantProcessorImpl()) ; ParticipantCompletionParticipantProcessor.setProcessor(new ParticipantCompletionParticipantProcessorImpl()) ; }
/** * Failed. * @param failed The failed notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void failed(final NotificationType failed, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final CoordinatorCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier) ; if (participant != null) { try { participant.failed(failed, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from failed ", th); } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Failed called on unknown participant: {0}", instanceIdentifier); } }
/** * Status. * @param status The status. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void status(final StatusType status, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final ParticipantCompletionCoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ; if (coordinator != null) { try { coordinator.status(status, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from status:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Status called on unknown coordinator: {0}", new Object[] {instanceIdentifier}) ; } }
/** * Get the coordinator with the specified identifier. * @param instanceIdentifier The coordinator identifier as an Instanceidentifier. * @return The coordinator or null if not known. */ private CoordinatorInboundEvents getCoordinator(final InstanceIdentifier instanceIdentifier) { final String identifier = (instanceIdentifier != null ? instanceIdentifier.getInstanceIdentifier() : null) ; return getCoordinator(identifier); }
/** * Exited. * @param exited The exited notification. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void exited(final NotificationType exited, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final CoordinatorCompletionParticipantInboundEvents participant = getParticipant(instanceIdentifier) ; if (participant != null) { try { participant.exited(exited, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from exited:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Exited called on unknown participant: {0}", new Object[] {instanceIdentifier}) ; } }
/** * Status. * @param status The status. * @param map The addressing context. * @param arjunaContext The arjuna context. * */ public void status(final StatusType status, final MAP map, final ArjunaContext arjunaContext) { final InstanceIdentifier instanceIdentifier = arjunaContext.getInstanceIdentifier() ; final ParticipantCompletionCoordinatorInboundEvents coordinator = getCoordinator(instanceIdentifier) ; if (coordinator != null) { try { coordinator.status(status, map, arjunaContext) ; } catch (final Throwable th) { if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Unexpected exception thrown from status:", th) ; } } } else if (WSTLogger.logger.isTraceEnabled()) { WSTLogger.logger.tracev("Status called on unknown coordinator: {0}", new Object[] {instanceIdentifier}) ; } }