/** * Endpoint timeout processing a message */ public void onTimeout() { if (log.isDebugEnabled()) { log.debug("Endpoint : " + endpointName + printEndpointAddress() + " will be marked for " + "SUSPENSION due to the occurrence of one of the configured errors"); } setState(ST_TIMEOUT); }
/** * Manually turn off this endpoint (e.g. for maintenence) */ public void switchOff() { log.info("Manually switching off endpoint : " + endpointName + printEndpointAddress() ); setState(ST_OFF); }
/** * Endpoint failed processing a message */ public void onFault() { log.warn("Endpoint : " + endpointName + printEndpointAddress() + " will be marked SUSPENDED as it failed"); setState(ST_SUSPENDED); }
/** * Activate this endpoint manually (i.e. from an automatic suspend or manual switch off) */ public void switchOn() { log.info("Manually activating endpoint : " + endpointName + printEndpointAddress()); setState(ST_ACTIVE); }
/** * Endpoint has processed a message successfully */ public void onSuccess() { if (isClustered) { Integer state = (Integer) cfgCtx.getPropertyNonReplicable(STATE_KEY); if ((state != null) && ((state != ST_ACTIVE) && (state != ST_OFF))) { log.info("Endpoint : " + endpointName + printEndpointAddress() + " currently " + getStateAsString() + " will now be marked active since it processed its last message"); setState(ST_ACTIVE); } } else { if (localState != ST_ACTIVE && localState != ST_OFF) { log.info("Endpoint : " + endpointName + printEndpointAddress() + " currently " + getStateAsString() + " will now be marked active since it processed its last message"); setState(ST_ACTIVE); } } }
log.debug("Checking if endpoint : " + endpointName + printEndpointAddress() + " currently at state " + getStateAsString() + " can be used now?"); log.debug("Endpoint : " + endpointName + printEndpointAddress() + " which is currently in " + "timeout state is ready to be retried. Remaining retries " + log.debug("Endpoint : " + endpointName + printEndpointAddress() + " which is currently " + "SUSPENDED, is ready to be retried now"); log.debug("Endpoint : " + endpointName + printEndpointAddress() + " which is currently in timeout " + "state is ready to be retried. Remaining retries before " + log.debug("Endpoint : " + endpointName + printEndpointAddress() + " which is currently SUSPENDED," + " is ready to be retried now"); log.debug("Endpoint : " + endpointName + printEndpointAddress() + " not ready and is currently : " + getStateAsString() + ". Next retry will be after : "
log.warn("Suspending endpoint : " + endpointName + printEndpointAddress() + (notYetSuspended ? " -" : " - last suspend duration was : " + lastSuspendDuration + "ms and") +
log.info("Endpoint : " + endpointName + printEndpointAddress() + " has been marked for SUSPENSION," + " but no further retries remain. Thus it will be SUSPENDED."); Replicator.setAndReplicateState(NEXT_RETRY_TIME_KEY, nextRetry, cfgCtx); log.warn("Endpoint : " + endpointName + printEndpointAddress() + " is marked as TIMEOUT and " + "will be retried : " + (retries - 1) + " more time/s after : " + log.info("Endpoint : " + endpointName + printEndpointAddress() + " has been marked for SUSPENSION, " + "but no further retries remain. Thus it will be SUSPENDED."); System.currentTimeMillis() + definition.getRetryDurationOnTimeout(); log.warn("Endpoint : " + endpointName + printEndpointAddress() + " is marked as TIMEOUT and " + "will be retried : " + localRemainingRetries + " more time/s " +