/** * Endpoint failed processing a message */ public void onFault() { log.warn("Endpoint : " + endpointName + " will be marked SUSPENDED as it failed"); setState(ST_SUSPENDED); }
/** * Manually turn off this endpoint (e.g. for maintenence) */ public void switchOff() { log.info("Manually switching off endpoint : " + endpointName); setState(ST_OFF); }
/** * Activate this endpoint manually (i.e. from an automatic suspend or manual switch off) */ public void switchOn() { log.info("Manually activating endpoint : " + endpointName); setState(ST_ACTIVE); }
/** * Endpoint timeout processing a message */ public void onTimeout() { if (log.isDebugEnabled()) { log.debug("Endpoint : " + endpointName + " 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 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); }
/** * 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 + " 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 + " currently " + getStateAsString() + " will now be marked active since it processed its last message"); 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); } } }