Package org.apache.airavata.gfac

Examples of org.apache.airavata.gfac.GFacException


                stmt.executeUpdate();
                connection.commit();

            } catch (SQLException e) {
                throw new GFacException(e);
            } finally {
                try {
                    if (stmt != null) {
                        stmt.close();
                    }
View Full Code Here


            stmt.setString(1, jobData.getJobId());
            stmt.setInt(2, jobData.getState());

            stmt.executeUpdate();
        } catch (SQLException e) {
            throw new GFacException(e);
        } finally {
            try {
                if (stmt != null) {
                    stmt.close();
                }
View Full Code Here

                jobs.add(new JobData(jobId, state));
            }

        } catch (SQLException e) {
            throw new GFacException(e);
        } finally {
            try {
                if (preparedStatement != null) {
                    preparedStatement.close();
                }
View Full Code Here

                gssCredentials = getDefaultCredentials();
            }

            // if still null, throw an exception
            if (gssCredentials == null) {
                throw new GFacException("Unable to retrieve my proxy credentials to continue operation.");
            }
        } else {
            try {
                if (gssCredentials.getRemainingLifetime() < CREDENTIAL_RENEWING_THRESH_HOLD) {
                    return renewCredentials();
                }
            } catch (GSSException e) {
                throw new GFacException("Unable to retrieve remaining life time from credentials.", e);
            }
        }

        return gssCredentials;
    }
View Full Code Here

        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());
        try {
            return myproxy.get(getRequestData().getMyProxyUserName(), getRequestData().getMyProxyPassword(),
                    getRequestData().getMyProxyLifeTime());
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while retrieving default security credentials.", e);
        }
    }
View Full Code Here

        MyProxy myproxy = new MyProxy(getRequestData().getMyProxyServerUrl(), getRequestData().getMyProxyPort());
        try {
            return myproxy.get(gssCredentials, getRequestData().getMyProxyUserName(), getRequestData().getMyProxyPassword(),
                    getRequestData().getMyProxyLifeTime());
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials using user/password.", e);
        }
    }
View Full Code Here

        getParams.setLifetime(getRequestData().getMyProxyLifeTime());

        try {
            return myproxy.get(gssCredentials, getParams);
        } catch (MyProxyException e) {
            throw new GFacException("An error occurred while renewing security credentials.", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.gfac.GFacException

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.