public Connection getConnection() { return connectionHandlerContext.getConnection(); }
RemoteConnectionChannel(final RemoteConnectionHandler connectionHandler, final RemoteConnection connection, final int channelId, final int outboundWindow, final int inboundWindow, final int maxOutboundMessages, final int maxInboundMessages, final long maxOutboundMessageSize, final long maxInboundMessageSize) { super(connectionHandler.getConnectionContext().getConnectionProviderContext().getExecutor(), true); this.maxOutboundMessageSize = maxOutboundMessageSize; this.maxInboundMessageSize = maxInboundMessageSize; connectionHandlerContext = connectionHandler.getConnectionContext(); this.connectionHandler = connectionHandler; this.connection = connection; this.channelId = channelId; this.outboundWindow = outboundWindow; this.inboundWindow = inboundWindow; this.maxOutboundMessages = maxOutboundMessages; this.maxInboundMessages = maxInboundMessages; }
protected void closeAction() throws IOException { synchronized (lock) { closed = true; lock.notifyAll(); } otherSide.connectionHandlerContext.remoteClosed(); closeComplete(); }
final RegisteredService registeredService = handler.getConnectionContext().getRegisteredService(serviceType); if (registeredService == null) { refuseService(channelId, "Unknown service name"); c.receiveAuthRequest(id, mechName, saslBytes); break; saslBytes = new byte[buffer.remaining()]; buffer.get(saslBytes); c.receiveAuthChallenge(id, saslBytes); break; c.receiveAuthResponse(id, saslBytes); break; c.receiveAuthSuccess(id, saslBytes); break; log.tracef("Received authentication reject, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); c.receiveAuthReject(id); break; log.tracef("Received authentication delete, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); c.receiveAuthDelete(id); break; log.tracef("Received authentication delete ack, id %08x", id);
public Cancellable open(final String serviceType, final Result<Channel> result, final OptionMap optionMap) { LocalChannel channel = new LocalChannel(executor, context); try { final OpenListener openListener = context.getServiceOpenListener(serviceType); if (openListener == null) { throw new ServiceNotFoundException("Unable to find service type '" + serviceType + "'"); } context.getConnectionProviderContext().getExecutor().execute(SpiUtils.getServiceOpenTask(channel.getOtherSide(), openListener)); } catch (ServiceNotFoundException e) { result.setException(e); return nullCancellable(); } result.setResult(channel); return nullCancellable(); }
final RegisteredService registeredService = handler.getConnectionContext().getRegisteredService(serviceType); if (registeredService == null) { refuseService(channelId, "Unknown service name");
final RegisteredService registeredService = handler.getConnectionContext().getRegisteredService(serviceType); if (registeredService == null) { refuseService(channelId, "Unknown service name"); c.receiveAuthRequest(id, mechName, saslBytes); break; saslBytes = new byte[buffer.remaining()]; buffer.get(saslBytes); c.receiveAuthChallenge(id, saslBytes); break; c.receiveAuthResponse(id, saslBytes); break; c.receiveAuthSuccess(id, saslBytes); break; log.tracef("Received authentication reject, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); c.receiveAuthReject(id); break; log.tracef("Received authentication delete, id %08x", id); ConnectionHandlerContext c = handler.getConnectionContext(); c.receiveAuthDelete(id); break; log.tracef("Received authentication delete ack, id %08x", id);
public Connection getConnection() { return connectionHandlerContext.getConnection(); }
public String getRemoteEndpointName() { return context.getConnectionProviderContext().getEndpoint().getName(); } }
protected void closeAction() throws IOException { synchronized (lock) { closed = true; lock.notifyAll(); } otherSide.connectionHandlerContext.remoteClosed(); closeComplete(); }
public Connection getConnection() { return connectionHandlerContext.getConnection(); }
RemoteConnectionChannel(final RemoteConnectionHandler connectionHandler, final RemoteConnection connection, final int channelId, final int outboundWindow, final int inboundWindow, final int maxOutboundMessages, final int maxInboundMessages, final long maxOutboundMessageSize, final long maxInboundMessageSize) { super(connectionHandler.getConnectionContext().getConnectionProviderContext().getExecutor(), true); this.maxOutboundMessageSize = maxOutboundMessageSize; this.maxInboundMessageSize = maxInboundMessageSize; connectionHandlerContext = connectionHandler.getConnectionContext(); this.connectionHandler = connectionHandler; this.connection = connection; this.channelId = channelId; this.outboundWindow = outboundWindow; this.inboundWindow = inboundWindow; this.maxOutboundMessages = maxOutboundMessages; this.maxInboundMessages = maxInboundMessages; }
protected void closeAction() throws IOException { synchronized (lock) { closed = true; lock.notifyAll(); } otherSide.connectionHandlerContext.remoteClosed(); closeComplete(); }
public Connection getConnection() { return connectionHandlerContext.getConnection(); }
RemoteConnectionChannel(final RemoteConnectionHandler connectionHandler, final RemoteConnection connection, final int channelId, final int outboundWindow, final int inboundWindow, final int maxOutboundMessages, final int maxInboundMessages, final long maxOutboundMessageSize, final long maxInboundMessageSize) { super(connectionHandler.getConnectionContext().getConnectionProviderContext().getExecutor(), true); this.maxOutboundMessageSize = maxOutboundMessageSize; this.maxInboundMessageSize = maxInboundMessageSize; connectionHandlerContext = connectionHandler.getConnectionContext(); this.connectionHandler = connectionHandler; this.connection = connection; this.channelId = channelId; this.outboundWindow = outboundWindow; this.inboundWindow = inboundWindow; this.maxOutboundMessages = maxOutboundMessages; this.maxInboundMessages = maxInboundMessages; }
public Connection getConnection() { return connectionHandlerContext.getConnection(); }
public Connection getConnection() { return connectionHandlerContext.getConnection(); }