Package org.globus.workspace.persistence

Examples of org.globus.workspace.persistence.WorkspaceDatabaseException


            pstmt = null;

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


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

        } 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

                                        SQL_UPDATE_DEFAULT_SCHED_REQ_ID);
                pstmt2.setInt(1, newLastTaskId);
                pstmt2.executeUpdate();
            }
        } catch (SQLException e) {
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (pstmt != null) {
                    pstmt.close();
                }
                if (pstmt2 != null) {
                    pstmt2.close();
                }
                if (rs != null) {
                    rs.close();
                }
                if (c != null) {
                    returnConnection(c);
                }
            } catch (SQLException e) {
                 logger.error("SQLException in finally cleanup", e);
            }
        }

        if (lastTaskId < 0) {
            throw new WorkspaceDatabaseException("lastTaskId not expected " +
                                                 "to be negative here");
        }
        if (newLastTaskId < 0) {
            throw new WorkspaceDatabaseException("newLastTaskId not expected" +
                                                 " to be negative here");
        }

        if (newLastTaskId - lastTaskId != numNodes) {
            throw new WorkspaceDatabaseException("difference expected to be " +
                                                 "equal to numNodes here");
        }

        final int[] ret = new int[numNodes];
        for (int i = 0; i < numNodes; i++) {
View Full Code Here

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

            c.commit();

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

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

                        Lager.ensembleid(coschedid));
            }

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

                             Lager.id(vmid));
            }

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

            pstmt.setString(1, coschedid);
            pstmt.executeUpdate();

        } catch(SQLException e) {
            logger.error("",e);
            throw new WorkspaceDatabaseException(e);
        } finally {
            try {
                if (pstmt != null) {
                    pstmt.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.