Examples of closeSession()


Examples of org.apache.airavata.gfac.context.security.SSHSecurityContext.closeSession()

    } catch (TransportException e) {
      throw new GFacHandlerException(e.getMessage(), e, context);
    } catch (IOException e) {
      throw new GFacHandlerException(e.getMessage(), e, context);
    } finally {
      securityContext.closeSession(session);
    }
  }
}
View Full Code Here

Examples of org.apache.airavata.gfac.context.security.SSHSecurityContext.closeSession()

    } catch (TransportException e) {
      throw new GFacHandlerException(e.getMessage(), e, context);
    } catch (IOException e) {
      throw new GFacHandlerException(e.getMessage(), e, context);
    } finally {
      securityContext.closeSession(session);
    }
  }

    public void initProperties(Map<String, String> properties) throws GFacHandlerException, GFacException {
View Full Code Here

Examples of org.apache.hive.service.cli.CLIServiceClient.closeSession()

        sessionHandle = hs2Client.openSession("foo", "bar");
      } catch (Exception e) {
        // service not started yet
        continue;
      }
      hs2Client.closeSession(sessionHandle);
      break;
    } while (true);
  }

}
View Full Code Here

Examples of org.apache.qpid.server.protocol.AMQProtocolSession.closeSession()

            _logger.info("ConnectionClose received with reply code/reply text " + body.replyCode + "/" +
                         body.replyText + " for " + session);
        }
        try
        {
            session.closeSession();
        }
        catch (Exception e)
        {
            _logger.error("Error closing protocol session: " + e, e);
        }
View Full Code Here

Examples of org.apache.qpid.server.protocol.v0_8.AMQProtocolSession.closeSession()

            _logger.info("ConnectionClose received with reply code/reply text " + body.getReplyCode() + "/" +
                         body.getReplyText() + " for " + session);
        }
        try
        {
            session.closeSession();
        }
        catch (Exception e)
        {
            _logger.error("Error closing protocol session: " + e, e);
        }
View Full Code Here

Examples of org.apache.qpid.server.protocol.v0_8.AMQProtocolSession.closeSession()

        _logger.info("Received Connection-close-ok");

        try
        {
            stateManager.changeState(AMQState.CONNECTION_CLOSED);
            session.closeSession();
        }
        catch (Exception e)
        {
            _logger.error("Error closing protocol session: " + e, e);
        }
View Full Code Here

Examples of org.apache.zookeeper.server.NIOServerCnxn.Factory.closeSession()

        if (request.hdr != null && request.hdr.getType() == OpCode.closeSession) {
            Factory scxn = zks.getServerCnxnFactory();
            // this might be possible since
            // we might just be playing diffs from the leader
            if (scxn != null) {
                scxn.closeSession(request.sessionId);
            }
        }

        if (request.cnxn == null) {
            return;
View Full Code Here

Examples of org.apache.zookeeper.server.NIOServerCnxn.Factory.closeSession()

            if (scxn != null && request.cnxn == null) {
                // calling this if we have the cnxn results in the client's
                // close session response being lost - we've already closed
                // the session/socket here before we can send the closeSession
                // in the switch block below
                scxn.closeSession(request.sessionId);
                return;
            }
        }

        if (request.cnxn == null) {
View Full Code Here

Examples of org.apache.zookeeper.server.ZooKeeperServer.closeSession()

        zks, PARENT_DIR, appData);
    Mockito.verify(cb, Mockito.timeout(1000)).becomeActive();
    checkFatalsAndReset();
   
    LOG.info("========================== Expiring session");
    zks.closeSession(elector.getZKSessionIdForTests());

    // Should enter neutral mode when disconnected
    Mockito.verify(cb, Mockito.timeout(1000)).enterNeutralMode();

    // Should re-join the election and regain active
View Full Code Here

Examples of org.apache.zookeeper.server.ZooKeeperServer.closeSession()

    electors[1].joinElection(appDatas[1]);
    ActiveStandbyElectorTestUtil.waitForElectorState(null, electors[1],
        State.STANDBY);
   
    LOG.info("========================== Expiring standby's session");
    zks.closeSession(electors[1].getZKSessionIdForTests());

    // Should enter neutral mode when disconnected
    Mockito.verify(cbs[1], Mockito.timeout(1000)).enterNeutralMode();

    // Should re-join the election and go back to STANDBY
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.