@Override public void fireExpectedPduResponseReceived(PduAsyncResponse pduAsyncResponse) { this.wrappedSmppSessionHandler.fireExpectedPduResponseReceived(pduAsyncResponse); }
@Override public void firePduRequestExpired(PduRequest pduRequest) { this.wrappedSmppSessionHandler.firePduRequestExpired(pduRequest); }
@Override public PduResponse firePduRequestReceived(PduRequest pduRequest) { return this.wrappedSmppSessionHandler.firePduRequestReceived(pduRequest); }
@Override public void fireExceptionThrown(Throwable t) { if (t instanceof UnrecoverablePduException) { this.sessionHandler.fireUnrecoverablePduException((UnrecoverablePduException)t); } else if (t instanceof RecoverablePduException) { this.sessionHandler.fireRecoverablePduException((RecoverablePduException)t); } else { // during testing under high load -- java.io.IOException: Connection reset by peer // let's check to see if this session was requested to be closed if (isUnbinding() || isClosed()) { logger.debug("Unbind/close was requested, ignoring exception thrown: {}", t); } else { this.sessionHandler.fireUnknownThrowable(t); } } }
PduResponse responsePdu = this.sessionHandler.firePduRequestReceived(requestPdu); logger.trace("Caller not waiting for request: {}", future.getRequest()); this.sessionHandler.fireExpectedPduResponseReceived(new DefaultPduAsyncResponse(future)); return; } else { logger.trace("Caller timed out waiting for request: {}", future.getRequest()); this.sessionHandler.fireUnexpectedPduResponseReceived(responsePdu); this.sessionHandler.fireUnexpectedPduResponseReceived(responsePdu);
@Override public void fireChannelUnexpectedlyClosed() { this.wrappedSmppSessionHandler.fireChannelUnexpectedlyClosed(); this.esme.getSmppSession().close(); // Schedule the connection again scheduleConnect(this.esme); }
@Override public void fireUnknownThrowable(Throwable e) { this.wrappedSmppSessionHandler.fireUnknownThrowable(e); // TODO is this ok? this.esme.getSmppSession().close(); // Schedule the connection again scheduleConnect(this.esme); }
@Override public void fireUnrecoverablePduException(UnrecoverablePduException e) { // TODO shall we call wrapped? this.wrappedSmppSessionHandler.fireUnrecoverablePduException(e); this.esme.getSmppSession().close(); // Schedule the connection again scheduleConnect(this.esme); }
@Override public void fireRecoverablePduException(RecoverablePduException e) { this.wrappedSmppSessionHandler.fireRecoverablePduException(e); }
@Override public void fireUnexpectedPduResponseReceived(PduResponse pduResponse) { this.wrappedSmppSessionHandler.fireUnexpectedPduResponseReceived(pduResponse); }
@Override public void fireExceptionThrown(Throwable t) { if (t instanceof UnrecoverablePduException) { this.sessionHandler.fireUnrecoverablePduException((UnrecoverablePduException)t); } else if (t instanceof RecoverablePduException) { this.sessionHandler.fireRecoverablePduException((RecoverablePduException)t); } else { // during testing under high load -- java.io.IOException: Connection reset by peer // let's check to see if this session was requested to be closed if (isUnbinding() || isClosed()) { logger.debug("Unbind/close was requested, ignoring exception thrown: {}", t); } else { this.sessionHandler.fireUnknownThrowable(t); } } }
PduResponse responsePdu = this.sessionHandler.firePduRequestReceived(requestPdu); logger.trace("Caller not waiting for request: {}", future.getRequest()); this.sessionHandler.fireExpectedPduResponseReceived(new DefaultPduAsyncResponse(future)); return; } else { logger.trace("Caller timed out waiting for request: {}", future.getRequest()); this.sessionHandler.fireUnexpectedPduResponseReceived(responsePdu); this.sessionHandler.fireUnexpectedPduResponseReceived(responsePdu);
@Override public void fireChannelUnexpectedlyClosed() { this.wrappedSmppSessionHandler.fireChannelUnexpectedlyClosed(); if (this.esme.getSmppSession() != null) { this.esme.getSmppSession().close(); } // Schedule the connection again scheduleConnect(this.esme); }
@Override public void fireUnknownThrowable(Throwable e) { this.wrappedSmppSessionHandler.fireUnknownThrowable(e); // TODO is this ok? if (this.esme.getSmppSession() != null) { this.esme.getSmppSession().close(); } // Schedule the connection again scheduleConnect(this.esme); }
@Override public void fireUnrecoverablePduException(UnrecoverablePduException e) { // TODO shall we call wrapped? this.wrappedSmppSessionHandler.fireUnrecoverablePduException(e); this.esme.getSmppSession().close(); // Schedule the connection again scheduleConnect(this.esme); }
@Override public void fireRecoverablePduException(RecoverablePduException e) { this.wrappedSmppSessionHandler.fireRecoverablePduException(e); }
@Override public void fireUnexpectedPduResponseReceived(PduResponse pduResponse) { this.wrappedSmppSessionHandler.fireUnexpectedPduResponseReceived(pduResponse); }
@Override public void fireExceptionThrown(Throwable t) { if (t instanceof UnrecoverablePduException) { this.sessionHandler.fireUnrecoverablePduException((UnrecoverablePduException)t); } else if (t instanceof RecoverablePduException) { this.sessionHandler.fireRecoverablePduException((RecoverablePduException)t); } else { // during testing under high load -- java.io.IOException: Connection reset by peer // let's check to see if this session was requested to be closed if (isUnbinding() || isClosed()) { logger.debug("Unbind/close was requested, ignoring exception thrown: {}", t); } else { this.sessionHandler.fireUnknownThrowable(t); } } }
PduResponse responsePdu = this.sessionHandler.firePduRequestReceived(requestPdu); logger.trace("Caller not waiting for request: {}", future.getRequest()); this.sessionHandler.fireExpectedPduResponseReceived(new DefaultPduAsyncResponse(future)); return; } else { logger.trace("Caller timed out waiting for request: {}", future.getRequest()); this.sessionHandler.fireUnexpectedPduResponseReceived(responsePdu); this.sessionHandler.fireUnexpectedPduResponseReceived(responsePdu);
@Override public void firePduRequestExpired(PduRequest pduRequest) { this.wrappedSmppSessionHandler.firePduRequestExpired(pduRequest); }