Package edu.sdsc.grid.io.srb

Examples of edu.sdsc.grid.io.srb.SRBAccount


    }

    public static void main(String[] args) throws FileSystemException, GlobusCredentialException, GSSException {
    GlobusCredential gCert = GlobusCredential.getDefaultCredential();
        GlobusGSSCredentialImpl cert = new GlobusGSSCredentialImpl(gCert, GSSCredential.INITIATE_AND_ACCEPT);
        SRBAccount srbAccount = new SRBAccount("srb.ivec.org",
                            5544,
                            cert);
        srbAccount.setDefaultStorageResource("srb.ivec.org");

        FileSystemOptions opts = new FileSystemOptions();
        SRBFileSystemConfigBuilder configurations = SRBFileSystemConfigBuilder.getInstance();
        configurations.setAccount(srbAccount, opts);
        //SRBFileSystem srbFs = (SRBFileSystem) VFS.getManager().resolveFile(getURIString(srbAccount), opts).getFileSystem().getAttribute(SRBVfsFileSystem.SRB_FILESYSTEM);
View Full Code Here


public class TestVFS {
  FileSystemManager fsManager = null;
 
  public TestVFS () throws FileSystemException {
    fsManager = VFS.getManager();
        SRBAccount account = new SRBAccount("ngdata.hpc.jcu.edu.au", 5544, "cima", "cima!2006!", "hpc.jcu.edu.au", "hpc.jcu.edu.au", "", "hpc.jcu.edu.au");
    }
View Full Code Here

  }
 
  private void directSRBList() throws IOException, FileNotFoundException
  {
    //uses the ~/.srb/MdasEnv user info file
      SRBAccount acct = new SRBAccount();

      edu.sdsc.grid.io.srb.SRBFileSystem fs =
        (edu.sdsc.grid.io.srb.SRBFileSystem) FileFactory.newFileSystem( acct );
     
      SRBFile f = (SRBFile)FileFactory.newFile(fs, acct.getHomeDirectory());
       
    System.out.println("MCAT Zone:" + acct.getMcatZone() + " Dom:" + acct.getDomainName() );
    System.out.println("Home:" + acct.getHomeDirectory() + " Def res:" + acct.getDefaultStorageResource());
   
    String[] children = f.list();
   
    for (int i = 0; i < children.length; i++) {
      System.out.println(children[i]);
View Full Code Here

  private void uriSRBTest() throws URISyntaxException, IOException, FileNotFoundException
   {
 
    String uri = "srb://vsilva.NCC:secret@ebony:5544/nccZone/home/vsilva.NCC";
    SRBFile f = (SRBFile)FileFactory.newFile(new URI(uri));
    SRBAccount acct = (SRBAccount)f.getFileSystem().getAccount();

    System.out.println("MCAT Zone:" + acct.getMcatZone() + " Dom:" + acct.getDomainName() );
    System.out.println("Home:" + acct.getHomeDirectory() + " Def res:" + acct.getDefaultStorageResource());
   
    String[] children = f.list();
   
    for (int i = 0; i < children.length; i++) {
      System.out.println(children[i]);
View Full Code Here

        {
            e.printStackTrace();
        }


        SRBAccount srbAccount = new SRBAccount("srbdev.sf.utas.edu.au",
                5544,
                "pmak",
                "adf",
                "/srbdev.sf.utas.edu.au/home/pmak.srbdev.sf.utas.edu.au",
                "srbdev.sf.utas.edu.au",
                "datafabric.srbdev.sf.utas.edu.au",
                "srbdev.sf.utas.edu.au");

        srbAccount.setDefaultStorageResource("datafabric.srbdev.sf.utas.edu.au");
        FileSystemOptions opts = new FileSystemOptions();
        SRBFileSystemConfigBuilder configurations = SRBFileSystemConfigBuilder.getInstance();
        configurations.setAccount(srbAccount, opts);

        SRBFileSystem srbFs = (SRBFileSystem) VFS.getManager().resolveFile(getURIString(srbAccount), opts)
View Full Code Here

TOP

Related Classes of edu.sdsc.grid.io.srb.SRBAccount

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.