Examples of GSIAuthenticationInfo


Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo

    public void testPBSAsync() throws Exception {
        // Create authentication
        System.out.println(myProxyUserName);
        System.out.println(myProxyPassword);
        System.out.println(certificateLocation);
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);

        // Server info
        ServerInfo serverInfo = new ServerInfo("ogce", "trestles.sdsc.edu");
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo


    @Test
    public void testJobCancel() throws Exception {
        // Create authentication
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);
        // Server info
        ServerInfo serverInfo = new ServerInfo("ogce", "trestles.sdsc.edu");
        Cluster pbsCluster = new PBSCluster(serverInfo, authenticationInfo, CommonUtils.getPBSJobManager("/opt/torque/bin/"));
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo

        if(!test.exists()){
            test.createNewFile();
        }
        lFilePath = test.getAbsolutePath();
        System.out.println(lFilePath);
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);
        ServerInfo serverInfo = new ServerInfo("ogce", "trestles.sdsc.edu");
        PBSCluster pbsCluster = new PBSCluster(serverInfo, authenticationInfo, null);
        pbsCluster.scpTo("/tmp", lFilePath);
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo

        if (!test.exists()) {
            test.createNewFile();
        }
        lFilePath = test.getAbsolutePath();
        System.out.println(lFilePath);
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);
        ServerInfo serverInfo = new ServerInfo("ogce", "trestles.sdsc.edu");
        PBSCluster pbsCluster = new PBSCluster(serverInfo, authenticationInfo, null);
        List<String> strings = pbsCluster.listDirectory("/tmp");
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo

        jobExecutionContext.setOutMessageContext(outMessage);

    }

    private SecurityContext getSecurityContext(HpcApplicationDeploymentType app) {
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);

        // Server info
        ServerInfo serverInfo = new ServerInfo("ogce", "trestles.sdsc.edu");
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo

                context = new GSISecurityContext(CredentialReaderFactory.createCredentialStoreReader(), requestData);
            } catch (Exception e) {
                throw new WorkflowException("An error occurred while creating GSI security context", e);
            }
            if (registeredHost.getType() instanceof GsisshHostType) {
                GSIAuthenticationInfo authenticationInfo
                        = new MyProxyAuthenticationInfo(requestData.getMyProxyUserName(), requestData.getMyProxyPassword(), requestData.getMyProxyServerUrl(),
                        requestData.getMyProxyPort(), requestData.getMyProxyLifeTime(), System.getProperty(Constants.TRUSTED_CERTIFICATE_SYSTEM_PROPERTY));
                ServerInfo serverInfo = new ServerInfo(requestData.getMyProxyUserName(), registeredHost.getType().getHostAddress());

                Cluster pbsCluster = null;
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo


    @Test
    public void testExecuteCommand() throws Exception {
         // Create authentication
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000,certificateLocation);
        ServerInfo serverInfo = new ServerInfo("ogce" ,"trestles.sdsc.edu");
        SSHUtils SSHUtils = new SSHUtils(serverInfo, authenticationInfo, this.certificateLocation, new ConfigReader());
        SSHUtils.scpTo(rFilePath, lFilePath);
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo


    @Test
    public void testExecuteCommand() throws Exception {
         // Create authentication
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000,certificateLocation);
        ServerInfo serverInfo = new ServerInfo("ogce" ,"trestles.sdsc.edu");
        SSHUtils scpTo = new SSHUtils(serverInfo,authenticationInfo,this.certificateLocation,new ConfigReader());
        scpTo.scpTo(rFilePath, lFilePath);
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo

    }

    @Test
    public void testExecuteCommand() throws Exception {
        // Create authentication
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);

        // Create command
        CommandInfo commandInfo = new RawCommandInfo("/bin/ls");
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.api.authentication.GSIAuthenticationInfo


    @Test
    public void testSubmitAsyncJob() throws Exception {
        // Create authentication
        GSIAuthenticationInfo authenticationInfo
                = new MyProxyAuthenticationInfo(myProxyUserName, myProxyPassword, "myproxy.teragrid.org",
                7512, 17280000, certificateLocation);

        // Server info
        ServerInfo serverInfo = new ServerInfo("ogce", "trestles.sdsc.edu");
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.