Package org.globus.workspace.persistence

Examples of org.globus.workspace.persistence.WorkspaceDatabaseException


            logger.fatal(msg, t);

            final String fullResponse = msg + "\", Backout result: " +
                                  this.fatalityBackoutReservation(res);
            throw new WorkspaceDatabaseException(fullResponse);
        }

        if (!this.slotManager.isBestEffort()) {
           
            // NOTE: coscheduling creates a situation where otherwise
View Full Code Here


            final String src = rs.getString(1);
            final String dst = rs.getString(2);
            final boolean sent = rs.getBoolean(3);
            return new FileCopyNeed(src, dst, sent);
        } catch (Exception e) {
            throw new WorkspaceDatabaseException(e.getMessage(), e);
        }
    }
View Full Code Here

                                 duration, hostname,
                                 partofgroup, pendingRemove);

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (rs != null) {
                    rs.close();
                }
View Full Code Here

                                 duration, hostname,
                                 partofgroup, pendingRemove);

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (rs != null) {
                    rs.close();
                }
View Full Code Here

                                 lrmhandle, duration, nodename,
                                 partOfGroup, pendingRemove);

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (rs != null) {
                    rs.close();
                }
View Full Code Here

            return rs.getInt(1);

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (rs != null) {
                    rs.close();
                }
View Full Code Here

                throw new SlotNotFoundException(slot.uuid, slot.nodename);
            }

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (pstmt != null) {
                    pstmt.close();
                }
View Full Code Here

                throw new SlotNotFoundException(slot.uuid, slot.nodename);
            }

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (pstmt != null) {
                    pstmt.close();
                }
View Full Code Here

                logger.trace("inserted " + inserted + " rows");
            }

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (pstmt != null) {
                    pstmt.close();
                }
View Full Code Here

    int[] findVMsInGroup(String groupID)

            throws WorkspaceDatabaseException {

        if (groupID == null) {
            throw new WorkspaceDatabaseException("groupID is null");
        }

        Connection c = null;
        PreparedStatement pstmt = null;
        ResultSet rs = null;
        try {
            c = getConnection();

            pstmt = c.prepareStatement(SQL_SELECT_ALL_VMS_IN_GROUP);
            pstmt.setString(1, groupID);

            rs = pstmt.executeQuery();

            if (rs == null || !rs.next()) {
                logger.debug("no VMs found with groupID = " + groupID);
                return zeroLen;
            }

            final ArrayList vmidsList = new ArrayList(64);
            do {
                vmidsList.add(new Integer(rs.getInt(1)));
            } while (rs.next());

            // can't use toArray without converting to Integer[]
            final int[] ret = new int[vmidsList.size()];
            for (int i = 0; i < ret.length; i++) {
                ret[i] = ((Number) vmidsList.get(i)).intValue();
            }
            return ret;

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (rs != null) {
                    rs.close();
                }
View Full Code Here

TOP

Related Classes of org.globus.workspace.persistence.WorkspaceDatabaseException

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.