@Override public void initializeEventDispatcher() { if (logger.isDebugEnabled()) { logger.debug(" Creating the GatewayEventRemoteDispatcher"); } if (this.sender.getRemoteDSId() != GatewaySender.DEFAULT_DISTRIBUTED_SYSTEM_ID) { this.dispatcher = new GatewaySenderEventRemoteDispatcher(this); } }
@Override public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("GatewayEventProcessor[").append("gatewaySenderId=").append(sender.getId()) .append(";remoteDSId=").append(getSender().getRemoteDSId()).append(";batchSize=") .append(getSender().getBatchSize()); buffer.append("]"); return buffer.toString(); }
@Override public void initializeEventDispatcher() { if (logger.isDebugEnabled()) { logger.debug(" Creating the GatewayEventRemoteDispatcher"); } // In case of serial there is a way to create gatewaySender and attach // asyncEventListener. Not sure of the use-case but there are dunit tests // To make them pass uncommenting the below condition if (this.sender.getRemoteDSId() != GatewaySender.DEFAULT_DISTRIBUTED_SYSTEM_ID) { this.dispatcher = new GatewaySenderEventRemoteDispatcher(this); } else { this.dispatcher = new GatewaySenderEventCallbackDispatcher(this); } }
private void checkCompatibility(GatewaySenderProfile sp) { if (sp.remoteDSId != sender.getRemoteDSId()) { throw new IllegalStateException( String.format(
if (seca.getOriginatingDSId() == GatewaySender.DEFAULT_DISTRIBUTED_SYSTEM_ID) { seca.setOriginatingDSId(sender.getMyDSId()); seca.initializeReceipientDSIds(Collections.singletonList(sender.getRemoteDSId()));
logger.debug( "{}: Event originated in {}. My DS id is {}. The remote DS id is {}. The recipients are: {}", this, seca.getOriginatingDSId(), this.getMyDSId(), this.getRemoteDSId(), seca.getRecipientDSIds()); logger.debug( "{}: Event originated in {}. My DS id is {}. The remote DS id is {}. The recipients are: {}", this, seca.getOriginatingDSId(), this.getMyDSId(), this.getRemoteDSId(), seca.getRecipientDSIds()); if (seca.getOriginatingDSId() == this.getRemoteDSId()) { if (isDebugEnabled) { logger.debug( } else if (seca.getRecipientDSIds().contains(this.getRemoteDSId())) { if (isDebugEnabled) { logger.debug( "{}: Event originated in {}. My DS id is {}. The remote DS id is {}.. It is being dropped as remote ds is already a recipient. Recipients are: {}", this, seca.getOriginatingDSId(), getMyDSId(), this.getRemoteDSId(), seca.getRecipientDSIds());