Exemplo n.º 1
0
 @Override
 public synchronized void registerSession(final Session ssn) {
   super.registerSession(ssn);
   if (_blocking) {
     ((ServerSession) ssn).block();
   }
 }
Exemplo n.º 2
0
  @Override
  public void received(ProtocolEvent event) {
    _lastIoTime.set(System.currentTimeMillis());
    if (event.isConnectionControl()) {
      CurrentActor.set(_actor);
    } else {
      ServerSession channel = (ServerSession) getSession(event.getChannel());
      LogActor channelActor = null;

      if (channel != null) {
        channelActor = channel.getLogActor();
      }

      CurrentActor.set(channelActor == null ? _actor : channelActor);
    }

    try {
      super.received(event);
    } finally {
      CurrentActor.remove();
    }
  }
Exemplo n.º 3
0
  @Override
  protected void setState(State state) {
    super.setState(state);

    if (state == State.OPEN) {
      if (_onOpenTask != null) {
        _onOpenTask.run();
      }
      _actor.message(
          ConnectionMessages.OPEN(getClientId(), "0-10", getClientVersion(), true, true, true));

      getVirtualHost().getConnectionRegistry().registerConnection(this);
    }

    if (state == State.CLOSE_RCVD || state == State.CLOSED || state == State.CLOSING) {
      if (_virtualHost != null) {
        _virtualHost.getConnectionRegistry().deregisterConnection(this);
      }
    }

    if (state == State.CLOSED) {
      logClosed();
    }
  }
Exemplo n.º 4
0
 @Override
 protected void invoke(Method method) {
   super.invoke(method);
 }
Exemplo n.º 5
0
 public void doHeartbeat() {
   super.doHeartBeat();
 }
Exemplo n.º 6
0
 @Override
 public void setLocalAddress(SocketAddress localAddress) {
   super.setLocalAddress(localAddress);
 }
Exemplo n.º 7
0
 @Override
 public void setRemoteAddress(SocketAddress remoteAddress) {
   super.setRemoteAddress(remoteAddress);
 }
Exemplo n.º 8
0
 @Override
 public void send(ProtocolEvent event) {
   _lastIoTime.set(System.currentTimeMillis());
   super.send(event);
 }
Exemplo n.º 9
0
 @Override
 public void closed() {
   closeSubscriptions();
   super.closed();
 }
Exemplo n.º 10
0
 @Override
 public synchronized void removeSession(final Session ssn) {
   super.removeSession(ssn);
 }
Exemplo n.º 11
0
 public void setConnectionDelegate(ServerConnectionDelegate delegate) {
   super.setConnectionDelegate(delegate);
 }