Package org.palo.viewapi.internal

Examples of org.palo.viewapi.internal.ServerConnectionPool


    return ((PaloAccount) account).login();
    */
    Account account = getAccount(accountId);
    if (account instanceof PaloAccount) {
      Connection con = null;
      ServerConnectionPool pool = ConnectionPoolManager.getInstance().
        getPool(account, sessionId);
      con = pool.getConnection("WPaloCubeViewConverter.getConnection")
      return con;
    }
    return null;
   
//    Account account = null;
View Full Code Here


      account = adminService.getAccount(accountId);
    } else
      account = getAccount(accountId, user);
    if (account instanceof PaloAccount) {
//      ((PaloAccount) account).login();
      ServerConnectionPool pool =
        ConnectionPoolManager.getInstance().getPool(account, sessionId);
      Connection con = pool.getConnection("ViewImporterTreeLoader.getConnectionForAccount");
      ((PaloAccountImpl) account).setConnection(con);
      return con;
    }
    return null;
  }
View Full Code Here

      List <Account> accounts = MapperRegistry.getInstance().getAccountManagement().getAccounts(loggedInUser);
      if (accounts != null && !accounts.isEmpty()) {
        for (Account acc: accounts) {
          if (acc.getConnection().getId().equals(xCon.getId())) {
            if (acc instanceof PaloAccountImpl) {
              ServerConnectionPool pool = ConnectionPoolManager.getInstance().getPool(acc, sessionId);
              Connection con = pool.getConnection("getCubes");
              ((PaloAccountImpl) acc).setConnection(con);
              for (Database db: con.getDatabases()) {
                if (db.getId().equals(xDb.getId())) {
                  List <XCube> cubes = new ArrayList<XCube>();
                  for (Cube c: db.getCubes()) {
View Full Code Here

        for (Account acc: accounts) {
          if (acc.getConnection().getId().equals(xCon.getId())) {
            if (acc instanceof PaloAccountImpl) {
              Connection con = null;
              try {
                ServerConnectionPool pool = ConnectionPoolManager.getInstance().getPool(acc, sessionId);
                 con = pool.getConnection("getDatabases");
                ((PaloAccountImpl) acc).setConnection(con);
              } catch (Throwable t) {
                ConnectionPoolManager.getInstance().disconnect(acc, sessionId, "getDatabases");
                throw new DbOperationFailedException(t.getMessage());
              }
View Full Code Here

TOP

Related Classes of org.palo.viewapi.internal.ServerConnectionPool

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.