Package org.objectweb.joram.shared.client

Examples of org.objectweb.joram.shared.client.CnxCloseRequest


          logger.log( BasicLevel.DEBUG, "", exc);
      }
    }

    try {
      CnxCloseRequest closeReq = new CnxCloseRequest();
      requestor.request(closeReq);
    } catch (JMSException exc) {
      if (logger.isLoggable(BasicLevel.DEBUG))
        logger.log(BasicLevel.DEBUG, "", exc);
    }
View Full Code Here


      if ((date - lastRequestDate) > timeout) {
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, "HeartBeatTask: close connection");
        ConnectionContext ctx = (ConnectionContext) connections.remove(key);
        heartBeatTasks.remove(key);
        reactToClientRequest(key.intValue(), new CnxCloseRequest());

        if (ctx != null) {
          MomException exc = new MomException(MomExceptionReply.HBCloseConnection, "Connection " + getId()
              + ':' + key + " closed");
          ctx.pushError(exc);
View Full Code Here

    if (connections != null) {
      Integer key = new Integer(not.getKey());
      // The connection may have already been
      // explicitely closed by a CnxCloseRequest.
      if (connections.remove(key) != null) {
        reactToClientRequest(not.getKey(), new CnxCloseRequest());
        heartBeatTasks.remove(key);
      }
    }
    // else should not happen:
    // 1- CloseConnectionNot is transient
View Full Code Here

        Object obj = iterator.next();
        // Standard connections must be dropped.
        // Only reliable connections can be recovered.
        if (obj instanceof StandardConnectionContext) {
          ConnectionContext cc = (ConnectionContext) obj;
          reactToClientRequest(cc.getKey(), new CnxCloseRequest());
          iterator.remove();
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.objectweb.joram.shared.client.CnxCloseRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.