@Override public void onException(IOException error) { if (!futureRemoteBrokerInfo.isDone()) { LOG.info("error with pending remote brokerInfo on: " + remoteBroker, error); futureRemoteBrokerInfo.cancel(true); return; } serviceRemoteException(error); } });
@Override public void onCompletion(FutureResponse resp) { try { Response reply = resp.getResult(); reply.setCorrelationId(correlationId); remoteBroker.oneway(reply); //increment counter when messages are received in duplex mode networkBridgeStatistics.getReceivedCount().increment(); } catch (IOException error) { LOG.error("Exception: {} on duplex forward of: {}", error, message); serviceRemoteException(error); } } });
startRemoteBridge(); } catch (Throwable e) { serviceRemoteException(e); return;
serviceRemoteException(e); return;
serviceRemoteException(ce.getException()); } else { if (isDuplex()) { serviceRemoteException(new IOException(command.toString())); break; default: serviceRemoteException(e);
public void onException(IOException error) { serviceRemoteException(error); }
@Override public void onException(IOException error) { if (!futureRemoteBrokerInfo.isDone()) { LOG.info("error with pending remote brokerInfo on: " + remoteBroker, error); futureRemoteBrokerInfo.cancel(true); return; } serviceRemoteException(error); } });
public void run() { MDCHelper.setContextMap(context); final String originalName = Thread.currentThread().getName(); Thread.currentThread().setName("StartRemotelBridge: localBroker=" + localBroker); try { startRemoteBridge(); } catch (Exception e) { serviceRemoteException(e); } finally { Thread.currentThread().setName(originalName); } } });
@Override public void onException(IOException error) { if (!futureRemoteBrokerInfo.isDone()) { LOG.info("error with pending remote brokerInfo on: " + remoteBroker, error); futureRemoteBrokerInfo.cancel(true); return; } serviceRemoteException(error); } });
@Override public void onException(IOException error) { if (!futureRemoteBrokerInfo.isDone()) { LOG.info("error with pending remote brokerInfo on: " + remoteBroker, error); futureRemoteBrokerInfo.cancel(true); return; } serviceRemoteException(error); } });
@Override public void onCompletion(FutureResponse resp) { try { Response reply = resp.getResult(); reply.setCorrelationId(correlationId); remoteBroker.oneway(reply); //increment counter when messages are received in duplex mode networkBridgeStatistics.getReceivedCount().increment(); } catch (IOException error) { LOG.error("Exception: {} on duplex forward of: {}", error, message); serviceRemoteException(error); } } });
@Override public void onCompletion(FutureResponse resp) { try { Response reply = resp.getResult(); reply.setCorrelationId(correlationId); remoteBroker.oneway(reply); //increment counter when messages are received in duplex mode networkBridgeStatistics.getReceivedCount().increment(); } catch (IOException error) { LOG.error("Exception: {} on duplex forward of: {}", error, message); serviceRemoteException(error); } } });
@Override public void onCompletion(FutureResponse resp) { try { Response reply = resp.getResult(); reply.setCorrelationId(correlationId); remoteBroker.oneway(reply); //increment counter when messages are received in duplex mode networkBridgeStatistics.getReceivedCount().increment(); } catch (IOException error) { LOG.error("Exception: {} on duplex forward of: {}", error, message); serviceRemoteException(error); } } });
startRemoteBridge(); } catch (Throwable e) { serviceRemoteException(e); return;
startRemoteBridge(); } catch (Throwable e) { serviceRemoteException(e); return;
startRemoteBridge(); } catch (Throwable e) { serviceRemoteException(e); return;
} else if (command.getClass() == ConnectionError.class) { ConnectionError ce = (ConnectionError) command; serviceRemoteException(ce.getException()); } else { if (isDuplex()) { serviceRemoteException(new IOException(command.toString())); break; default: LOG.debug("Exception processing remote command: " + command, e); serviceRemoteException(e);