Package edu.sdsc.grid.io.srb

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


    public void testNullClientReconnect() throws Exception {
        // get the gridftp client from the file system and make it null to
        // simulate a client timeout (e.g. maybe client that uses vfs has been
        // left idle for over 30 mins)
        SrbFileSystem fs = (SrbFileSystem) this.relativeToFO.getFileSystem();
        SRBFileSystem client = fs.getClient();
        client = null;
        // now do some operations following the timeout.
        // The fileSystem should perform a reconnect
        vfsTestHelp.doListTest(relativeToFO);
    }
View Full Code Here


    public void testNullClientReconnect() throws FileSystemException {
        // get the gridftp client from the file system and make it null to
        // simulate a client timeout (e.g. maybe client that uses vfs has been
        // left idle for over 30 mins)
        SrbFileSystem fs = (SrbFileSystem) this.relativeToFO.getFileSystem();
        SRBFileSystem client = fs.getClient();
        client = null;
        // now do some operations following the timeout.
        // The fileSystem should perform a reconnect
        vfsTestHelp.doListTest(relativeToFO);
    }
View Full Code Here

          srbFileSystem = FileFactory.newFileSystem( new SRBAccount(host, port, user, pwd, home, domain, defRes, mcatZone));
          */
          //SRBAccount account = SRBAccounts.getAccount(host, port);

            SRBAccount account = buildSRBAccount(rootName, opts);
            srbFileSystem = new SRBFileSystem(account);//FileFactory.newFileSystem(account);
            //attribs.put(HOME_DIRECTORY, account.getHomeDirectory());
            //attribs.put(SRB_FILESYSTEM, srbFileSystem);
            attribs.put(SRB_ACCOUNT, account);

            log.debug("Constructor: Created new" +
View Full Code Here

        super(rootName, null, fileSystemOptions);

        try {
            SRBFileSystemConfigBuilder configurations = SRBFileSystemConfigBuilder.getInstance();
            SRBAccount srbAccount = configurations.getAccount(fileSystemOptions);
            srbFileSystem = new SRBFileSystem(srbAccount);
            attribs.put(SRB_ACCOUNT, srbFileSystem.getAccount());
        } catch (Throwable e) {
            throw new FileSystemException(e);
    }
    }
View Full Code Here

        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);
        SRBFileSystem srbFs = (SRBFileSystem) VFS.getManager().resolveFile(getURIString(srbAccount), opts).getFileSystem().getAttribute(SrbFileSystem.SRB_FILESYSTEM);

        String uriString = new SRBFile(srbFs, srbFs.getHomeDirectory()).toURI().toString();

        //SRB uri appends these characters which screw with the vfs module
        uriString = uriString.replace("?#", "");
        System.out.println(uriString);
       
View Full Code Here

        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)
                .getFileSystem().getAttribute(SRBVfsFileSystem.FILESYSTEM);

        String uriString = new SRBFile(srbFs, "/srbdev.sf.utas.edu.au/home/pmak.srbdev.sf.utas.edu.au/TestDir").toURI().toString();

View Full Code Here

    public void testNullClientReconnect() throws FileSystemException {
        // get the gridftp client from the file system and make it null to
        // simulate a client timeout (e.g. maybe client that uses vfs has been
        // left idle for over 30 mins)
        SRBVfsFileSystem fs = (SRBVfsFileSystem) this.relativeToFO.getFileSystem();
        SRBFileSystem client = fs.getClient();
        client = null;
        // now do some operations following the timeout.
        // The fileSystem should perform a reconnect
        vfsTestHelp.doListTest(relativeToFO);
    }
View Full Code Here

TOP

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

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.