@Override public Object request(Object command) throws IOException { return next.request(command); }
@Override public Object request(Object command, int timeout) throws IOException { return next.request(command, timeout); }
@Override public Object request(Object command) throws IOException { writeLock.lock(); try { return next.request(command); } finally { writeLock.unlock(); } }
@Override public Object request(Object command, int timeout) throws IOException { writeLock.lock(); try { return next.request(command, timeout); } finally { writeLock.unlock(); } }
@Override public Object request(Object command, int timeout) throws IOException { return getNext().request(command, timeout); }
@Override public Object request(Object command) throws IOException { return getNext().request(command); }
public void stop() throws Exception { try { if (connectionInfo != null) { localBroker.request(connectionInfo.createRemoveCommand()); remoteBroker.request(connectionInfo.createRemoveCommand()); } localBroker.setTransportListener(null); remoteBroker.setTransportListener(null); localBroker.oneway(new ShutdownInfo()); remoteBroker.oneway(new ShutdownInfo()); } finally { ServiceStopper ss = new ServiceStopper(); ss.stop(localBroker); ss.stop(remoteBroker); ss.throwFirstException(); } }
Object resp = localBroker.request(localConnectionInfo); if (resp instanceof ExceptionResponse) { throw ((ExceptionResponse) resp).getException(); resp = duplexInboundLocalBroker.request(duplexLocalConnectionInfo); if (resp instanceof ExceptionResponse) { throw ((ExceptionResponse) resp).getException();
public Object request(Object command) throws IOException { synchronized (writeMutex) { return next.request(command); } }
@Override public Object request(Object command, int timeout) throws IOException { return next.request(command, timeout); }
@Override public Object request(Object command, int timeout) throws IOException { return next.request(command, timeout); }
@Override public Object request(Object command, int timeout) throws IOException { writeLock.lock(); try { return next.request(command, timeout); } finally { writeLock.unlock(); } }
@Override public Object request(Object command) throws IOException { writeLock.lock(); try { return next.request(command); } finally { writeLock.unlock(); } }
@Override public Object request(Object command) throws IOException { writeLock.lock(); try { return next.request(command); } finally { writeLock.unlock(); } }
@Override public Object request(Object command, int timeout) throws IOException { writeLock.lock(); try { return next.request(command, timeout); } finally { writeLock.unlock(); } }
@Override public Object request(Object command) throws IOException { writeLock.lock(); try { return next.request(command); } finally { writeLock.unlock(); } }
@Override public Object request(Object command, int timeout) throws IOException { writeLock.lock(); try { return next.request(command, timeout); } finally { writeLock.unlock(); } }
@Override public Object request(Object command) throws IOException { return getNext().request(command); }
protected void sendSyncToSlave(Command command) { try { Response response = (Response)slave.request(command); if (response.isException()) { ExceptionResponse er = (ExceptionResponse)response; LOG.error("Slave Failed", er.getException()); } } catch (Throwable e) { LOG.error("Slave Failed", e); } } }