/** * introduce extendability for handling provisioning exceptions * * @param idPName * @param connectorType * @param provisioningEntity * @param executors * @param e */ protected void handleException(String idPName, String connectorType, ProvisioningEntity provisioningEntity, ExecutorService executors, Exception e) { if (log.isDebugEnabled()) { log.debug(generateMessageOnFailureProvisioningOperation(idPName, connectorType, provisioningEntity), e); } }
/** * introduce extendability for handling provisioning exceptions * * @param idPName * @param connectorType * @param provisioningEntity * @param executors * @param e */ protected void handleException(String idPName, String connectorType, ProvisioningEntity provisioningEntity, ExecutorService executors, Exception e) { if (log.isDebugEnabled()) { log.debug(generateMessageOnFailureProvisioningOperation(idPName, connectorType, provisioningEntity), e); } }
/** * introduce extendability for handling provisioning exceptions * * @param idPName * @param connectorType * @param provisioningEntity * @param executors * @param e */ protected void handleException(String idPName, String connectorType, ProvisioningEntity provisioningEntity, ExecutorService executors, Exception e) { if (log.isDebugEnabled()) { log.debug(generateMessageOnFailureProvisioningOperation(idPName, connectorType, provisioningEntity), e); } }
private void executeOutboundProvisioning(ProvisioningEntity provisioningEntity, ExecutorService executors, String connectorType, String idPName, Callable<Boolean> proThread, boolean isBlocking) throws IdentityProvisioningException { if (!isBlocking) { executors.submit(proThread); } else { try { boolean success = proThread.call(); if (!success) { if (executors != null) { executors.shutdown(); } throw new IdentityProvisioningException (generateMessageOnFailureProvisioningOperation(idPName, connectorType, provisioningEntity)); //DO Rollback } } catch (Exception e) { //call() of Callable interface throws this exception handleException(idPName, connectorType, provisioningEntity, executors, e); } } }
private void executeOutboundProvisioning(ProvisioningEntity provisioningEntity, ExecutorService executors, String connectorType, String idPName, Callable<Boolean> proThread, boolean isBlocking) throws IdentityProvisioningException { if (!isBlocking) { executors.submit(proThread); } else { try { boolean success = proThread.call(); if (!success) { if (executors != null) { executors.shutdown(); } throw new IdentityProvisioningException (generateMessageOnFailureProvisioningOperation(idPName, connectorType, provisioningEntity)); //DO Rollback } } catch (Exception e) { //call() of Callable interface throws this exception handleException(idPName, connectorType, provisioningEntity, executors, e); } } }
private void executeOutboundProvisioning(ProvisioningEntity provisioningEntity, ExecutorService executors, String connectorType, String idPName, Callable<Boolean> proThread, boolean isBlocking) throws IdentityProvisioningException { if (!isBlocking) { executors.submit(proThread); } else { try { boolean success = proThread.call(); if (!success) { if (executors != null) { executors.shutdown(); } throw new IdentityProvisioningException (generateMessageOnFailureProvisioningOperation(idPName, connectorType, provisioningEntity)); //DO Rollback } } catch (Exception e) { //call() of Callable interface throws this exception handleException(idPName, connectorType, provisioningEntity, executors, e); } } }